/* Modern Landing Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Main Colors */
    --primary: #5b21b6;
    --primary-light: #7c3aed;
    --primary-dark: #4c1d95;
    --secondary: #059669;
    --accent: #f59e0b;
    
    /* Background Colors */
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-light: #f8fafc;
    
    /* Text Colors */
    --text-light: #f1f5f9;
    --text-dark: #1e293b;
    --text-muted: #94a3b8;
    
    /* Utility Colors */
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    
    /* Other Variables */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Transitions */
    --transition-slow: 0.5s ease;
    --transition-medium: 0.3s ease;
    --transition-fast: 0.15s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-light);
    background: var(--bg-dark);
    overflow-x: hidden;
    min-width: 320px; /* Prevent layout issues on very small screens */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevent extra space below images */
}

ul {
    list-style: none;
}

/* Image Placeholders */
.img-placeholder {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.img-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 25%,
        transparent 50%
    );
    transform: rotate(30deg);
    pointer-events: none;
}

.img-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.img-placeholder span {
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Improved Image Handling for Responsiveness */
.hero-img {
    width: 100%;
    height: auto;
    min-height: 350px;
    max-height: 600px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: transform 0.8s ease;
}

.profile-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.2;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s ease;
}

.about-image:hover .profile-img {
    transform: scale(1.03);
}

.about-image {
    position: relative;
    overflow: hidden;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), transparent);
    z-index: 1;
    pointer-events: none;
    border-radius: var(--radius-lg);
}

.project-img {
    height: 200px;
    width: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
}

/* Contact Section Image */
.contact-img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    max-height: 600px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: all var(--transition-medium);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(15, 23, 42, 0.95);
}

.navbar.navbar-hidden {
    transform: translateY(-100%);
}

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

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-light);
}

.logo img {
    height: 40px;
    width: auto;
    margin-right: 0.75rem;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all var(--transition-medium);
    z-index: 1002;
}

.menu-toggle.active {
    position: fixed;
    right: 5%;
}

.menu-toggle.active i {
    color: var(--text-light);
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu li a {
    position: relative;
    font-weight: 500;
    color: var(--text-light);
    padding: 0.25rem 0;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    bottom: 0;
    left: 0;
    transition: width var(--transition-medium);
}

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

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 6rem 5% 3rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 27, 75, 0.85)),
                url('images/hero-network.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.15), transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(5, 150, 105, 0.1), transparent 30%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero h1 .static-text {
    display: block;
    background: linear-gradient(to right, var(--text-light), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Typed.js cursor customization */
.typed-cursor {
    color: var(--primary-light);
    font-size: 3.5rem;
    font-weight: 700;
    opacity: 1;
    animation: typedjsBlink 0.7s infinite;
}

@keyframes typedjsBlink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

#typed-text {
    color: var(--primary-light);
    font-weight: 700;
    display: inline-block;
    min-height: 3.5rem;
    position: relative;
}

@keyframes pulseGlow {
    0% { opacity: 0.3; box-shadow: 0 0 5px var(--primary-light); }
    100% { opacity: 1; box-shadow: 0 0 15px var(--primary-light), 0 0 30px var(--primary); }
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-medium);
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--primary);
    color: var(--text-light);
    box-shadow: 0 4px 14px rgba(91, 33, 182, 0.4);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(91, 33, 182, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-light);
}

.btn-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(91, 33, 182, 0.3);
}

/* Mobile Responsive Hero Section */
@media (max-width: 992px) {
    .hero {
        text-align: center;
        padding-top: 100px;
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    .hero-content {
    width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding: 120px 5% 40px;
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 27, 75, 0.85)),
                    url('images/hero-network.jpg');
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
    }
    
    .hero::before {
        background: radial-gradient(circle at 50% 30%, rgba(124, 58, 237, 0.3), transparent 70%),
                    radial-gradient(circle at 50% 80%, rgba(5, 150, 105, 0.2), transparent 70%);
    }
    
    .hero-content {
        width: 100%;
        max-width: 540px;
        margin: 0 auto;
        z-index: 2;
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 80px 5% 40px;
    }
    
    .hero-content {
        padding: 15px;
    }
}

/* Section Styles */
section {
    padding: 5rem 5%;
    position: relative;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-light);
    position: relative;
    display: inline-block;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--primary-light);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* About Section */
.about {
    background-color: var(--bg-dark);
    position: relative;
}

