* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 min(1.5rem, 3vw);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav.scrolled .logo {
    color: #333;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

nav.scrolled .mobile-menu-toggle {
    color: #333;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
    z-index: 999;
    transition: all 0.3s ease;
    transform: translateY(-100%);
    opacity: 0;
}

.mobile-menu.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu ul {
    list-style: none;
    padding: 2rem;
    margin: 0;
}

.mobile-menu li {
    margin-bottom: 1rem;
}

.mobile-menu a {
    display: block;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    color: #6366f1;
    transform: translateX(10px);
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav.scrolled .nav-links a {
    color: #333;
}

.nav-links a:hover {
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

#homeNavLink {
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    cursor: default;
}

#homeNavLink.visible {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.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 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="600" cy="700" r="120" fill="url(%23a)"/></svg>');
    animation: float 20s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 1;
    position: relative;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text .highlight {
    background: linear-gradient(45deg, #fbbf24, #f59e0b, #06b6d4, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: gradientShift 4s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.3));
    position: relative;
}

.hero-text .highlight::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, #fbbf24, #f59e0b, #06b6d4, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: gradientShift 4s ease-in-out infinite;
    filter: blur(2px);
    z-index: -1;
    opacity: 0.4;
}

@keyframes gradientShift {

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

    25% {
        background-position: 50% 0%;
    }

    50% {
        background-position: 100% 50%;
    }

    75% {
        background-position: 50% 100%;
    }
}

.hero-text p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: min(500px, 100%);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px;
    /* iOS touch target minimum */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
    background: linear-gradient(45deg, #4f46e5, #7c3aed);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.profile-container {
    position: relative;
    width: 33.33%;
    max-width: 400px;
    aspect-ratio: 1;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    border: 5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

/* Skills Section */
.skills {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}

.skills::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 1000 1000"><defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="rgba(99,102,241,0.03)"/><stop offset="100%" stop-color="rgba(139,92,246,0.03)"/></linearGradient></defs><circle cx="100" cy="800" r="200" fill="url(%23grad1)"/><circle cx="900" cy="200" r="300" fill="url(%23grad1)"/></svg>');
    pointer-events: none;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #13141a;
}

.section-title.white-title {
    color: #f3f3f3;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.2);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.skill-card p {
    color: #666;
    line-height: 1.6;
}

/* Experience Section */
.experience {
    padding: 6rem 0;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    color: white;
    overflow: visible;
    position: relative;
}

.experience::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 1000 1000"><defs><radialGradient id="exp" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><circle cx="800" cy="600" r="250" fill="url(%23exp)"/><circle cx="200" cy="200" r="180" fill="url(%23exp)"/></svg>');
    pointer-events: none;
    opacity: 0.6;
}

.clients-intro {
    text-align: center;
    margin: 1rem 0 0.125rem 0;
}

.clients-intro h3 {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.carousel-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid rgba(99, 102, 241, 0.2);
    color: #6366f1;
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-width: 44px;
    min-height: 44px;
}

.carousel-btn:hover {
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
    border-color: transparent;
}

.experience-grid {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    transition: transform 0.5s ease;
    width: fit-content;
}

.experience-grid .experience-card {
    min-width: 23%;
    max-width: 280px;
    flex-shrink: 0;
}

.experience-carousel {
    position: relative;
    margin: 0;
    overflow: visible;
    width: 100%;
}

.carousel-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: space-between;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    overflow: visible;
    padding: 2rem 10px;
}

.carousel-content {
    flex: 0 1 904px;
    overflow: hidden;
    min-width: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.carousel-content::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Carousel Indicators */
.carousel-indicators {
    display: none;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

/* Mobile Swipe Hint */
.mobile-swipe-hint {
    display: none;
    text-align: center;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-style: italic;
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

.experience-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
    height: 600px;
    scroll-snap-align: start;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7);
}

.experience-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
}

.experience-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.experience-card-link:visited {
    color: inherit;
}

.experience-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.company-logo {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 20px 0;
    width: 100%;
}

.experience-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 20px 0;
    width: 100%;
}

.experience-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0 0 20px 0;
    width: 100%;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0;
    margin: 0 auto;
}

.tech-tag {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #334155;
    border-color: rgba(99, 102, 241, 0.2);
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: white;
    position: relative;
}

.pricing::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 1000 1000"><defs><linearGradient id="pricingGrad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="rgba(99,102,241,0.1)"/><stop offset="50%" stop-color="rgba(139,92,246,0.1)"/><stop offset="100%" stop-color="rgba(168,85,247,0.1)"/></linearGradient></defs><polygon points="0,0 400,200 200,600 0,1000" fill="url(%23pricingGrad)"/><polygon points="600,0 1000,0 1000,400 800,200" fill="url(%23pricingGrad)"/></svg>');
    pointer-events: none;
    opacity: 0.7;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.pricing-card.featured {
    border: 3px solid #06b6d4;
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.2);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #06b6d4, #3b82f6);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.3);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.pricing-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #6366f1;
    margin-bottom: 0.5rem;
}

