#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--bg-color);
}

:root {
    --accent-color: #00aeff;
    --primary-color: #ffffff;
    --text-light: #a1a1aa;
    --bg-color: #0f0f23;
    --card-color: #1a1a2e;
    --border-color: #2a2a3e;
    --glow-color: rgba(0, 174, 255, 0.5);
}

/* Accessible skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: #0a0f1f;
    padding: 8px 12px;
    z-index: 10000;
    border-radius: 0 0 6px 0;
    transition: top .2s ease;
}
.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    background: transparent;
}

/* Global Styles */
body {
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    background: transparent;
    color: var(--primary-color);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 70px !important; /* Account for fixed header */
    margin-top: 0 !important;
}

body.menu-open {
    overflow: hidden;
}

/* Typing Adventure Game Body Lock - Higher Specificity */


/* 🔧 FIXED: Enhanced hover animation for typed text */
#typed-text {
    background: linear-gradient(135deg, var(--accent-color), #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    position: relative;
}

.hero-subtitle:hover #typed-text {
    transform: scale(1.05);
    filter: brightness(1.2);
    text-shadow: 0 0 20px rgba(0, 174, 255, 0.8);
}

/* 🔧 REMOVED: ::after pseudo-element for hover container */



/* Removed dead selector #particles-js (index uses #particle-canvas) */

main {
    background: transparent;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* ===== TRANSPARENT HEADER FIX ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70px;
    background: transparent; /* FIXED: Made transparent */
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 174, 255, 0.1);
    z-index: 1000;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
}

/* Optional: Add subtle background on scroll for better readability */
header.scrolled {
    background: rgba(15, 15, 35, 0.1);
    transition: background 0.3s ease;
}

nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    z-index: 1001;
    line-height: 1;
}

/* Desktop navigation */
nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
    height: 100%;
}

nav ul li {
    height: 100%;
    display: flex;
    align-items: center;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    display: block;
    line-height: 1;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(0, 174, 255, 0.1);
    border: 2px solid rgba(0, 174, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 4px;
}

/* Duplicate .mobile-menu-btn span block removed (already defined above) */

/* FIXED: Proper body padding without extra space */
html, body {
    margin: 0;
    padding: 0;
}

body {
    padding-top: 70px; /* Exactly match header height */
    margin: 0;
    box-sizing: border-box;
}

/* FIXED: Remove any extra margins from first section */
.hero, #home {
    margin-top: 0;
    padding-top: 2rem;
}

@media (max-width: 768px) {
    nav.container {
        padding: 0 1rem;
    }
    
    nav ul {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}


.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-btn:hover {
    background: rgba(0, 174, 255, 0.2);
    border-color: var(--accent-color);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile responsive header */
@media (max-width: 768px) {
    nav.container {
        padding: 0 1rem;
    }
    
    nav ul.desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
    
    .mobile-nav {
        display: none !important;
    }
}

/* ===== COMPLETELY RESPONSIVE MOBILE MENU ===== */

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg,
        rgba(10, 15, 31, 0.98) 0%,
        rgba(26, 26, 46, 0.95) 50%,
        rgba(19, 26, 42, 0.98) 100%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    overflow: hidden; /* FIXED: Prevent scrolling */
}

.mobile-nav.active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem; /* FIXED: Reduced padding */
}

.mobile-nav-close {
    position: absolute;
    top: 1rem; /* FIXED: Reduced from 1.5rem */
    right: 1rem; /* FIXED: Reduced from 1.5rem */
    width: 40px; /* FIXED: Reduced from 44px */
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem; /* FIXED: Reduced size */
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
    line-height: 1;
    z-index: 10001;
}

.mobile-nav-close::before {
    content: '×';
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    width: 100%;
    max-width: 90%; /* FIXED: Responsive width */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem; /* FIXED: Controlled spacing */
}

.mobile-nav-list li {
    margin: 0; /* FIXED: Remove margin to control spacing better */
}

.mobile-nav-link {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 1.2rem; /* FIXED: Reduced from 1.8rem */
    font-weight: 600;
    padding: 0.8rem 1.5rem; /* FIXED: Reduced padding */
    border-radius: 8px; /* FIXED: Reduced border radius */
    background: rgba(0, 174, 255, 0.1);
    border: 1px solid rgba(0, 174, 255, 0.2);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    min-height: 48px; /* FIXED: Ensure touchable size */
}

.mobile-nav-link:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 174, 255, 0.3);
}

/* ===== RESPONSIVE BREAKPOINTS FOR MOBILE MENU ===== */