.about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 20%, rgba(124, 58, 237, 0.08), transparent 25%);
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.about-interests span {
    background-color: var(--bg-card);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-medium);
}

.about-interests span:hover {
    transform: translateY(-3px);
    background-color: var(--primary-dark);
    border-color: var(--primary-light);
}

/* Services Section */
.services {
    background-color: #111827;
    position: relative;
}

.services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 80%, rgba(5, 150, 105, 0.08), transparent 25%);
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    transition: all var(--transition-medium);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-light);
    background: rgba(124, 58, 237, 0.1);
    border-radius: 50%;
    transition: all var(--transition-medium);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--text-light);
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-block;
    color: var(--primary-light);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(124, 58, 237, 0.1);
    transition: all var(--transition-medium);
}

.service-link:hover {
    background: var(--primary);
    color: var(--text-light);
}

/* Projects Section */
.projects {
    background: #0c0c14;
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(76, 0, 255, 0.4) 0%, rgba(76, 0, 255, 0) 50%),
                radial-gradient(circle at 80% 70%, rgba(0, 183, 255, 0.4) 0%, rgba(0, 183, 255, 0) 50%);
    opacity: 0.7;
    z-index: 0;
}

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

.projects .section-header h2 {
    color: #fff;
    font-size: 2.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(76, 0, 255, 0.5);
}

.projects .section-divider {
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    height: 2px;
    margin: 12px auto 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 60px;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    height: 100%;
    transform-origin: center;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02) rotate(1deg);
    box-shadow: 0 20px 40px rgba(76, 0, 255, 0.4), 0 0 20px rgba(0, 183, 255, 0.3);
    z-index: 2;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 2;
    backdrop-filter: blur(4px);
    background: linear-gradient(0deg, rgba(2,0,36,0.8) 0%, rgba(12,12,20,0.5) 100%);
    transition: all 0.4s ease;
}

.project-card:hover .project-content {
    padding-bottom: 30px;
}

.project-content h3 {
    color: #fff;
    margin: 0 0 10px;
    font-size: 1.5rem;
}

.project-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.project-link {
    color: #4C00FF;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
    display: inline-block;
    overflow: hidden;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #4C00FF, #00B7FF);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.project-link:hover {
    color: #00B7FF;
}

.project-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Contact Section */
.contact {
    background-color: #111827;
    position: relative;
}

.contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.08), transparent 25%);
    pointer-events: none;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--text-light);
    transition: all var(--transition-medium);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 15px -3px rgba(91, 33, 182, 0.3);
}

.contact-direct {
    margin-bottom: 2.5rem;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    color: var(--text-light);
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-medium);
}

.contact-email:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.support-options h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.support-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.support-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    color: var(--text-light);
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-medium);
}

.support-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Footer */
footer {
    padding: 2rem 5%;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-content p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -3px;
    left: 0;
    background-color: var(--primary-light);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

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

.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--text-light);
    border-radius: 50%;
    transition: all var(--transition-medium);
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-info {
        align-items: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* Animation Delay Classes */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Responsive Styles */
@media (max-width: 1400px) {
    .services-grid, 
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1100px) {
    .services-grid, 
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .services-grid, 
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .typed-cursor {
        font-size: 2.25rem;
    }
    
    .menu-toggle {
    display: block;
        cursor: pointer;
        z-index: 1002;
    }
    
    .menu-toggle.active {
        position: fixed;
        right: 5%;
    }
    
    .menu-toggle.active i {
        color: var(--text-light);
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1001;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        padding: 2rem;
    }
    
    .nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(to bottom, var(--primary), var(--primary-light));
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu li {
        margin: 0;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }
    
    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }
    
    .nav-menu li a {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
    display: block;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1, 
.hero p, 
.hero-buttons {
    animation: fadeIn 0.8s ease-out forwards;
}

.hero p {
    animation-delay: 0.2s;
}

.hero-buttons {
    animation-delay: 0.4s;
}

/* Innovation Lab / Epic Projects Section */
.epic-projects {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 0 30px rgba(76, 0, 255, 0.2);
    overflow: hidden;
}

.epic-projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at top right, rgba(0, 183, 255, 0.2), transparent 60%),
        radial-gradient(circle at bottom left, rgba(76, 0, 255, 0.2), transparent 60%);
    z-index: -1;
}

.epic-title {
    color: #fff;
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #4C00FF, #00B7FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: glow 3s ease-in-out infinite alternate;
    position: relative;
}

