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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #333333;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile-First Header Styles */
.header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    z-index: 1000;
    padding: 0.5rem 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: calc(100% - 2rem);
    max-width: 400px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.logo-image {
    height: 24px;
    width: auto;
    max-width: 120px;
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.02);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 18px;
    height: 2px;
    background: #333333;
    margin: 2px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Desktop Navigation - Hidden on Mobile */
.navigation {
    display: none;
}

.nav-link {
    text-decoration: none;
    color: #666666;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #000000;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-link:focus {
    outline: none;
    box-shadow: none;
}

/* CTA Button - Hidden on Mobile */
.cta-button {
    display: none;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* Standalone Left Logo (outside navbar) */
.standalone-logo {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.standalone-logo img {
    height: 24px;
    width: auto;
    display: block;
}

@media (min-width: 768px) {
    .standalone-logo img {
        height: 28px;
    }
}

@media (min-width: 1024px) {
    .standalone-logo img {
        height: 32px;
    }
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-navigation {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.active .mobile-navigation {
    transform: translateX(0);
}

.mobile-nav-link {
    display: block;
    padding: 1rem 0;
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.mobile-nav-link:hover {
    color: #1e3a8a;
    padding-left: 1rem;
}

.mobile-nav-link:focus {
    outline: none;
    box-shadow: none;
}

.mobile-cta-button {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    margin-top: 2rem;
    width: 100%;
}

.mobile-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* Mobile-First Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 1rem 4rem;
    background: #000000;
    position: relative;
    overflow: hidden;
}

/* Hero Background Video */
.hero-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* Video Overlay for better text readability */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    position: relative;
    z-index: 2;
    min-height: 80vh;
    padding: 0 2rem;
}

.hero-content {
    max-width: 100%;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
}

.title-line {
    display: block;
}

.hero-description {
    font-size: 1rem;
    color: #e0e7ff;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
}

.primary-button {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
    width: 100%;
    max-width: 280px;
    justify-content: center;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.5);
}

.button-icon {
    width: 20px;
    height: 20px;
}

.secondary-button {
    background: #ffffff;
    border: 1px solid #1e3a8a;
    border-radius: 50px;
    padding: 1rem 2rem;
    color: #1e3a8a;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 280px;
    justify-content: center;
}

.secondary-button:hover {
    background: #1e3a8a;
    color: #ffffff;
    border-color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

/* Hero Visual - Completely Hidden */
.hero-visual {
    display: none !important;
}


/* Tablet Styles */
@media (min-width: 768px) {
    .header {
        width: calc(100% - 4rem);
        max-width: 600px;
        padding: 0.75rem 2rem;
    }
    
    .logo-image {
        height: 28px;
        max-width: 140px;
    }
    
    .hero-section {
        padding: 6rem 2rem 4rem;
    }
    
    .hero-container {
        flex-direction: row;
        text-align: left;
        align-items: center;
        justify-content: flex-start;
        gap: 3rem;
    }
    
    .hero-content {
        max-width: 100%;
        flex: 1;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
    }
    
    .primary-button,
    .secondary-button {
        width: auto;
        max-width: none;
    }
    
    .hero-visual {
        display: none !important;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    /* Hide navbar logo on desktop */
    .header .logo { display: none; }
    .header {
        width: calc(100% - 6rem);
        max-width: 800px;
        padding: 0.75rem 2rem;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .navigation {
        display: flex;
        gap: 2rem;
        align-items: center;
    }
    
    .cta-button {
        display: block;
    }
    
    .logo-image {
        height: 32px;
        max-width: 160px;
    }
    
    .hero-container {
        gap: 4rem;
        justify-content: flex-start;
    }
    
    .hero-content {
        max-width: 600px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }
}

/* Mobile/Tablet: use navbar logo, hide standalone; animate into place */
@media (max-width: 1023px) {
    .standalone-logo { opacity: 0; pointer-events: none; }
    .header .logo {
        display: block;
        animation: logoSlideIn 0.6s ease forwards;
    }
    .header .logo .logo-image {
        transform: translateX(-12px);
        opacity: 0;
        animation: logoImageIn 0.6s 0.05s ease forwards;
    }
}

@keyframes logoSlideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes logoImageIn {
    from { transform: translateX(-12px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .hero-container {
        max-width: 1200px;
        padding: 0 2rem;
    }
    
    .hero-content {
        max-width: 600px;
    }
}

/* Animation Classes for GSAP */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Focus States for Accessibility */
.primary-button:focus,
.secondary-button:focus,
.cta-button:focus,
.mobile-cta-button:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Remove focus outlines from navigation elements */
.nav-link:focus,
.mobile-nav-link:focus {
    outline: none;
    box-shadow: none;
}

/* Remove focus outlines from all clickable elements */
a:focus,
button:focus {
    outline: none;
}

/* Smooth Animations */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Performance Optimizations */
.hero-section,
.header,
.mobile-nav-overlay {
    will-change: transform;
}

/* Portfolio Overlay */
.portfolio-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-overlay.active {
    opacity: 1;
    visibility: visible;
}

.portfolio-page {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 800px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.portfolio-overlay.active .portfolio-page {
    transform: translateX(0);
}

.portfolio-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.close-portfolio {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-portfolio:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.close-portfolio svg {
    width: 24px;
    height: 24px;
    color: #666666;
}

.portfolio-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0;
}

.portfolio-content {
    padding: 2rem;
    position: relative;
}

.portfolio-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #1e3a8a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.portfolio-loading p {
    color: #666666;
    font-size: 1rem;
    margin: 0;
}

.portfolio-error {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.portfolio-error p {
    color: #ef4444;
    font-size: 1rem;
    margin: 0;
}

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

.portfolio-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    height: 200px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-placeholder {
    width: 80px;
    height: 80px;
    color: #94a3b8;
    opacity: 0.6;
}

.project-placeholder svg {
    width: 100%;
    height: 100%;
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    color: #666666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.portfolio-tag {
    display: inline-block;
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-links {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-link-button {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border: 1px solid #1e3a8a;
    color: #1e3a8a;
    background: #ffffff;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.portfolio-link-button:hover {
    background: #1e3a8a;
    color: #ffffff;
}

/* Mobile Portfolio Styles */
@media (max-width: 768px) {
    /* Make hero fill the full mobile viewport height and remove gaps */
    .hero-section {
        padding: 0;
        min-height: 100svh;
        min-height: 100dvh;
    }

    .hero-background-video {
        width: 100vw;
        height: 100svh;
        height: 100dvh;
    }

    .hero-container {
        min-height: 100svh;
        min-height: 100dvh;
        padding: 6rem 1rem 2rem;
    }
    .portfolio-page {
        max-width: 100%;
        width: 100%;
    }
    
    .portfolio-header {
        padding: 1.5rem 1rem;
    }
    
    .portfolio-title {
        font-size: 1.5rem;
    }
    
    .portfolio-content {
        padding: 1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-item {
        margin-bottom: 1rem;
    }
}

/* Calendly Booking Overlay */
.calendly-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.calendly-overlay.active {
    opacity: 1;
    visibility: visible;
}

.calendly-modal {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.calendly-overlay.active .calendly-modal {
    transform: scale(1);
}

.calendly-header {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: #ffffff;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.calendly-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.close-calendly {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.close-calendly:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.close-calendly svg {
    width: 20px;
    height: 20px;
}

.calendly-content {
    padding: 0;
    overflow: hidden;
}

.calendly-inline-widget {
    width: 100% !important;
    height: 700px !important;
    border: none !important;
    border-radius: 0 0 16px 16px !important;
}

/* Tablet Calendly Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .calendly-modal {
        max-width: 95%;
        max-height: 90vh;
    }
    
    .calendly-inline-widget {
        height: 650px !important;
    }
}

/* Mobile Calendly Styles */
@media (max-width: 768px) {
    .calendly-overlay {
        padding: 1rem;
        align-items: flex-end;
    }
    
    .calendly-modal {
        max-width: 100%;
        max-height: 85vh;
        border-radius: 20px 20px 0 0;
        margin-bottom: 0;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
        transform: translateY(100%);
    }
    
    .calendly-overlay.active .calendly-modal {
        transform: translateY(0);
    }
    
    .calendly-header {
        padding: 1.5rem 1.5rem 1rem;
        border-radius: 20px 20px 0 0;
        position: relative;
    }
    
    .calendly-header::before {
        content: '';
        position: absolute;
        top: 0.75rem;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }
    
    .calendly-title {
        font-size: 1.25rem;
        text-align: center;
        margin-top: 0.5rem;
    }
    
    .close-calendly {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
    }
    
    .close-calendly:hover {
        background: rgba(255, 255, 255, 0.25);
    }
    
    .calendly-inline-widget {
        height: calc(85vh - 100px) !important;
        border-radius: 0;
    }
}

/* Small Mobile Calendly Styles */
@media (max-width: 480px) {
    .calendly-overlay {
        padding: 0;
        align-items: flex-end;
    }
    
    .calendly-modal {
        border-radius: 16px 16px 0 0;
        max-height: 90vh;
        height: 90vh;
        transform: translateY(100%);
    }
    
    .calendly-header {
        padding: 1rem 1rem 0.75rem;
        border-radius: 16px 16px 0 0;
    }
    
    .calendly-header::before {
        top: 0.5rem;
        width: 32px;
        height: 3px;
    }
    
    .calendly-title {
        font-size: 1.1rem;
        margin-top: 0.25rem;
    }
    
    .close-calendly {
        top: 0.75rem;
        right: 0.75rem;
        width: 32px;
        height: 32px;
    }
    
    .close-calendly svg {
        width: 18px;
        height: 18px;
    }
    
    .calendly-inline-widget {
        height: calc(90vh - 85px) !important;
        border-radius: 0 !important;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .calendly-modal {
        max-height: 95vh;
        height: 95vh;
    }
    
    .calendly-header {
        padding: 0.75rem 0.75rem 0.5rem;
    }
    
    .calendly-title {
        font-size: 1rem;
    }
    
    .calendly-inline-widget {
        height: calc(95vh - 75px) !important;
    }
}

/* Page Layout Styles */
.page-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: #ffffff;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(30, 58, 138, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 138, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.blog-hero {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.page-hero-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.blog-source {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

.follow-button {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.follow-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.page-content {
    padding: 4rem 0;
    min-height: 60vh;
}

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

/* Modern Case Studies Styles */
.modern-case-studies-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 6rem 0 4rem;
    margin-top: 4rem;
}

.modern-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.modern-header-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.modern-site-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1.5rem 0;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.modern-site-description {
    font-size: 1.25rem;
    color: #6b7280;
    margin: 0 0 3rem 0;
    line-height: 1.6;
    font-weight: 400;
}

.modern-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modern-case-studies-main {
    background: #ffffff;
    min-height: 70vh;
}

.modern-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.modern-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    text-align: center;
}

.modern-loading-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #1e3a8a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

.modern-loading p {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

/* Featured Case Study */
.modern-featured-case-study {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    padding: 3rem;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modern-featured-case-study:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.modern-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modern-case-study-tag {
    display: inline-block;
    background: #1e3a8a;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.modern-case-study-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.025em;
}

.modern-case-study-excerpt {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 2rem 0;
}

.modern-case-study-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.modern-client-name,
.modern-project-duration,
.modern-project-category {
    font-weight: 500;
    position: relative;
    padding-left: 1rem;
}

.modern-client-name::before,
.modern-project-duration::before,
.modern-project-category::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #d1d5db;
}

.modern-client-name::before {
    content: '👤';
}

.modern-project-duration::before {
    content: '⏱️';
}

.modern-project-category::before {
    content: '🏷️';
}

.modern-featured-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    border-radius: 12px;
    padding: 3rem;
}

.modern-results-preview {
    text-align: center;
}

.result-highlight .result-value {
    font-size: 4rem;
    font-weight: 800;
    color: #ffffff;
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.result-highlight .result-metric {
    font-size: 1.25rem;
    color: #e0e7ff;
    font-weight: 500;
}

/* Case Studies Grid */
.modern-case-studies-section {
    margin-top: 4rem;
}

.modern-case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.modern-case-study-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modern-case-study-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.modern-card-header {
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-bottom: 1px solid #e5e7eb;
}

.modern-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.modern-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.modern-card-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modern-tech-tag {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.modern-card-body {
    padding: 2rem;
}

/* Careers Page */
.careers-card-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.apply-form {
    margin-top: 0.5rem;
}

.apply-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.apply-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.apply-field.wide {
    grid-column: 1 / -1;
}

.apply-field label {
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
}

.apply-field input,
.apply-field textarea {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    background: #fff;
}

.apply-field input:focus,
.apply-field textarea:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

@media (max-width: 768px) {
    .apply-grid {
        grid-template-columns: 1fr;
    }
}

.modern-card-challenge,
.modern-card-solution {
    margin-bottom: 2rem;
}

.modern-card-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.modern-card-section-content {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.9rem;
}

.modern-card-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.modern-result-item {
    text-align: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.modern-result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
    display: block;
    line-height: 1;
}

.modern-result-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: 0.25rem;
}

.modern-card-testimonial {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.modern-testimonial-quote {
    font-size: 1rem;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.modern-testimonial-author {
    font-weight: 600;
    font-size: 0.875rem;
}

.modern-testimonial-position {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* Error State */
.modern-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    text-align: center;
}

.modern-error-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1rem 0;
}

.modern-error-content p {
    color: #6b7280;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

.modern-retry-button {
    background: #1e3a8a;
    color: #ffffff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modern-retry-button:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

/* Ghost-style Blog Styles */
.ghost-blog-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 6rem 0 4rem;
    margin-top: 4rem;
}

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

.ghost-site-info {
    flex: 1;
}

.ghost-site-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem 0;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.ghost-site-description {
    font-size: 1.25rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

.ghost-social-links {
    display: flex;
    gap: 1rem;
}

.ghost-social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.ghost-social-link:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.ghost-social-link svg {
    width: 16px;
    height: 16px;
}

.ghost-main {
    background: #ffffff;
    min-height: 70vh;
}

.ghost-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.ghost-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    text-align: center;
}

.ghost-loading-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

.ghost-loading p {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

/* Featured Post */
.ghost-featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ghost-featured-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.ghost-featured-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.ghost-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ghost-featured-post:hover .ghost-featured-image img {
    transform: scale(1.02);
}

.ghost-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ghost-post-tag {
    display: inline-block;
    background: #6366f1;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.ghost-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.025em;
}

.ghost-post-excerpt {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 2rem 0;
}

.ghost-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.ghost-post-date {
    font-weight: 500;
}

.ghost-post-reading-time {
    position: relative;
    padding-left: 1rem;
}

.ghost-post-reading-time::before {
    content: '•';
    position: absolute;
    left: 0.25rem;
    color: #d1d5db;
}

/* Posts Grid */
.ghost-posts-section {
    margin-top: 4rem;
}

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

.ghost-post-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.ghost-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.ghost-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.ghost-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ghost-post-card:hover .ghost-card-image img {
    transform: scale(1.05);
}

.ghost-card-content {
    padding: 0;
}

.ghost-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.01em;
}

.ghost-card-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
}

.ghost-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #9ca3af;
}

.ghost-card-date {
    font-weight: 500;
}

.ghost-card-reading-time {
    color: #6366f1;
    font-weight: 500;
}

/* Error State */
.ghost-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    text-align: center;
}

.ghost-error-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1rem 0;
}

.ghost-error-content p {
    color: #6b7280;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

.ghost-retry-button {
    background: #6366f1;
    color: #ffffff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ghost-retry-button:hover {
    background: #5856eb;
    transform: translateY(-1px);
}

/* Active navigation state */
.nav-link.active,
.mobile-nav-link.active {
    color: #1e3a8a;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

/* Retry Button */
.retry-button {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.retry-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-hero {
        min-height: 50vh;
        padding: 6rem 1rem 3rem;
    }
    
    .page-hero-title {
        font-size: 2.5rem;
    }
    
    .page-hero-description {
        font-size: 1rem;
    }
    
    .blog-hero-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .case-study-results {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .case-study-header,
    .case-study-body {
        padding: 1.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .case-study-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Ghost Mobile Styles */
    .ghost-blog-header {
        padding: 4rem 0 3rem;
        margin-top: 3rem;
    }
    
    .ghost-header-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .ghost-site-title {
        font-size: 2.5rem;
    }
    
    .ghost-site-description {
        font-size: 1.125rem;
    }
    
    .ghost-container {
        padding: 2rem 1rem;
    }
    
    .ghost-featured-post {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }
    
    .ghost-featured-image img {
        height: 250px;
    }
    
    .ghost-post-title {
        font-size: 2rem;
    }
    
    .ghost-post-excerpt {
        font-size: 1rem;
    }
    
    .ghost-posts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .ghost-card-title {
        font-size: 1.25rem;
    }
    
    .ghost-card-image {
        height: 200px;
    }
    
    /* Modern Case Studies Mobile */
    .modern-case-studies-header {
        padding: 4rem 0 3rem;
        margin-top: 3rem;
    }
    
    .modern-site-title {
        font-size: 2.5rem;
    }
    
    .modern-site-description {
        font-size: 1.125rem;
    }
    
    .modern-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modern-container {
        padding: 2rem 1rem;
    }
    
    .modern-featured-case-study {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
        margin-bottom: 4rem;
    }
    
    .modern-case-study-title {
        font-size: 2rem;
    }
    
    .modern-case-study-excerpt {
        font-size: 1rem;
    }
    
    .modern-case-studies-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modern-card-header,
    .modern-card-body {
        padding: 1.5rem;
    }
    
    .modern-card-results {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .page-hero-title {
        font-size: 2rem;
    }
    
    .page-hero-description {
        font-size: 0.95rem;
    }
    
    .case-study-header,
    .case-study-body {
        padding: 1rem;
    }
    
    .case-study-testimonial {
        padding: 1.5rem;
    }
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* High DPI optimizations can be added here */
}
/* ==========================================
   SUCCESS MODAL - Application Submitted
   ========================================== */

.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-modal-overlay.active {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    opacity: 1;
}

.success-modal {
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-modal-overlay.active .success-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Animated Checkmark */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.success-checkmark svg {
    width: 52px;
    height: 52px;
}

.success-checkmark circle {
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: circle-animation 0.6s ease-out 0.1s forwards;
}

.success-checkmark path {
    stroke: white;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    fill: none;
    animation: check-animation 0.3s ease-out 0.5s forwards;
}

@keyframes circle-animation {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes check-animation {
    to {
        stroke-dashoffset: 0;
    }
}

/* Modal Content */
.success-modal h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.success-name {
    font-size: 18px;
    color: #4a5568;
    margin: 0 0 24px 0;
    font-weight: 500;
}

.success-info {
    background: #f7fafc;
    border-radius: 16px;
    padding: 24px;
    margin: 0 0 28px 0;
}

.success-info p {
    font-size: 15px;
    color: #718096;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.email-badge {
    background: white;
    color: #667eea;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    margin: 12px 0;
    border: 2px solid #e2e8f0;
    word-break: break-all;
}

.info-note {
    font-size: 13px !important;
    color: #a0aec0 !important;
    margin: 12px 0 0 0 !important;
    font-style: italic;
}

.success-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 48px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.3);
}

.success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.success-btn:active {
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .success-modal {
        padding: 36px 28px;
        border-radius: 20px;
        margin: 0 16px;
    }
    
    .success-modal h2 {
        font-size: 24px;
    }
    
    .success-name {
        font-size: 16px;
    }
    
    .success-checkmark {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }
    
    .success-checkmark svg {
        width: 42px;
        height: 42px;
    }
    
    .success-info {
        padding: 20px;
    }
    
    .success-info p {
        font-size: 14px;
    }
    
    .email-badge {
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .success-btn {
        padding: 14px 36px;
        font-size: 15px;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .success-modal {
        background: #1a202c;
    }
    
    .success-modal h2 {
        color: #f7fafc;
    }
    
    .success-name {
        color: #cbd5e0;
    }
    
    .success-info {
        background: #2d3748;
    }
    
    .success-info p {
        color: #a0aec0;
    }
    
    .email-badge {
        background: #2d3748;
        border-color: #4a5568;
    }
}