/* Large phones and small tablets (landscape) */
@media (max-width: 768px) and (min-height: 600px) {
    .mobile-nav-link {
        font-size: 1.4rem;
        padding: 1rem 2rem;
        margin-bottom: 0.5rem;
    }
    
    .mobile-nav-list {
        gap: 1rem;
    }
}

/* Standard phones (portrait) */
@media (max-width: 480px) and (max-height: 800px) {
    .mobile-nav.active {
        padding: 0.5rem;
    }
    
    .mobile-nav-link {
        font-size: 1.1rem;
        padding: 0.7rem 1.2rem;
        border-radius: 6px;
    }
    
    .mobile-nav-list {
        gap: 0.6rem;
        max-width: 95%;
    }
    
    .mobile-nav-close {
        top: 0.8rem;
        right: 0.8rem;
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }
}

/* Small phones (portrait) */
@media (max-width: 360px) {
    .mobile-nav-link {
        font-size: 1rem;
        padding: 0.6rem 1rem;
        border-radius: 5px;
    }
    
    .mobile-nav-list {
        gap: 0.5rem;
    }
    
    .mobile-nav-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }
}

/* Short screens (landscape phones) */
@media (max-height: 500px) {
    .mobile-nav.active {
        padding: 0.3rem;
        justify-content: flex-start;
        padding-top: 3rem; /* Space for close button */
    }
    
    .mobile-nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        margin-bottom: 0.3rem;
    }
    
    .mobile-nav-list {
        gap: 0.3rem;
        max-width: 100%;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center;
    }
    
    .mobile-nav-list li {
        flex: 1;
        min-width: 120px;
        max-width: 150px;
    }
}

/* Very short screens */
@media (max-height: 400px) {
    .mobile-nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.2rem;
    }
    
    .mobile-nav-list li {
        flex: 1;
        min-width: 100px;
    }
    
    .mobile-nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Ensure menu never exceeds viewport */
.mobile-nav-list {
    max-height: calc(100vh - 120px); /* Account for close button and padding */
    overflow-y: auto;
}

/* Force all menu items to be visible */
@media (max-height: 600px) {
    .mobile-nav-list {
        justify-content: space-evenly;
        height: calc(100vh - 100px);
    }
}

/* Ensure body has proper top margin for fixed header */
body {
    padding-top: 70px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
    padding-top: 2rem;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg,  
        rgba(0, 174, 255, 0.9) 0%,  
        rgba(14, 165, 233, 0.8) 100%);
    border: 1px solid rgba(0, 174, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 174, 255, 0.3);
    
    /* Initially hidden */
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px) scale(0.8);
    
    /* Center content */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    
    /* Remove default button styles */
    outline: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Show button when active */
.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Hover effects */
.back-to-top-btn:hover {
    background: linear-gradient(135deg,  
        rgba(0, 174, 255, 1) 0%,  
        rgba(14, 165, 233, 1) 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 45px rgba(0, 174, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Click animation */
.back-to-top-btn:active {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 174, 255, 0.5);
}

/* Button text styling */
.back-to-top-btn .btn-text {
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Icon styling */
.back-to-top-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.back-to-top-btn:hover i {
    transform: translateY(-2px);
}

/* Pulse animation when first appears */
.back-to-top-btn.show {
    animation: backToTopPulse 0.6s ease-out;
}

@keyframes backToTopPulse {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 8px 32px rgba(0, 174, 255, 0.3);
    }
    50% {
        transform: translateY(0) scale(1.15);
        box-shadow: 0 12px 40px rgba(0, 174, 255, 0.5);
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 8px 32px rgba(0, 174, 255, 0.3);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .back-to-top-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .back-to-top-btn .btn-text {
        font-size: 0.6rem;
    }
    
    .back-to-top-btn i {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .back-to-top-btn {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top-btn .btn-text {
        font-size: 0.55rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .back-to-top-btn {
        transition: opacity 0.2s ease;
    }
    
    .back-to-top-btn,
    .back-to-top-btn:hover {
        transform: none;
    }
    
    .back-to-top-btn.show {
        animation: none;
    }
}

/* Focus styles for keyboard navigation */
.back-to-top-btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.herocontainer {
    position: relative;
    z-index: 3;
}

.hero-content {
    z-index: 2;
    animation: fadeInUp 0.8s ease 0.3s both;
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    position: relative;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.9s both;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    font-weight: 300;
    letter-spacing: 0.3px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.7s;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default; /* 🔧 FIXED: No pointer cursor */
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0 3rem 0;
    animation: fadeInUp 1s ease 1.3s both;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: rgba(0, 174, 255, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 174, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 174, 255, 0.4);
    border-color: var(--accent-color);
}

/* General Section Styling */
section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}



/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-top: 2rem;
}

.about-photo {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(0, 174, 255, 0.1), rgba(0, 174, 255, 0.3));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary-color);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
}

.about-photo:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 174, 255, 0.2);
    border-color: var(--accent-color);
}