.rocket-emoji {
    position: absolute;
    display: inline-block;
    font-size: 50px;
    z-index: 5;
    left: -30px;
    bottom: -45px;
    filter: none;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    transform-origin: center center;
    will-change: transform, opacity;
}

/* Remove previous animation keyframes since we'll control via JS */
@keyframes flyRocket {
    0% {
        opacity: 0;
        transform: translateX(-50px) translateY(0) scale(0.5) rotate(0deg);
    }
    15% {
        opacity: 1;
        transform: translateX(20px) translateY(0) scale(1) rotate(0deg);
    }
    40% {
        opacity: 1;
        transform: translateX(100px) translateY(0) scale(1) rotate(0deg);
    }
    70% {
        opacity: 1;
        transform: translateX(180px) translateY(-80px) scale(1) rotate(-30deg);
    }
    100% {
        opacity: 0;
        transform: translateX(280px) translateY(-160px) scale(1) rotate(-45deg);
    }
}

@keyframes glow {
    0% {
        text-shadow: 0 0 10px rgba(76, 0, 255, 0.5);
    }
    100% {
        text-shadow: 0 0 20px rgba(0, 183, 255, 0.8), 0 0 30px rgba(76, 0, 255, 0.5);
    }
}

.epic-intro {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.epic-projects-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.epic-project-item {
    display: flex;
    gap: 20px;
    background: rgba(20, 20, 35, 0.5);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.epic-project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #4C00FF, #00B7FF);
}

.epic-project-item:hover {
    transform: translateX(5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.epic-project-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 0, 255, 0.2);
    border-radius: 50%;
    margin-top: 15px;
}

.epic-project-icon i {
    font-size: 2rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 183, 255, 0.8);
}

.epic-project-content {
    flex: 1;
}

.epic-project-content h3 {
    font-size: 1.6rem;
    color: #fff;
    margin: 0 0 10px;
}

.epic-project-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 15px;
}

.epic-project-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.epic-project-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.epic-project-stats i {
    color: #00B7FF;
}

