html {
    scroll-behavior: smooth;
}

body {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* body.loading {
    opacity: 0;
} */


.hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
    background: linear-gradient(135deg, #0061ff 0%, #00c7ff 100%);
    color: white;
    border-radius: 0 0 40px 40px;
    margin-bottom: 3rem;
    opacity: 1;
    transform: translateY(0);
    position: relative;
    overflow: hidden;
    padding: 8rem 2rem 6rem;
}

.hero::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    top: 20%;
    left: 50%;
    animation: float 12s infinite;
    mix-blend-mode: soft-light;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float 20s infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(100px, 50px) rotate(5deg); }
    50% { transform: translate(-50px, 100px) rotate(-5deg); }
    75% { transform: translate(-100px, -50px) rotate(5deg); }
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -55%) scale(1.05); }

}


.hero-content {
    position: relative;
    z-index: 2;
}

.hero-subtext {
    font-size: 1.25rem;
    margin: 1.5rem auto;
    max-width: 800px;
    animation: slideUpFadeIn 1s ease-out 0.4s backwards;
}


.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    animation: slideUpFadeIn 1s ease-out 0.2s backwards;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.cta-buttons {
    margin: 2.5rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUpFadeIn 1s ease-out 0.6s backwards;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 50px;
    background: #0061ff;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.cta-button.outline {
    background: transparent;
    border-color: rgba(255,255,255,0.3);
    color: white;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
}