.about-photo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 2rem;
    color: var(--text-light);
    font-size: 1.15rem;
    line-height: 1.8;
    text-align: justify;
    padding: 0 1rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure immediate visibility */
.skills-grid .skill-category {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.skill-card {
    background: var(--card-color);
    border: 1px solid rgba(0, 174, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.05);
}

.skill-category {
    background: var(--card-color);
    border-radius: 10px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.skill-category {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 174, 255, 0.4);
    border-color: rgba(0, 174, 255, 0.4);
    background: rgba(19, 26, 42, 0.9);
}

.skill-category h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category ul li {
    padding: 0.8rem 0;
    font-size: 1.1rem;
    position: relative;
    padding-left: 1.5rem;
    transition: color 0.3s ease;
}

.skill-category ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.8rem;
}

.skill-category ul li:hover {
    color: var(--accent-color);
    transform: none;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--card-color);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-3);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    box-shadow: 0 20px 50px rgba(0, 174, 255, 0.3);
    border-color: rgba(0, 174, 255, 0.4);
}

.project-card .project-icon i {
    transition: transform 0.3s ease-in-out;
}

.project-card:hover .project-icon i {
    transform: scale(1.2) rotate(360deg);
}

.project-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.project-card p {
    margin-bottom: 2rem;
    color: #cbd5e1;
    line-height: 1.7;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), #0ea5e9);
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 140px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 174, 255, 0.2);
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.project-link:hover::before {
    left: 100%;
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 174, 255, 0.4);
    background: linear-gradient(135deg, #0ea5e9, var(--accent-color));
    border-color: rgba(255, 255, 255, 0.2);
}

.project-link i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.project-link:hover i {
    transform: translateX(3px) scale(1.1);
}

/* Contact Section */
.contact-container {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 174, 255, 0.1), transparent 40%);
    transform: rotate(0deg);
    transition: transform 10s linear;
    animation: rotate-glow 20s linear infinite;
}

@keyframes rotate-glow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.contact-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 40px var(--glow-color);
    border-color: var(--accent-color);
}

.contact-header .section-title {
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 600;
}

.contact-content p {
    color: var(--text-light);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    font-size: 1.15rem;
    line-height: 1.7;
}

.contact-footer .email-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.1rem 2.8rem;
    background: linear-gradient(135deg, var(--accent-color), #0ea5e9);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 174, 255, 0.4);
}

.contact-footer .email-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 174, 255, 0.5);
}

.contact-footer .email-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.contact-footer .email-btn:hover i {
    transform: rotate(-15deg);
}

/* Footer */
/* Enhanced Professional Footer */
/* 🔧 FIXED: Reorganized footer structure */
footer {
    text-align: center;
    padding: 2rem 0 1rem 0;
    margin-top: 4rem;
    background: linear-gradient(135deg, rgba(10, 15, 31, 0.98), rgba(19, 26, 42, 0.95));
    border-top: 1px solid rgba(0, 174, 255, 0.2);
    color: var(--text-light);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

/* 🔧 FIXED: Game section at top of footer */
.footer-game-section {
    margin-bottom: 2.5rem; /* Changed from margin-top to margin-bottom */
    padding-bottom: 2.5rem; /* Changed from padding-top to padding-bottom */
    border-bottom: 2px solid rgba(0, 174, 255, 0.2); /* Changed from border-top to border-bottom */
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    order: -1; /* Ensures it appears first */
}

.footer-game-section::before {
    content: '';
    position: absolute;
    bottom: 0; /* Changed from top to bottom */
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

footer .social-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin: 0;
}

footer .social-links a {
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 174, 255, 0.1);
    border: 1px solid rgba(0, 174, 255, 0.2);
    transition: all 0.3s ease;
    color: var(--text-light);
}