.btn-secondary {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(76, 0, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(0, 183, 255, 0.5);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(76, 0, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 183, 255, 0.5);
    transform: translateY(-2px);
}

/* Responsive adjustments for projects sections */
@media (max-width: 1400px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1100px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .epic-project-item {
        flex-direction: column;
        align-items: center;
    text-align: center;
    }
    
    .epic-project-item::before {
        width: 100%;
        height: 4px;
        background: linear-gradient(to right, #4C00FF, #00B7FF);
    }
    
    .epic-project-stats {
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .project-row {
        flex-direction: column;
        min-height: auto;
        margin-bottom: 80px;
    }
    
    .project-row.reverse {
        flex-direction: column;
    }
    
    .project-content-left,
    .project-content-right {
        padding: 40px 30px;
        order: 2;
    }
    
    .project-image-left,
    .project-image-right {
        height: 350px;
        order: 1;
    }
    
    .project-features {
        flex-wrap: wrap;
    }
    
    .project-number {
        font-size: 80px;
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .project-row {
        margin-bottom: 60px;
    }
    
    .project-content-left h3,
    .project-content-right h3 {
        font-size: 1.8rem;
    }
    
    .project-content-left p,
    .project-content-right p {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .project-image-left,
    .project-image-right {
        height: 280px;
    }
    
    .project-button {
        padding: 10px 25px;
        width: 100%;
        justify-content: center;
    }
    
    .project-features {
        gap: 10px;
        justify-content: flex-start;
    }
    
    .project-features span {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .epic-projects {
        padding: 30px 20px;
    }
    
    .epic-title {
        font-size: 2rem;
    }
    
    .epic-project-item {
        padding: 15px;
    }
    
    .epic-project-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }
    
    .epic-project-icon i {
        font-size: 1.5rem;
    }
    
    .epic-project-content h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .project-row {
        margin-bottom: 50px;
    }
    
    .project-number {
        font-size: 60px;
        top: 15px;
        left: 15px;
    }
    
    .project-image-left,
    .project-image-right {
        height: 220px;
    }
    
    .project-content-left,
    .project-content-right {
        padding: 30px 20px;
    }
    
    .project-content-left h3,
    .project-content-right h3 {
        font-size: 1.6rem;
    }
    
    .project-features {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .epic-project-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    /* Mobile frame and profile for smallest screens */
    .about-mobile-frame {
        height: 200px;
    }
    
    .about-image {
        width: 75%;
        max-width: 280px;
        transform: translateY(-25px);
    }
}

/* Small Screen Specific Adjustments */
@media (max-width: 576px) {
    :root {
        /* Adjust spacing for smaller screens */
        --radius: 0.4rem;
        --radius-lg: 0.8rem;
    }
    
    /* Adjust typography for mobile */
    h1 { font-size: calc(1.5rem + 1.5vw); }
    h2 { font-size: calc(1.2rem + 1vw); }
    h3 { font-size: calc(1rem + 0.5vw); }
    
    /* Adjust section padding */
    section {
        padding: 3rem 5%;
    }
    
    /* Fix spacing on small screens */
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-divider {
        margin: 0.5rem auto 1.5rem;
    }
    
    /* Ensure hero has appropriate height on mobile */
    .hero {
        min-height: auto;
        padding-top: 5rem; /* Account for fixed header */
        padding-bottom: 2rem;
    }
    
    /* Improve hero image display */
    .hero-img {
        min-height: 250px;
        border-radius: var(--radius);
    }
    
    /* Adjust profile image for mobile */
    .about-image {
        width: 80%;
        max-width: 280px;
        margin: 0 auto 1.5rem;
    }
    
    .profile-img {
        aspect-ratio: 1;
        border-radius: var(--radius);
    }
    
    /* Adjust service cards for better mobile display */
    .service-card {
        padding: 1.5rem;
    }
    
    /* Ensure contact image displays well */
    .contact-img {
        min-height: 200px;
    }
    
    /* Adjust navigation for mobile */
    .nav-container {
        width: 95%;
        padding: 0.5rem 0;
    }
    
    .logo img {
        height: 32px;
    }
    
    /* Ensure all buttons are appropriately sized */
    .btn, .project-button, .service-link {
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        display: block;
        width: 100%;
    text-align: center;
    }
}

/* Enhanced Mobile Profile Styling */
.about-image {
    position: relative;
    overflow: visible;
    margin-bottom: 2rem;
}

.profile-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.2;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    z-index: 2;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), transparent);
    z-index: 1;
    pointer-events: none;
    border-radius: var(--radius-lg);
}

.about-image::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: calc(var(--radius-lg) + 5px);
    z-index: 0;
    opacity: 0.5;
    filter: blur(5px);
    transition: all 0.5s ease;
}

.about-image:hover::after {
    opacity: 0.8;
    filter: blur(10px);
}

.about-image:hover .profile-img {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(91, 33, 182, 0.4);
}

/* Mobile Profile Enhancement */
@media (max-width: 992px) {
    .about-image {
        margin: 0 auto 3rem;
        max-width: 350px;
    }
    
    .profile-img {
        aspect-ratio: 1;
    }
    
    .about-mobile-frame {
        display: none;  /* Hidden initially, shown only on mobile */
    }
}

@media (max-width: 768px) {
    .about-content {
        position: relative;
        overflow: visible;
    }
    
    .about-image {
        width: 80%;
        max-width: 320px;
        margin: 0 auto;
        position: sticky;
        top: 100px; /* Adjust based on header height */
        z-index: 3;
        transform: translateY(0);
        transition: transform 0.3s ease;
    }
    
    .profile-img {
        aspect-ratio: 1;
        box-shadow: 0 15px 35px rgba(91, 33, 182, 0.4);
        border: 3px solid rgba(255, 255, 255, 0.1);
        will-change: transform;
    }
    
    .about-image::after {
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
        opacity: 0.7;
        filter: blur(8px);
        will-change: transform;
    }
    
    .about-text {
        padding-top: 10px;
        position: relative;
        z-index: 2;
    }
    
    .about-mobile-frame {
        display: block;
        position: relative;
        z-index: 1;
    }
}

@media (max-width: 576px) {
    .about-mobile-frame {
        height: 200px;
    }
    
    .about-image {
        width: 75%;
        max-width: 280px;
        transform: translateY(-25px);
    }
}

#typed-text-container {
    margin-top: 0.5rem;
    min-height: 3.8rem;
    position: relative;
    display: block;
}

.hero-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.3), transparent 70%);
    z-index: -1;
    filter: blur(40px);
    animation: floatAnimation 10s infinite ease-in-out alternate;
    pointer-events: none;
}

@keyframes floatAnimation {
    0%, 50%, 100% {
        transform: translate(0, 0);
        border-radius: 50%;
    }
}

@media (max-width: 768px) {
    #typed-text-container {
        min-height: 2.5rem;
        height: 2.5rem;
        overflow: hidden;
    }
    
    .hero-image-glow {
        width: 140%;
        height: 140%;
        opacity: 0.7;
    }
}