.stat-number {
font-feature-settings: "tnum";
font-variant-numeric: tabular-nums;
transition: all 0.3s ease-out;
display: inline-block;
transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-item {
    text-align: center;
    perspective: 1000px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700;
}

.stat-item:hover .stat-number {
    transform: rotateX(15deg) scale(1.1);
    text-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.coming-soon {
    position: relative;
    overflow: hidden;
}

.coming-soon::after {
    content: "Coming Soon";
    position: absolute;
    top: 45px;
    right: -30px;
    background: #ffd700;
    color: #000;
    padding: 3px 30px;
    transform: rotate(45deg);
    font-size: 2rem;
    font-weight: 800;
    z-index: 1;
    pointer-events: none;
    font-size: 0.65rem;
    right: -32px;
    width: 120px;
    text-align: center;
}

.featured-section {
    background: white;
    padding: 4rem 0;
    margin: 3rem 0;
}

/* Add animation */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer {
    background: #1a1a1a;
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;

}

.footer.animate {
    opacity: 1;
    transform: translateY(0);
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: white;
    margin: 0 10px;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.social-links a:hover {
    opacity: 1;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: #f5f6fa;
    min-height: 100vh;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar.scrolled {
    padding: 0.25rem 2rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}



.logo a {
    font-weight: 700;
    font-size: 1.5rem;
    color: #0061ff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: translateY(-1px);
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-item {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: #0061ff;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0061ff;
    transition: width 0.3s ease;
}

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

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-button {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.login-button:hover {
    background: rgba(0, 97, 255, 0.08);
    color: #0061ff;
}

.nav-cta {
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

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

.mobile-menu-toggle:hover {
    color: #0061ff;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 999;
}

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

.mobile-menu-item {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 0;
    transition: color 0.3s ease;
}

.mobile-menu-item:hover {
    color: #0061ff;
}

.mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.login-button.mobile, .cta-button.mobile {
    text-align: center;
    padding: 0.75rem;
}

/* Adjust the hero section to account for fixed navbar */
.hero {
    margin-top: 74px; /* Adjust based on navbar height */
}

/* Media Queries */
@media (max-width: 992px) {
    .nav-links {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-buttons {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .hero {
        margin-top: 64px; /* Adjust for smaller navbar on mobile */
    }
}

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

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

.project-block {
    animation: cardEntrance 3.5s ease-out;
    animation-fill-mode: backwards;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e0e0e0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.project-block:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(-2deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: #0061ff;
}



.project-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #0061ff;
}

.project-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.project-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

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

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1023px) and (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

body:not(.loaded) {
    overflow: hidden;
}

.loaded .loading-overlay {
    opacity: 0;
    pointer-events: none;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader {
    width: 80px;
    height: 80px;
    position: relative;
    transform: rotate(45deg);
}

.loader-square {
    position: absolute;
    width: 35px;
    height: 35px;
    background: #0061ff;
    animation: loadAnim 1.6s ease infinite;
}

.loader-square:nth-child(1) {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.loader-square:nth-child(2) {
    top: 0;
    right: 0;
    animation-delay: 0.4s;
}

.loader-square:nth-child(3) {
    bottom: 0;
    left: 0;
    animation-delay: 1.2s;
}

.loader-square:nth-child(4) {
    bottom: 0;
    right: 0;
    animation-delay: 0.8s;
}

@keyframes loadAnim {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.5);
        opacity: 0.5;
    }
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loaded .loading-overlay {
    opacity: 0;
    pointer-events: none;
}


/* body.loading {
    overflow: hidden;
} */

/* Side Projects Specific Styles */
.tech-stack {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-pill {
    background: rgba(0,0,0,0.08);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #444;
}

.featured-section .project-block {
    position: relative;
    overflow: hidden;
}

.featured-section .project-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.featured-section .project-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom right, #f8f9fa, #ffffff);
}

.feature-card {
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #eaeaea;
    transform-style: preserve-3d;
    position: relative;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x) var(--y), 
        rgba(0,97,255,0.08) 0%, 
        transparent 80%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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


.feature-icon {
    font-size: 2.5rem;
    color: #0061ff;
    margin-bottom: 1.5rem;
    background: rgba(0,97,255,0.1);
    padding: 1.5rem;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(-15deg) scale(1.1);
}

.grid-three-col {
    grid-template-columns: repeat(3, 1fr);
}

/* Newsletter Section Styles */
.newsletter-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.newsletter-card {
    background: white;
    border-radius: 24px;
    padding: 4rem;
    display: flex;
    gap: 3rem;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.newsletter-content {
    flex: 1;
}

.newsletter-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.newsletter-content p {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #0061ff;
    box-shadow: 0 0 0 3px rgba(0,97,255,0.1);
}

.newsletter-form button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    background: #0061ff;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-form button:hover {
    background: #0052d6;
    transform: translateY(-1px);
}

.newsletter-graphic {
    position: relative;
    width: 300px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pulsing-dot {
    width: 120px;
    height: 120px;
    background: rgba(0,97,255,0.1);
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
}

.pulsing-dot::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    background: #0061ff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.connecting-line {
    position: absolute;
    height: 2px;
    background: #e2e8f0;
    width: 80%;
    top: 50%;
    left: 10%;
    animation: connect 3s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes connect {
    0%, 100% { transform: scaleX(1); opacity: 1; }
    50% { transform: scaleX(1.1); opacity: 0.8; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .newsletter-card {
        flex-direction: column;
        padding: 2rem;
    }
    
    .newsletter-graphic {
        display: none;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        justify-content: center;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Web Applications Section Specific Styles */
.web-app-block {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.web-app-block:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(147, 51, 234, 0.15);
    border-color: #9333ea;
}

.web-app-block .project-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #9333ea, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(147, 51, 234, 0.1));
}

.web-app-block .project-title {
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 700;
}

.web-app-block .project-desc {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* App Features Tags */
.app-features {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(147, 51, 234, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #9333ea;
    border: 1px solid rgba(147, 51, 234, 0.2);
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: rgba(147, 51, 234, 0.15);
    transform: translateY(-1px);
}

.feature-tag i {
    font-size: 0.75rem;
}

/* Enhanced tech stack for web apps */
.web-app-block .tech-pill {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border: 1px solid #cbd5e1;
    color: #475569;
    font-weight: 600;
    transition: all 0.3s ease;
}

.web-app-block .tech-pill:hover {
    background: #9333ea;
    color: white;
    transform: translateY(-1px);
}

/* Coming Soon Web Apps Specific Styles */
.web-app-block.coming-soon {
    position: relative;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    opacity: 0.8;
}

.web-app-block.coming-soon::after {
    content: "Coming Soon";
    position: absolute;
    top: 35px;
    right: -35px;
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    color: white;
    padding: 4px 35px;
    transform: rotate(45deg);
    font-size: 0.7rem;
    font-weight: 800;
    z-index: 1;
    pointer-events: none;
    width: 130px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.web-app-block.coming-soon:hover {
    opacity: 0.9;
    transform: translateY(-5px) scale(1.01);
}

/* Color variations for different apps */
.web-app-block.coming-soon:nth-child(2) .project-icon {
    background: linear-gradient(135deg, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.web-app-block.coming-soon:nth-child(3) .project-icon {
    background: linear-gradient(135deg, #dc2626, #f87171);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Different feature tag colors */
.web-app-block.coming-soon:nth-child(2) .feature-tag {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
    border-color: rgba(5, 150, 105, 0.2);
}

.web-app-block.coming-soon:nth-child(3) .feature-tag {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .app-features {
        justify-content: center;
    }
    
    .feature-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .web-app-block.coming-soon::after {
        right: -32px;
        font-size: 0.65rem;
        width: 120px;
    }
}



/***styles for modal here***/
  /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(5px);
        }

        .modal-content {
            position: relative;
            margin: 2% auto;
            width: 95%;
            height: 90%;
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0,0,0,0.5);
            display: flex;
            flex-direction: column;
        }

        .modal-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
            position: relative;
            z-index: 10;
        }

        .modal-header h3 {
            margin: 0;
            font-size: 1.3rem;
        }

        .close {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            font-size: 24px;
            font-weight: bold;
            cursor: pointer;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

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

        .game-iframe {
            width: 100%;
            flex: 1;
            border: none;
            background: white;
            overflow: auto;
        }

        .iframe-container {
            flex: 1;
            overflow: auto;
            background: white;
            position: relative;
        }

        .loading {
            display: flex;
            justify-content: center;
            align-items: center;
            flex: 1;
            font-size: 1.2rem;
            color: #667eea;
            background: white;
        }

        .spinner {
            border: 3px solid #f3f3f3;
            border-top: 3px solid #667eea;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            animation: spin 1s linear infinite;
            margin-right: 15px;
        }

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

        
        @media (max-width: 768px) {
            .header h1 {
                font-size: 2rem;
            }

            .modal-content {
                width: 98%;
                height: 95%;
                margin: 1% auto;
            }

            .grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
        }

        /* Auth Modal Styles */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.auth-modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 400px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-header {
    background: linear-gradient(135deg, #0061ff 0%, #00c7ff 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    text-align: center;
    position: relative;
}

.auth-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.auth-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.auth-body {
    padding: 2rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.form-group input {
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-group input:focus {
    outline: none;
    border-color: #0061ff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0,97,255,0.1);
}

.auth-submit {
    padding: 1rem;
    background: linear-gradient(135deg, #0061ff, #00c7ff);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,97,255,0.3);
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
}

.auth-switch-link {
    color: #0061ff;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.auth-switch-link:hover {
    color: #0052d6;
}

.success-message {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .auth-modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .auth-header, .auth-body {
        padding: 1.5rem;
    }
}

/* User Profile Styles */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.user-avatar:hover {
    transform: scale(1.1);
}

.sign-out-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #e5e7eb;
    color: #374151;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sign-out-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Mobile styles */
.mobile-user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
}

.mobile-user-profile .user-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.mobile-sign-out {
    padding: 0.75rem 1rem;
    background: #f3f4f6;
    border: none;
    color: #374151;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    width: 100%;
    text-align: center;
    cursor: pointer;
}

/* Loading overlay for auth modal */
.auth-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 20px; /* Match the modal border radius */
    flex-direction: column;
}

.auth-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Loading spinner */
.auth-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0061ff; /* Match your theme color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Loading text */
.auth-loading-text {
    margin-top: 16px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* Button loading state */
.auth-submit.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}


/* About Page Specific Styles */
.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 6rem 0 4rem;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-section {
    margin-bottom: 4rem;
}

.about-section h2 {
    color: #1a1a1a;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-section p {
    color: #4a5568;
    line-height: 1.7;
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

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

.tech-category h4 {
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.value-card {
    text-align: center;
    padding: 2rem 1rem;
}

.value-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.value-card h3 {
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.value-card p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 1rem;
}

.grid-two-col {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-three-col {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Active navigation state */
.nav-item.active {
    color: #667eea;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-section h2 {
        font-size: 1.5rem;
    }
    
    .about-section p {
        font-size: 1rem;
    }
    
    .tech-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-content {
        padding: 0 1rem;
    }
}

/* Nav Button Styles */
.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 160px;
    text-align: center;
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    text-decoration: none;
    color: white;
}

.nav-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}