footer .social-links a:hover {
    color: white;
    background: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 174, 255, 0.3);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-info {
    text-align: left;
    flex: 1;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(10, 15, 31, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(10, 15, 31, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Studio Link Styling */
.studio-link {
    color: #3b82f6 !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.studio-link:hover {
    color: #60a5fa !important;
    border-bottom-color: #60a5fa;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.3);
}

.footer-content p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 1rem;
}

/* First row with copyright and social icons */
.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Studio text left-aligned below */
.footer-studio {
    text-align: left;
    width: 100%;
    font-size: 0.9rem;
}

.game-launch-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.game-intro {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-launch-btn {
    background: linear-gradient(135deg,
        rgba(0, 174, 255, 0.8) 0%,
        rgba(0, 174, 255, 1) 50%,
        rgba(14, 165, 233, 0.9) 100%
    );
    border: 3px solid var(--accent-color);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    letter-spacing: 1px;
    margin: 1rem 0;
    box-shadow:
        0 10px 30px rgba(0, 174, 255, 0.4),
        inset 0 2px 10px rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.game-launch-btn .btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.6s ease;
}

.game-launch-btn:hover .btn-glow {
    left: 100%;
}

.game-launch-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 20px 50px rgba(0, 174, 255, 0.6),
        0 0 50px rgba(0, 174, 255, 0.8),
        inset 0 2px 15px rgba(255, 255, 255, 0.3);
    border-color: #ffffff;
    background: linear-gradient(135deg,
        rgba(0, 174, 255, 0.9) 0%,
        rgba(0, 174, 255, 1) 50%,
        rgba(14, 165, 233, 1) 100%
    );
}

.game-launch-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.game-launch-btn i {
    font-size: 1.4rem;
    animation: gameIconPulse 2s ease-in-out infinite;
}

@keyframes gameIconPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.3);
    }
}

.game-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.8;
    font-style: italic;
}

/* Responsive Footer */
@media (max-width: 768px) {
    footer {
        padding: 1.5rem 1rem 1rem 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 0.5rem;
        gap: 1rem;
    }
    
    .footer-info {
        text-align: center;
        padding: 0.8rem;
    }
    
    .footer-details {
        justify-content: center;
        gap: 1rem;
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    
    .footer-top-row {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .footer-studio {
        font-size: 0.9rem;
        text-align: center;
    }
    
    footer .social-links {
        gap: 0.8rem;
        justify-content: center;
    }
    
    footer .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .footer-game-section {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 1.5rem 1rem;
    }
    
    .footer-content {
        padding: 1.5rem 0.5rem;
        gap: 1.5rem;
    }
    
    .footer-top-row {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        text-align: center;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .footer-studio {
        font-size: 0.85rem;
        text-align: center;
        margin-top: 0.5rem;
    }
    
    footer .social-links {
        gap: 1rem;
        justify-content: center;
        order: -1; /* Move social links to top on mobile */
    }
    
    footer .social-links a {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .footer-details {
        flex-direction: column;
        gap: 1rem;
        font-size: 0.8rem;
        text-align: center;
        max-width: 260px;
        margin: 0 auto;
    }
    
    .footer-details span {
        justify-content: center;
    }
    
    .footer-game-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 360px) {
    footer {
        padding: 1.2rem 0.5rem;
    }
    
    .footer-content {
        padding: 1rem 0.25rem;
        gap: 1.2rem;
    }
    
    .footer-top-row {
        gap: 1.2rem;
    }
    
    .footer-content p {
        font-size: 0.85rem;
        line-height: 1.4;
        max-width: 260px;
    }
    
    .footer-studio {
        font-size: 0.8rem;
    }
    
    footer .social-links {
        gap: 0.8rem;
    }
    
    footer .social-links a {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    
    .footer-details {
        font-size: 0.75rem;
        max-width: 240px;
        gap: 0.8rem;
    }
    
    .footer-info, .footer-details {
        padding: 0.8rem;
        margin: 0.2rem;
    }
}

/* Projects Footer */
.projects-footer {
    text-align: center;
    margin-top: 3rem;
}

.projects-footer p {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.projects-footer .github-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.projects-footer .github-link:hover {
    text-decoration: underline;
}



/* Project Tech Tags */
.project-tech span {
    background: var(--accent-color);
    color: var(--bg-color);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    display: inline-block;
    margin-bottom: 0.3rem;
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loader {
    background: linear-gradient(45deg, var(--bg-color), rgba(0, 174, 255, 0.05));
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000; /* Increased z-index to ensure it's on top */
    box-shadow: 0 4px 15px rgba(0, 174, 255, 0.4);
}

.spinner {
    position: relative;
}

.spinner::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 2s linear infinite reverse;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.hero h1 {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.hero .social-links a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero .social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 174, 255, 0.3), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: -1;
}

.hero .social-links a:hover::before {
    width: 100px;
    height: 100px;
}

@keyframes sectionReveal {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite, glow 3s ease-in-out infinite alternate;
}

.scroll-indicator span {
    font-size: 0.8rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.about-photo {
    position: relative;
    overflow: hidden;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.about-photo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 174, 255, 0.1), transparent);
    animation: rotate 6s linear infinite;
    opacity: 0.5;
}

.email-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}





.email-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 174, 255, 0.3);
}

.loader-content {
    animation: loaderPulse 2s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes advancedFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1) translateX(0);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-30px) rotate(90deg) scale(1.2) translateX(10px);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-60px) rotate(180deg) scale(0.8) translateX(-10px);
        opacity: 0.2;
    }
    75% {
        transform: translateY(-30px) rotate(270deg) scale(1.1) translateX(15px);
        opacity: 0.25;
    }
}