@media (max-width: 576px) {
    #typed-text-container {
        min-height: 2.2rem;
        height: 2.2rem;
    }
}

/* Desktop-only class to hide elements on mobile */
.desktop-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important; /* Use !important to ensure it overrides any other display values */
    }
    
    /* Make sure the hero image container is also hidden on mobile */
    .hero-image {
        display: none !important;
    }
}

/* Projects Section - Alternating Layout */
.projects-alt {
    position: relative;
    z-index: 2;
    margin-bottom: 80px;
}

.project-row {
    display: flex;
    min-height: 500px;
    margin-bottom: 100px;
    position: relative;
}

.project-row:last-child {
    margin-bottom: 0;
}

.project-row::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    z-index: 1;
}

.project-row:last-child::after {
    display: none;
}

.project-row.reverse {
    flex-direction: row-reverse;
}

.project-content-left,
.project-content-right {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.project-content-left::before,
.project-content-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(76, 0, 255, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    border-radius: 20px;
}

.project-number {
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(90deg, rgba(76, 0, 255, 0.2), rgba(0, 183, 255, 0.2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: -1;
    opacity: 0.8;
    transform: translateZ(-10px);
    text-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.project-content-left h3,
.project-content-right h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    background-clip: text;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-content-left p,
.project-content-right p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    max-width: 90%;
}

.project-features {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.project-features span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.project-features span i {
    color: #00B7FF;
}

.project-features span:hover {
    background: rgba(76, 0, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 30px;
    background: rgba(76, 0, 255, 0.2);
    border: 1px solid rgba(0, 183, 255, 0.3);
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    width: fit-content;
}

.project-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(76, 0, 255, 0.5), rgba(0, 183, 255, 0.5));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.project-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(76, 0, 255, 0.3);
}

.project-button:hover::before {
    opacity: 1;
}

.project-button i {
    transition: transform 0.3s ease;
}

.project-button:hover i {
    transform: translateX(5px);
}

.project-image-left,
.project-image-right {
    flex: 1.2;
    position: relative;
    overflow: hidden;
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    perspective: 1000px;
    transform-style: preserve-3d;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.project-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(76, 0, 255, 0.4), rgba(0, 183, 255, 0.1));
    z-index: 1;
    opacity: 0.5;
    transition: opacity 0.5s ease;
    mix-blend-mode: color;
}

.project-row:hover .project-image-wrapper::before {
    opacity: 0.7;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: scale(1.05);
}

.project-row:hover .project-image-wrapper img {
    transform: scale(1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 1;
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

.project-row:hover .image-overlay {
    opacity: 0.3;
}

/* Responsive Styles for Project Alternating Layout */
@media (max-width: 1200px) {
    .project-row {
        min-height: 400px;
    }
    
    .project-content-left,
    .project-content-right {
        padding: 40px;
    }
    
    .project-number {
        font-size: 100px;
        top: 20px;
        left: 20px;
    }
    
    .project-content-left h3,
    .project-content-right h3 {
        font-size: 2rem;
    }
}

.about-mobile-frame {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(0, 184, 212, 0.2), rgba(128, 0, 255, 0.2));
    border-radius: 50%;
    z-index: -1;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.profile-img {
    position: relative;
    margin: 0 auto;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    z-index: 10;
}

.profile-img::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: radial-gradient(circle, rgba(0, 184, 212, 0.4), transparent 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Enhanced mobile styling */
@media screen and (max-width: 992px) {
    .profile-img {
        width: 220px;
        height: 220px;
        margin-bottom: 30px;
        transform: none;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    }
    
    .profile-img::after {
        opacity: 0.7;
    }
    
    .about-mobile-frame {
        opacity: 0.8;
    }
}

@media screen and (max-width: 768px) {
    .profile-img {
        width: 180px;
        height: 180px;
        transform: none;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        border: 3px solid rgba(255, 255, 255, 0.2);
    }
    
    .profile-img::after {
        opacity: 0.8;
    }
    
    .about-mobile-frame {
        opacity: 1;
        background: linear-gradient(135deg, rgba(0, 184, 212, 0.3), rgba(128, 0, 255, 0.3));
    }
    
    .about-content {
        position: relative;
        padding-top: 50px;
    }
}

@media screen and (max-width: 576px) {
    .profile-img {
        width: 160px;
        height: 160px;
        margin-bottom: 40px;
    }
}