.pricing-subtitle {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
}

.pricing-features {
    margin-bottom: 2rem;
}

.feature {
    padding: 0.5rem 0;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.feature:last-child {
    border-bottom: none;
}

.pricing-timeline {
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.additional-services {
    margin-top: 4rem;
    text-align: center;
}

.additional-services h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: white;
}

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

.service-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.1);
}

.service-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.service-item p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.service-price {
    color: #06b6d4;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}

.contact::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 1000 1000"><defs><radialGradient id="contact" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(99,102,241,0.05)"/><stop offset="100%" stop-color="rgba(139,92,246,0.05)"/></radialGradient></defs><circle cx="500" cy="500" r="400" fill="url(%23contact)"/></svg>');
    pointer-events: none;
}

.contact-content {
    text-align: center;
    max-width: min(600px, 90%);
    margin: 0 auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.2);
}

.contact-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.contact-link:hover {
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-link:visited {
    color: inherit;
}

.contact-icon {
    font-size: 1.5rem;
    color: #6366f1;
}

/* Hero CTA Section */
.cta-section {
    text-align: center;
    margin: 3rem 0 4rem;
}

.btn-hero {
    font-size: 1.4rem;
    padding: 1.5rem 3rem;
    border-radius: 60px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transform: scale(1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-hero:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 25px 60px rgba(99, 102, 241, 0.6);
    background: linear-gradient(45deg, #4f46e5, #7c3aed);
}

.btn-hero:hover::before {
    left: 100%;
}

.btn-hero:active {
    transform: scale(1.05) translateY(-1px);
}

.btn-hero:focus {
    outline: none;
    box-shadow: 0 25px 60px rgba(99, 102, 241, 0.6), 0 0 0 4px rgba(99, 102, 241, 0.3);
}

/* Project Form Styles */
.project-form-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.3s ease;
    opacity: 0;
    margin-top: 2rem;
}

.project-form-container.active {
    max-height: 600px;
    opacity: 1;
}

.project-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    margin-top: 1rem;
}

.project-form h3 {
    text-align: center;
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.form-buttons .btn {
    min-width: max(140px, 30%);
}

.form-buttons .btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e1e5e9;
}

.form-buttons .btn-secondary:hover {
    background: #e9ecef;
    color: #333;
    border-color: #ced4da;
}

/* Success Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 1rem;
    box-sizing: border-box;
}

.modal-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 3rem 2rem 2rem;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: min(450px, 90vw);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    margin: auto;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.modal-close:hover {
    color: #333;
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.modal-content h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.modal-content p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 min(1.5rem, 3vw);
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .profile-container {
        width: 40%;
        max-width: 350px;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Tablets */
@media (max-width: 768px) {
    .container {
        padding: 0 min(1rem, 2vw);
    }

    /* Navigation */
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-container {
        padding: 1rem;
    }

    /* Hero Section */
    .hero {
        min-height: 90vh;
        padding-top: 2rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 2.8rem;
        line-height: 1.1;
    }

    .hero-text p {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .profile-container {
        width: 60%;
        max-width: 280px;
    }

    .cta-buttons {
        justify-content: center;
        gap: 1rem;
    }

    .btn {
        min-width: max(160px, 40%);
        text-align: center;
    }

    /* Sections */
    .skills,
    .experience,
    .pricing,
    .contact {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Skills Grid */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-card {
        padding: 1.5rem;
    }

    /* Experience Carousel */
    .experience-carousel {
        overflow: hidden;
        width: 100%;
        max-width: 100vw;
        position: relative;
    }

    .experience-grid {
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        width: 100%;
    }

    .experience-grid .experience-card {
        max-width: 100vw;
        width: 100%;
        padding: 2rem 1.5rem;
        margin: 0;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 480px;
        scroll-snap-align: center;
        flex-shrink: 0;
    }

    .company-logo {
        font-size: 1.2rem;
        font-weight: 800;
        margin-bottom: 1.5rem;
        color: #6366f1;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-align: center;
        width: 100%;
    }

    .experience-card h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        color: #1a1a1a;
        font-weight: 600;
        line-height: 1.3;
        text-align: center;
        width: 100%;
    }

    .experience-card p {
        color: #6b7280;
        margin-bottom: 1.5rem;
        line-height: 1.6;
        font-size: 1rem;
        text-align: left;
        width: 100%;
        padding: 0 1rem;
    }

    .tech-stack {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
        margin-top: 1rem;
        width: 100%;
        padding: 0 1rem;
    }


    .carousel-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
        position: relative;
        align-items: center;
        justify-content: center;
    }

    .carousel-btn {
        display: none;
    }

    .carousel-content {
        flex: 1;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        max-width: 100vw;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE 10+ */
    }

    .carousel-content::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Opera */
    }

    /* Enhanced card styling for mobile */
    .experience-grid .experience-card {
        box-shadow: 0 8px 32px rgba(99, 102, 241, 0.12);
        transition: all 0.3s ease;
    }

    /* Show indicators and swipe hint on mobile */
    .carousel-indicators {
        display: flex;
    }

    .mobile-swipe-hint {
        display: block;
    }

    /* Pricing */
    .pricing-card.featured {
        transform: none;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .contact-item {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .btn-hero {
        font-size: 1.2rem;
        padding: 1.2rem 2.5rem;
    }

    /* Form */
    .project-form {
        padding: 1.5rem;
    }

    .form-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .form-buttons .btn {
        width: 100%;
        min-width: auto;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .hero-text h1 {
        margin-top: 70px;
        font-size: 1.9rem;
    }

    .container {
        padding: 0 min(0.75rem, 1.5vw);
    }

    /* Navigation */
    .nav-container {
        padding: 0.75rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    /* Hero Section */
    .hero {
        min-height: 85vh;
        padding-top: 1rem;
    }

    .hero-content {
        gap: 2rem;
    }

    .hero-image {
        padding-bottom: 20px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
        margin-bottom: 0.75rem;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .profile-container {
        width: 80%;
        max-width: 200px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: min(280px, 90vw);
        padding: 0.875rem 1.5rem;
    }

    /* Sections */
    .skills,
    .experience,
    .pricing,
    .contact {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    /* Skills */
    .skill-card {
        padding: 1.25rem;
    }

    .skill-icon {
        font-size: 2.5rem;
    }

    .skill-card h3 {
        font-size: 1.3rem;
    }

    /* Experience */
    .carousel-container {
        padding: 0.5rem;
        align-items: center;
        justify-content: center;
    }

    .experience-grid {
        gap: 0;
    }

    .experience-grid .experience-card {
        width: 100%;
        padding: 1.5rem 1rem;
        margin: 0;
        box-sizing: border-box;
        min-height: 420px;
        scroll-snap-align: center;
        flex-shrink: 0;
    }

    .tech-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    /* Pricing */
    .pricing-card {
        padding: 1.25rem;
    }

    .pricing-icon {
        font-size: 2rem;
    }

    .pricing-card h3 {
        font-size: 1.3rem;
    }

    .pricing-amount {
        font-size: 1.75rem;
    }

    .service-item {
        padding: 1.5rem;
    }

    /* Contact */
    .contact-content {
        padding: 0;
    }

    .contact-item {
        padding: 1rem 1.5rem;
        max-width: 100%;
    }

    .btn-hero {
        font-size: 1.1rem;
        padding: 1rem 2rem;
        letter-spacing: 0.5px;
    }

    /* Forms */
    .project-form {
        padding: 1.25rem;
        margin-top: 0.5rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    /* Modal */
    .modal-overlay {
        padding: 0.5rem;
    }

    .modal-content {
        margin: 0;
        padding: 2.5rem 1.5rem 1.5rem;
        border-radius: 15px;
        max-height: 85vh;
    }

    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 1.8rem;
        width: 40px;
        height: 40px;
    }

    .modal-icon {
        font-size: 3rem;
        margin-bottom: 0.75rem;
    }

    .modal-content h3 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }

    .modal-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
}

/* Small mobile devices */
@media (max-width: 360px) {

    .profile-container {
        width: 200px;
        height: 200px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn-hero {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

    .contact-item {
        padding: 0.875rem 1.25rem;
    }

    /* Experience Carousel for very small screens */
    .carousel-container {
        padding: 0.25rem;
        align-items: center;
        justify-content: center;
    }

    .experience-grid {
        gap: 0;
    }

    .experience-grid .experience-card {
        width: 100%;
        padding: 1.25rem 0.75rem;
        margin: 0;
        box-sizing: border-box;
        min-height: 380px;
        scroll-snap-align: center;
        flex-shrink: 0;
    }

    /* Modal for very small screens */
    .modal-overlay {
        padding: 0.25rem;
    }

    .modal-content {
        padding: 2rem 1rem 1.25rem;
        border-radius: 12px;
        max-height: 90vh;
    }

    .modal-close {
        top: 8px;
        right: 12px;
        font-size: 1.6rem;
        width: 36px;
        height: 36px;
    }

    .modal-icon {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .modal-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .modal-content p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
        line-height: 1.4;
    }
}

/* Mobile landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .modal-content {
        max-height: 95vh;
        padding: 1.5rem 1.5rem 1rem;
    }

    .modal-icon {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .modal-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .modal-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }
}

/* Ensure minimum touch targets on all screen sizes */
@media (max-width: 768px) {

    button,
    .btn,
    input[type="submit"],
    input[type="button"] {
        min-height: 44px;
        min-width: 44px;
    }

    /* Prevent text from being too small */
    body {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }

    /* Ensure clickable elements have proper spacing */
    .nav-links a,
    .mobile-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Large desktop screens - keep profile picture at optimal size */
@media (min-width: 1400px) {
    .profile-container {
        width: 400px;
        height: 400px;
        max-width: none;
        aspect-ratio: unset;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}