@keyframes rippleExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

.click-ripple {
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 174, 255, 0.1);
}











.skill-category {
    position: relative;
    background: transparent;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 174, 255, 0.1);
    overflow: hidden;
}

.skill-category h3 {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.skill-category:hover h3 {
    text-shadow: 0 0 15px var(--accent-color);
    transform: translateX(10px);
}

.hero-content {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(0, 174, 255, 0.02) 0%, 
        transparent 50%, 
        rgba(102, 204, 255, 0.02) 100%);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0, 174, 255, 0.1);
    z-index: 2;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, 
        transparent, 
        rgba(0, 174, 255, 0.03), 
        transparent, 
        rgba(102, 204, 255, 0.03), 
        transparent);
    animation: holographicRotate 20s linear infinite;
    z-index: -1;
}

@keyframes holographicRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

nav {
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(0, 174, 255, 0.2);
}

.contact-content {
    position: relative;
    background: transparent;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(0, 174, 255, 0.1);
}

/* Secure Contact Form Styles */
.secure-contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group .required {
    color: var(--accent-color);
    margin-left: 0.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(0, 174, 255, 0.2);
    border-radius: 8px;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 174, 255, 0.2);
    background: rgba(26, 26, 46, 0.9);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ff4757;
    box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.2);
}

.form-group input.error:focus,
.form-group textarea.error:focus {
    border-color: #ff4757;
    box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.3);
}

.error-message {
    display: block;
    color: #ff4757;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.show {
    display: block;
}

.form-message.success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.form-message.error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff4757;
}

.honeypot {
    display: none !important;
}

.secure-contact-form .email-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.1rem 2.8rem;
    background: linear-gradient(135deg, var(--accent-color), #0ea5e9);
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 174, 255, 0.4);
    font-family: 'Poppins', sans-serif;
    margin-top: 1rem;
}

.secure-contact-form .email-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 174, 255, 0.5);
}

.secure-contact-form .email-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.secure-contact-form .email-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.secure-contact-form .email-btn:hover:not(:disabled) i {
    transform: rotate(-15deg);
}

.professional-name {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.professional-name::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 2px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
        display: inline-flex;
        align-items: center;
        gap: 0.8rem;
        padding: 1.2rem 2.5rem;
        border: none;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        text-decoration: none;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        margin: 0.5rem;
    }

    .cta-button.primary {
        background: linear-gradient(135deg, var(--accent-color), #0099cc);
        color: white;
        box-shadow: 0 4px 15px rgba(0, 174, 255, 0.2);
        border: 1px solid var(--accent-color);
    }

    .cta-button.secondary {
        background: transparent;
        color: var(--primary-color);
        border: 2px solid var(--border-color);
    }

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 174, 255, 0.4);
}

.cta-button.primary:hover {
    box-shadow: 0 15px 35px rgba(0, 174, 255, 0.5);
}

