/* Custom Cursor */
* {
    cursor: none;
}

.custom-cursor {
    position: fixed;
    width: 25px;
    height: 25px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
}

.custom-cursor.hover {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 1);
    border-width: 3px;
}

.custom-cursor.clicking {
    transform: translate(-50%, -50%) scale(0.8);
}

.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    opacity: 0.9;
}

/* Navigation Hint */
.navigation-hint {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.navigation-hint p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 5px 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Mobile-First Responsive Design */
body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    background: #000;
    color: #fff;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    height: 200vh; /* Allow scrolling */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* iPhone 15 Pro Max (430px) and larger phones */
@media only screen and (min-width: 430px) {
    .headline {
        font-size: 3.5rem;
    }
    
    .subheadline {
        font-size: 1.4rem;
    }
    
    .description {
        font-size: 1.1rem;
    }
}

/* iPhone 15 Pro (393px) and standard large phones */
@media only screen and (max-width: 429px) and (min-width: 390px) {
    .headline {
        font-size: 3rem;
    }
    
    .subheadline {
        font-size: 1.3rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .map-container {
        transform: scale(0.7);
    }
}

/* iPhone 15 (393px) and iPhone 14/13 */
@media only screen and (max-width: 389px) and (min-width: 350px) {
    .headline {
        font-size: 2.8rem;
    }
    
    .subheadline {
        font-size: 1.2rem;
    }
    
    .description {
        font-size: 0.95rem;
    }
    
    .map-container {
        transform: scale(0.65);
    }
}

/* iPhone SE and smaller phones */
@media only screen and (max-width: 349px) {
    .headline {
        font-size: 2.2rem;
    }
    
    .subheadline {
        font-size: 1.1rem;
    }
    
    .description {
        font-size: 0.9rem;
    }
    
    .map-container {
        transform: scale(0.6);
    }
    
    .content {
        padding: 10px;
    }
}

/* Android phones - landscape mode */
@media only screen and (max-height: 500px) and (orientation: landscape) {
    .headline {
        font-size: 2rem;
    }
    
    .subheadline {
        font-size: 1rem;
    }
    
    .description {
        font-size: 0.85rem;
    }
    
    .map-container {
        transform: scale(0.5);
    }
    
    .content {
        padding: 5px;
    }
}

/* Tablets and iPad */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .headline {
        font-size: 3.5rem;
    }
    
    .subheadline {
        font-size: 1.6rem;
    }
    
    .description {
        font-size: 1.1rem;
    }
    
    .map-container {
        transform: scale(0.85);
    }
}

/* Touch-friendly adjustments */
.map-item {
    min-height: 80px;
    padding: 20px;
    min-width: 140px;
}

button, .cta-btn, .back-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 24px;
}

.contact-form input,
.contact-form textarea {
    min-height: 44px;
    padding: 12px;
}

/* Custom Cursor - hide on mobile */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor,
    .cursor-dot,
    .cursor-trail {
        display: none;
    }
    
    * {
        cursor: auto;
    }
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.section.active {
    opacity: 1;
    visibility: visible;
}

.content {
    text-align: center;
    max-width: 800px;
    padding: 20px;
    z-index: 10;
}

/* Home Section */
.logo {
    width: 150px;
    height: 150px;
    margin-bottom: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.headline {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subheadline {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ccc;
}

/* Map View */
.map-container {
    position: relative;
    width: 90vw;
    height: 90vh;
    max-width: 1200px;
    max-height: 800px;
}

.map-item {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
}

.map-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

#about-map { top: 10%; left: 10%; }
#contact-map { top: 10%; right: 10%; }
#home-map { top: 50%; left: 50%; transform: translate(-50%, -50%); }
#services-map { bottom: 10%; left: 10%; }
#projects-map { bottom: 10%; right: 10%; }

.map-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.map-item p {
    color: #ccc;
    font-size: 0.9rem;
}

/* About Section */
.typing-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 30px 0;
    color: #fff;
    min-height: 200px;
}

/* Contact Section */
.contact-info {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.contact-info p {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
}

.contact-info strong {
    color: #4ecdc4;
}

.contact-form {
    max-width: 500px;
    margin: 30px auto;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Services Section */
.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: left;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.service-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.service-card li {
    padding: 8px 0;
    color: #ccc;
    position: relative;
    padding-left: 20px;
}

.service-card li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #4ecdc4;
}

.service-card p {
    color: #4ecdc4;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Projects Section */
.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 40px;
    text-align: left;
}

.project-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

.project-card p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 30px;
}

.tech {
    margin-bottom: 30px;
}

.tech h4 {
    color: #fff;
    margin-bottom: 15px;
}

.tech ul {
    list-style: none;
}

.tech li {
    color: #ccc;
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.tech li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #45b7d1;
}

.project-link {
    display: inline-block;
    color: #4ecdc4;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #45b7d1;
}

/* Buttons */
.cta-btn, .back-btn {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-btn:hover, .back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(78, 205, 196, 0.3);
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 30px;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .headline {
        font-size: 2.5rem;
    }
    
    .subheadline {
        font-size: 1.5rem;
    }
    
    .map-container {
        transform: scale(0.8);
    }
    
    .service-card, .project-card {
        padding: 20px;
    }
    
    #about-map { top: 5%; left: 5%; }
    #contact-map { top: 5%; right: 5%; }
    #services-map { bottom: 5%; left: 5%; }
    #projects-map { bottom: 5%; right: 5%; }
}
