/* iOS-inspired CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Dark mode styles */
body.dark-mode {
    background-color: #1a1a1a;
    color: #ffffff;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
}

body.dark-mode .clients {
    background-color: #2c2c2c;
}


body.dark-mode .service-card {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

body.dark-mode .service-card:hover {
    background: rgba(0, 0, 0, 0.15);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

body.dark-mode .service-icon {
    color: #ff6b6b;
    opacity: 0.7;
}

body.dark-mode .service-card:hover .service-icon {
    color: #ff5252;
    opacity: 1;
}

body.dark-mode .service-card h3 {
    color: #ffffff;
}

body.dark-mode .service-card p {
    color: #a0a0a0;
}

body.dark-mode .cta-card {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 82, 82, 0.05));
    border: 1px solid rgba(255, 107, 107, 0.2);
}

body.dark-mode .cta-card::before {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), transparent);
}

body.dark-mode .cta-card .service-icon {
    color: #ff6b6b;
}

body.dark-mode .cta-card:hover .service-icon {
    color: #ff5252;
}

body.dark-mode .cta-card h3 {
    color: #ff6b6b;
}

body.dark-mode .cta-card p {
    color: #a0a0a0;
}

body.dark-mode .case-study {
    background: #2c2c2c;
    border: 1px solid rgba(255, 255, 255, 0.1);
}


body.dark-mode .hero-title {
    color: #ffffff;
}

body.dark-mode .hero-subtitle {
    color: #a0a0a0;
}

body.dark-mode .location-info {
    color: #a0a0a0;
}

body.dark-mode .client-logo {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode .client-logo img {
    filter: grayscale(100%) brightness(0) invert(1) opacity(0.6);
}

body.dark-mode .client-logo:hover img {
    filter: grayscale(100%) brightness(0) invert(1) opacity(1);
}

body.dark-mode .section-title {
    color: #ffffff;
}



/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-btn {
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.theme-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.theme-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

body.dark-mode .theme-btn {
    background: rgba(60, 60, 60, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

body.dark-mode .theme-btn:hover {
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    padding: 120px 0;
    display: flex;
    align-items: center;
    position: relative;
    backdrop-filter: blur(20px);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.availability-pill {
    display: inline-block;
    background: transparent;
    color: #27ae60;
    border: 1.5px solid #27ae60;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1.5rem;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.2);
    animation: pillGlow 3s ease-in-out infinite;
}

@keyframes pillGlow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(39, 174, 96, 0.2);
    }
    50% {
        box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
    }
}

.contact-info {
    text-align: center;
    margin-top: 1rem;
}

.location {
    font-size: 0.9rem;
    color: #8e8e93;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.email {
    font-size: 0.9rem;
    color: #e74c3c;
    font-weight: 600;
    text-decoration: none;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
}

.hero-text {
    text-align: left;
}

/* Desktop alignment - force left alignment */
@media (min-width: 769px) {
    .hero-text {
        text-align: left;
    }
    
    .hero-cta {
        justify-content: flex-start !important;
        align-items: flex-start !important;
        text-align: left !important;
        flex-direction: row !important;
    }
    
    .cta-button {
        display: inline-block !important;
        width: auto !important;
        max-width: none !important;
        text-align: left !important;
    }
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 300;
    margin-bottom: 2rem;
    color: #1e293b;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.8vw, 1.6rem);
    font-weight: 400;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 3rem;
    letter-spacing: -0.01em;
}

.hero-cta {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 18px 36px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: all 0.2s ease;
}

.cta-button.primary {
    color: white;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 
        0 8px 25px rgba(231, 76, 60, 0.2),
        0 4px 12px rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-button.primary:hover {
    box-shadow: 
        0 12px 35px rgba(231, 76, 60, 0.3),
        0 6px 18px rgba(231, 76, 60, 0.15);
}

.cta-button.secondary {
    color: #e74c3c;
    background: transparent;
    border: 2px solid #e74c3c;
}

.cta-button.secondary:hover {
    background: #e74c3c;
    color: white;
}

.highlight-name {
    color: #e74c3c;
    font-weight: 700;
}

.highlight-experience {
    color: #e74c3c;
    font-weight: 700;
}

.hero-avatar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.location-info {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #6e6e73;
    line-height: 1.4;
}

.location-info div {
    margin-bottom: 0.3rem;
}

.location-info div:last-child {
    margin-bottom: 0;
}

.available-text {
    color: #27ae60;
    font-weight: 700;
}

.avatar-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(231, 76, 60, 0.15);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 8px 25px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.avatar-image:hover {
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.12),
        0 12px 35px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    color: #6e6e73;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}


/* Section Styles */
section {
    padding: 120px 0;
}

/* Extra spacing for services section */
.services {
    padding: 80px 0;
}


.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    text-align: center;
    margin-bottom: 4rem;
    color: #1e293b;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Clients Section */
.clients {
    background-color: #f5f5f7;
    padding: 80px 0;
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    align-items: stretch;
    justify-items: center;
    margin-top: 3rem;
}

.client-logo {
    padding: 2rem;
    text-align: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.client-logo img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0) opacity(0.4);
    transition: all 0.3s ease;
}

.client-logo:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.client-logo:hover img {
    filter: grayscale(100%) brightness(0) opacity(0.8);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.15);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 2rem;
    color: #e74c3c;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card:hover .service-icon {
    opacity: 1;
    transform: scale(1.1);
    color: #c0392b;
}

.cta-card {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(192, 57, 43, 0.05));
    border: 1px solid rgba(231, 76, 60, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-card:hover::before {
    opacity: 1;
}

.cta-card .service-icon {
    color: #e74c3c;
    opacity: 1;
}

.cta-card:hover .service-icon {
    color: #c0392b;
    transform: scale(1.15);
}

.cta-card h3 {
    color: #e74c3c;
    font-weight: 600;
}

.cta-card p {
    color: #666;
    margin-bottom: 2rem;
}

.cta-card .cta-button {
    margin-top: 1rem;
    display: inline-block;
    text-decoration: none;
}

.service-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1e293b;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.service-card p {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
}


/* About Section */
.about {
    background-color: #f5f5f7;
    padding: 80px 0;
}

.about-text {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #64748b;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    letter-spacing: -0.01em;
}

/* Footer */
.footer {
    background-color: #1d1d1f;
    color: #8e8e93;
    padding: 2rem 0;
    text-align: center;
    margin-top: 80px;
    margin-bottom: 0;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-link {
    color: #e74c3c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #c0392b;
    text-decoration: underline;
}

/* Dark mode footer */
body.dark-mode .footer {
    background-color: #0a0a0a;
}

body.dark-mode .footer-link {
    color: #ff6b6b;
}

body.dark-mode .footer-link:hover {
    color: #ff5252;
}




/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .avatar-image {
        width: 200px;
        height: 200px;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 2rem;
    }
    
    .mobile-only .contact-info {
        margin-top: 1.5rem;
        text-align: center;
    }
    
    .mobile-only .availability-pill {
        display: inline;
        width: fit-content;
        max-width: none;
    }
    
    
    
    .client-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 2rem;
    }
    
    .client-logo {
        padding: 1.5rem;
        height: 100px;
        aspect-ratio: 1;
    }
    
    .client-logo img {
        max-height: 50px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer .container {
        flex-direction: column;
        text-align: center;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