.cta-button.secondary:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .advanced-floating-element {
        font-size: 20px !important;
        opacity: 0.05 !important;
    }
    
    .morphing-shape {
        width: 80px;
        height: 80px;
        opacity: 0.05 !important;
    }
    
    .hero-content::before {
        display: none;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .scroll-indicator span {
        display: none;
    }
    
    @keyframes advancedFloat {
        0%, 100% {
            transform: translateY(0) rotate(0deg) scale(0.8);
            opacity: 0.05;
        }
        50% {
            transform: translateY(-15px) rotate(180deg) scale(1);
            opacity: 0.1;
        }
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}



@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    nav ul {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-overlay {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .about-photo {
        width: 250px;
        height: 250px;
    }
    
    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .secure-contact-form .email-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 1rem;
    }
}

/* Responsive styles for secure contact form */
@media (max-width: 768px) {
    .secure-contact-form {
        padding: 0 1rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    .secure-contact-form .email-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}
    
    .social-links a {
        font-size: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .about-photo {
        width: 200px;
        height: 200px;
    }
    
    .project-card,
    .skill-category {
        padding: 1.5rem;
    }

/* ===== MOBILE MENU FIXES ===== */

/* Fix mobile menu button positioning - right aligned within header */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 9999;
        width: 44px;
        height: 44px;
        background: rgba(0, 174, 255, 0.1);
        border: 2px solid var(--accent-color);
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn:hover {
        background: var(--accent-color);
        transform: translateY(-50%) scale(1.05);
    }

    .mobile-menu-btn span {
        background: var(--accent-color);
        transition: all 0.3s ease;
    }

    .mobile-menu-btn:hover span {
        background: var(--bg-color);
    }
}

/* Full screen mobile navigation menu */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg,
        rgba(10, 15, 31, 0.98) 0%,
        rgba(26, 26, 46, 0.95) 50%,
        rgba(19, 26, 42, 0.98) 100%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-nav.active {
    display: flex;
    opacity: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* Mobile navigation close button */
.mobile-nav-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Mobile navigation list */
.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.mobile-nav-list li {
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease forwards;
}

.mobile-nav-list li:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-list li:nth-child(2) { animation-delay: 0.2s; }
.mobile-nav-list li:nth-child(3) { animation-delay: 0.3s; }
.mobile-nav-list li:nth-child(4) { animation-delay: 0.4s; }
.mobile-nav-list li:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-link {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 12px;
    background: rgba(0, 174, 255, 0.1);
    border: 1px solid rgba(0, 174, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.mobile-nav-link:hover::before {
    left: 100%;
}

.mobile-nav-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 174, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}


/* ===== CONTACT FORM STYLING ===== */

.secure-contact-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: rgba(26, 26, 46, 0.9);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(0, 174, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
}

.required {
    color: #ff6b6b;
    margin-left: 0.2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(0, 174, 255, 0.2);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    color: var(--primary-color);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 174, 255, 0.1);
    background: rgba(0, 0, 0, 0.6);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.error-message {
    display: none;
    color: #ff6b6b;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 500;
    text-align: center;
    display: none;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.form-message.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #f44336;
}

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

/* Enhanced submit button */
.secure-contact-form button[type="submit"] {
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, var(--accent-color), #0ea5e9);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    box-shadow: 0 8px 25px rgba(0, 174, 255, 0.3);
}

.secure-contact-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 174, 255, 0.4);
}

.secure-contact-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

 /* ===== SOCIAL MEDIA BUTTONS FIXES ===== */

/* Hero section social buttons */
.hero .social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0 3rem 0;
    animation: fadeInUp 1s ease 1.3s both;
}

.hero .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: rgba(0, 174, 255, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 174, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: visible;
}

.hero .social-links a i {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 1.3rem;
    line-height: 1;
    z-index: 2;
    position: relative;
}

.hero .social-links a:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 174, 255, 0.4);
    border-color: var(--accent-color);
}

/* Footer social buttons */
footer .social-links {
    display: flex;
    justify-content: flex-end;
    gap: 1.2rem;
    margin: 0;
    align-items: center;
}

footer .social-links a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(0, 174, 255, 0.1);
    border: 1px solid rgba(0, 174, 255, 0.2);
    border-radius: 50%;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: visible;
}

footer .social-links a i {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 1.2rem;
    line-height: 1;
    z-index: 2;
    position: relative;
}

footer .social-links a:hover {
    color: white;
    background: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 174, 255, 0.3);
    border-color: var(--accent-color);
}

