/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Space Theme Colors */
    --primary-color: #00d4ff;
    --secondary-color: #ff6b35;
    --accent-color: #9d4edd;
    --background-dark: #0a0a0f;
    --background-darker: #050508;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-muted: #7a8a9a;
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #9d4edd 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --gradient-space: linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    
    /* Typography */
    --font-primary: 'Space Grotesk', sans-serif;
    --font-display: 'Orbitron', monospace;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    
    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-image: url('stars-galaxy-3840x2160-10307.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-space);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: var(--text-primary);
}

.rocket-loader {
    font-size: 4rem;
    margin-bottom: 2rem;
    animation: rocketFloat 2s ease-in-out infinite;
}

.loading-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: loadingProgress 3s ease-in-out;
}

@keyframes rocketFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Three.js Canvas */
#space-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.58);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem; /* Reduced padding for mobile */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    z-index: 1001; /* Ensure logo stays above mobile menu */
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.2rem; /* Smaller on mobile by default */
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.7rem; /* Smaller subtitle */
    color: var(--text-muted);
    line-height: 1;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: -0.2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* Mobile Navigation Fix */
@media (max-width: 768px) {
    /* Ensure hamburger is visible */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
        gap: 4px;
        z-index: 1003;
        padding: 0.5rem;
    }
    
    .hamburger span {
        width: 25px;
        height: 3px;
        background: var(--text-primary);
        transition: var(--transition-smooth);
    }
    
    /* Hide navigation menu by default on mobile */
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        z-index: 1002;
        list-style: none;
    }
    
    /* Show menu when active */
    .nav-menu.active {
        display: flex !important;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    .nav-menu .nav-link {
        font-size: 1.8rem;
        padding: 1rem 2rem;
        color: var(--text-primary);
        text-decoration: none;
        border: 1px solid transparent;
        border-radius: 8px;
        transition: var(--transition-smooth);
    }
    
    .nav-menu .nav-link:hover {
        border-color: var(--primary-color);
        background: rgba(0, 212, 255, 0.1);
    }
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition-smooth);
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Sections */
.section {
    padding: var(--section-padding);
    position: relative;
}

.glass-section {
    background-color: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 20px;
    margin: 2rem;
    padding: var(--section-padding);
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 120px; /* Add padding to account for fixed navbar */
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(100vh - 200px); /* Ensure proper height accounting for navbar */
}

.hero-text {
    z-index: 2;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 0.8s ease forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease 0.8s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease 1s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-bounce);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

.btn-icon {
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-object {
    position: absolute;
    font-size: 3rem;
    opacity: 1;
    animation: float 6s ease-in-out infinite;
}

.floating-object:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.floating-object:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: 1.5s;
}

.floating-object:nth-child(3) {
    bottom: 30%;
    left: 10%;
    animation-delay: 3s;
}

.floating-object:nth-child(4) {
    top: 40%;
    right: 10%;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: var(--transition-smooth);
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(0, 212, 255, 0.1);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.profile-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.1);
    backdrop-filter: blur(20px);
}

.profile-image {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    transition: var(--transition-smooth);
    display: block;
    background: var(--gradient-primary);
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

.profile-photo:not([src]) {
    display: none;
}

.profile-image::after {
    content: '👨‍💻';
    font-size: 3rem;
    display: none;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: 3px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.profile-photo:not([src]) + .profile-image::after {
    display: flex;
}

.placeholder-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto;
}

.profile-info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.profile-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: var(--transition-smooth);
}

.skill-category:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

.category-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: translateX(0);
    min-height: 60px;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.skill-item:hover::before {
    left: 100%;
}

.skill-item:hover {
    transform: translateX(10px) scale(1.02);
    background: rgba(0, 212, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.skill-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.skill-item:hover .skill-name {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.skill-level {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.skill-level[data-level="Expert"] {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.skill-level[data-level="Advanced"] {
    background: rgba(157, 78, 221, 0.2);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.skill-level[data-level="Intermediate"] {
    background: rgba(255, 107, 53, 0.2);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.skill-level[data-level="Beginner"] {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.skill-item:hover .skill-level {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

/* Ensure skills are always visible - final fallback */
.skills-list .skill-item {
    opacity: 1 !important;
    transform: translateX(0) !important;
    visibility: visible !important;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
}

.project-image {
    height: 200px;
    background: var(--gradient-space);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-placeholder {
    font-size: 4rem;
    opacity: 0.7;
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    position: relative;
}

.project-link:hover {
    color: var(--primary-color);
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-smooth);
}

.project-link:hover::after {
    width: 100%;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
    text-align: right;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    text-align: left;
    padding-left: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--background-dark);
    z-index: 2;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(0, 212, 255, 0.1);
    max-width: 45%;
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.timeline-company {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.education-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.education-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
}

.education-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.education-content {
    flex: 1;
}

.education-degree {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.education-school {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.education-specialization {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.education-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.education-gpa {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.education-year {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Certifications */
.certifications-section {
    margin-top: 3rem;
}

.certifications-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.certification-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.certification-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.cert-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.cert-details h4 {
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.cert-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-subtitle {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-description {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: var(--transition-smooth);
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
}

.contact-icon {
    font-size: 2rem;
}

.contact-details h4 {
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.contact-details p {
    color: var(--text-muted);
}

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: rgba(5, 5, 8, 0.8);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1002; /* Above everything */
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        transform: translateX(-100%);
        transition: var(--transition-smooth);
        z-index: 1001;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-menu .nav-link {
        font-size: 1.5rem;
        padding: 1rem;
    }
    
    /* Fix container padding for mobile */
    .container {
        padding: 0 1rem;
    }
    
    /* Fix glass sections for mobile */
    .glass-section {
        margin: 1rem;
        padding: 2rem 1rem;
    }
    
    .hero-section {
        padding-top: 100px; /* Account for fixed navbar */
        min-height: 100vh;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 1rem;
        min-height: calc(100vh - 200px);
    }
    
    .hero-title {
        font-size: 2rem; /* Smaller for mobile */
        line-height: 1.2;
    }
    
    .hero-title .title-line {
        display: block;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        min-width: auto;
    }
    
    /* Fix about section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        text-align: center;
        padding: 1rem;
    }
    
    /* Fix skills section */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Fix projects section */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-card {
        margin: 0;
    }
    
    /* Fix timeline */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 3rem;
        margin-right: 0;
        text-align: left;
        padding-left: 2rem;
        padding-right: 1rem;
        max-width: calc(100% - 3rem);
    }
    
    .timeline-marker {
        left: 20px;
        transform: translateX(-50%);
    }
    
    /* Fix education section */
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Fix contact section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form {
        order: 2;
    }
    
    .contact-info {
        order: 1;
    }
    
    /* Fix section titles */
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    /* Fix floating elements */
    .floating-elements {
        display: none; /* Hide on mobile for performance */
    }
    
    /* Ensure text is readable */
    .section {
        padding: 3rem 0;
    }
}
    
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .education-card {
        flex-direction: column;
        text-align: center;
    }
    
    .education-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-subtitle {
        font-size: 0.6rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .nav-container {
        padding: 0.8rem 1rem;
    }
}
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding-top: 70px; /* Further reduce padding on small screens */
    }
    
    .hero-content {
        padding: 0.5rem;
        min-height: calc(100vh - 140px);
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2; /* Ensure proper line spacing */
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