/* SVG icon fixes */
.social-links a svg,
.hero .social-links a svg {
    width: 20px !important;
    height: 20px !important;
    fill: currentColor !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Force icon visibility */
.fa, .fas, .fab, .far {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    footer .social-links {
        justify-content: center;
        gap: 1.5rem;
    }

    .hero .social-links {
        gap: 1.2rem;
    }

    .hero .social-links a {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .secure-contact-form {
        margin: 1rem;
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .mobile-nav-link {
        font-size: 1.5rem;
        padding: 0.8rem 1.5rem;
    }

    .secure-contact-form {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }
}

 ::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7dd3fc;
}

::selection {
    background: var(--accent-color);
    color: var(--bg-color);
}

.hero,
.hero-content,
header,
main,
section {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

#brick-breaker-canvas {
    background: #eee;
    display: block;
    margin: 0 auto;
}

/* Security Form Styles */
.secure-contact-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--card-color);
    border-radius: 15px;
    border: 1px solid rgba(0, 174, 255, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.required {
    color: #ff6b6b;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--primary-color);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 174, 255, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.error-message {
    display: none;
    color: #ff6b6b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    position: absolute;
    bottom: -1.5rem;
    left: 0;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #f44336;
}

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Privacy Policy Styles */
.privacy-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--card-color);
    border-radius: 15px;
    color: var(--primary-color);
    line-height: 1.6;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* Enhanced Security Indicators */
.secure-indicator {
    position: relative;
}

.secure-indicator::after {
    content: "🔒";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

/* Desktop navigation - hide on mobile */
@media (max-width: 768px) {
    nav ul.desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
    
    .mobile-nav {
        display: none !important;
    }
}

/* ===== ENHANCED CONTACT FORM RESPONSIVENESS ===== */

#contact {
    padding: 4rem 0;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.secure-contact-form {
    max-width: 700px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: rgba(26, 26, 46, 0.9);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(0, 174, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(0, 174, 255, 0.2);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    color: var(--primary-color);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    resize: vertical;
}

.form-group textarea {
    min-height: 120px;
    max-height: 250px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 174, 255, 0.1);
    background: rgba(0, 0, 0, 0.6);
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    #contact {
        padding: 3rem 0;
    }
    
    .contact-container {
        padding: 0 0.5rem;
    }
    
    .contact-header {
        margin-bottom: 2rem;
    }
    
    .contact-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .secure-contact-form {
        margin: 1.5rem 0.5rem;
        padding: 2rem;
        border-radius: 15px;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
}

@media (max-width: 480px) {
    .secure-contact-form {
        margin: 1rem 0.25rem;
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .contact-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .secure-contact-form {
        margin: 0.5rem 0.1rem;
        padding: 1.2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
}

/* ===== COMPLETE HEADER FIX ===== */

/* Reset everything */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure no default margins */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Fixed header with exact positioning */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70px;
    background: rgba(15, 15, 35, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 174, 255, 0.1);
    z-index: 1000;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body with exact header compensation */
body {
    padding-top: 70px !important;
    margin-top: 0 !important;
}

/* First section with no extra margins */
.hero, #home {
    margin-top: 0 !important;
    padding-top: 1rem;
}

/* Navigation container properly sized */
nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Logo positioning */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    line-height: 1;
}

/* Desktop navigation */
nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* Mobile menu button properly positioned */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(0, 174, 255, 0.1);
    border: 2px solid rgba(0, 174, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 4px;
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    nav.container {
        padding: 0 1rem;
    }
    
    nav ul {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

/* ===== COMPLETELY FIXED MOBILE MENU ===== */

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, 
        rgba(10, 15, 31, 0.98) 0%, 
        rgba(26, 26, 46, 0.95) 50%, 
        rgba(19, 26, 42, 0.98) 100%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-nav.active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.mobile-nav-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
}

.mobile-nav-close::before {
    content: '×';
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.mobile-nav-list li {
    margin: 1.5rem 0;
}

.mobile-nav-link {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 12px;
    background: rgba(0, 174, 255, 0.1);
    border: 1px solid rgba(0, 174, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-nav-link:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 174, 255, 0.3);
}

/* ===== PROJECT CARD SVG ALIGNMENT FIXES ===== */

.project-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.4rem;
    line-height: 1.2;
}

.project-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 174, 255, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.project-icon i {
    font-size: 1.4rem;
    color: var(--accent-color);
    line-height: 1;
}

/* Ensure proper inline alignment */
.project-card .project-icon + * {
    align-self: center;
}

/* ===== CONTACT POPUP STYLES ===== */

.contact-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 15000;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 1rem;
    overflow-y: auto;
}

.contact-popup-overlay.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.contact-popup-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: rgba(26, 26, 46, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(0, 174, 255, 0.3);
    padding: 1.75rem;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.contact-popup-overlay.active .contact-popup-container {
    transform: scale(1);
}

/* Enhanced close button styling */
.contact-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
    outline: none;
}

.contact-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.15) translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 174, 255, 0.3), 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #00aeff;
}

.contact-popup-close:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ===== MOBILE MENU RESPONSIVE FIXES ===== */

.mobile-nav {
    padding: 1rem 0.5rem; /* Add padding for content */
    overflow-y: auto; /* Allow scrolling if needed */
}

.mobile-nav-list {
    width: 100%;
    max-width: 400px;
    max-height: calc(100vh - 120px); /* Ensure it fits in viewport */
    overflow-y: auto;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Controlled spacing */
}

.mobile-nav-link {
    font-size: 1.4rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    min-height: 56px; /* Touch-friendly */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Medium screens */
@media (max-width: 768px) and (max-height: 800px) {
    .mobile-nav-link {
        font-size: 1.3rem;
        padding: 0.9rem 1.8rem;
        min-height: 52px;
    }
    
    .mobile-nav-list {
        gap: 0.8rem;
        max-width: 90%;
    }
}

/* Small screens */
@media (max-width: 480px) {
    .mobile-nav {
        padding: 0.5rem 0.25rem;
    }
    
    .mobile-nav-link {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
        min-height: 48px;
        border-radius: 8px;
    }
    
    .mobile-nav-list {
        gap: 0.6rem;
        max-width: 95%;
        max-height: calc(100vh - 100px);
    }
    
    .mobile-nav-close {
        width: 36px;
        height: 36px;
        top: 0.8rem;
        right: 0.8rem;
        font-size: 1.3rem;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .mobile-nav-link {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
        min-height: 44px;
        border-radius: 6px;
    }
    
    .mobile-nav-list {
        gap: 0.5rem;
        max-width: 98%;
    }
    
    .mobile-nav-close {
        width: 32px;
        height: 32px;
        top: 0.6rem;
        right: 0.6rem;
        font-size: 1.2rem;
    }
}

/* Very short screens (landscape phones) */
@media (max-height: 500px) {
    .mobile-nav {
        justify-content: flex-start;
        padding-top: 4rem; /* Space for close button */
    }
    
    .mobile-nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        max-height: calc(100vh - 80px);
    }
    
    .mobile-nav-list li {
        flex: 1;
        min-width: 120px;
        max-width: 180px;
    }
    
    .mobile-nav-link {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
        min-height: 40px;
    }
}

/* Ensure all menu items are always visible */
@media (max-height: 600px) {
    .mobile-nav-list {
        justify-content: space-evenly;
        height: auto;
        max-height: calc(100vh - 80px);
    }
}

/* ===== CONTACT POPUP RESPONSIVE FIXES ===== */

.contact-popup-overlay {
    padding: 0.5rem; /* Ensure padding on all sides */
}

.contact-popup-container {
    width: 100%;
    max-width: 90vw; /* Don't exceed 90% of screen width */
    max-height: 85vh; /* Don't exceed 85% of screen height */
    overflow-y: auto; /* Allow scrolling if content too tall */
    margin: auto;
    box-sizing: border-box;
}

/* Responsive close button for mobile */
@media (max-width: 768px) {
    .contact-popup-close {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
        top: 0.6rem;
        right: 0.6rem;
    }
}

@media (max-width: 480px) {
    .contact-popup-close {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        top: 0.5rem;
        right: 0.5rem;
    }
}

@media (max-width: 360px) {
    .contact-popup-close {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
        top: 0.4rem;
        right: 0.4rem;
    }
}

/* Popup form styling */
.popup-form .form-group {
    margin-bottom: 1rem;
}

.popup-form input,
.popup-form textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    box-sizing: border-box;
}

/* ===== STYLED SEND MESSAGE BUTTON IN POPUP ===== */
.popup-form .email-btn,
#popup-contact-form .email-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-color), #0ea5e9);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 174, 255, 0.3);
}

.popup-form .email-btn:hover,
#popup-contact-form .email-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 174, 255, 0.4);
    background: linear-gradient(135deg, #0ea5e9, var(--accent-color));
}

.popup-form .email-btn:disabled,
#popup-contact-form .email-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Small screens */
@media (max-width: 768px) {
    .contact-popup-container {
        max-width: 95vw;
        max-height: 90vh;
        padding: 1.5rem;
    }
    
    .popup-form .email-btn {
        font-size: 1rem;
        padding: 0.9rem;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .contact-popup-overlay {
        padding: 0.1rem;
    }
    
    .contact-popup-container {
        max-width: 96vw;
        max-height: 92vh;
        padding: 0.75rem;
        border-radius: 15px;
    }
    
    .popup-form input,
    .popup-form textarea {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .popup-form .email-btn {
        font-size: 0.9rem;
        padding: 0.65rem;
        margin-top: 0.75rem;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .contact-popup-container {
        max-width: 94vw;
        max-height: 90vh;
        padding: 0.6rem;
        border-radius: 12px;
    }
    
    .popup-form .form-group {
        margin-bottom: 0.6rem;
    }
    
    .popup-form .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .popup-form .email-btn {
        font-size: 0.85rem;
        padding: 0.6rem;
        border-radius: 10px;
    }
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg,
        rgba(0, 174, 255, 0.9) 0%,
        rgba(14, 165, 233, 0.8) 100%);
    border: 1px solid rgba(0, 174, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 20000; /* Higher than your contact popup (15000) */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 174, 255, 0.3);
    
    /* Initially hidden */
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px) scale(0.8);
    
    /* Center content */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    
    /* Remove default button styles */
    outline: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Show button when active */
.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Hover effects */
.back-to-top-btn:hover {
    background: linear-gradient(135deg,
        rgba(0, 174, 255, 1) 0%,
        rgba(14, 165, 233, 1) 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 45px rgba(0, 174, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Button text styling */
.back-to-top-btn .btn-text {
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Icon styling */
.back-to-top-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.back-to-top-btn:hover i {
    transform: translateY(-2px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .back-to-top-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .back-to-top-btn .btn-text {
        font-size: 0.6rem;
    }
    
    .back-to-top-btn i {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .back-to-top-btn {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top-btn .btn-text {
        font-size: 0.55rem;
    }
}



