/* ==========================================================================
   Modern Dark Portfolio CSS - Professional styling with animations
   ========================================================================== */

/* CSS Custom Properties - Maintains consistent theming throughout */
:root {
    --primary-color: #00d9ff;
    --primary-hover: #00b8d4;
    --secondary-color: #7c4dff;
    --accent-color: #ff6b35;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --border-color: #333333;
    --shadow-light: rgba(0, 217, 255, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.3);
    --shadow-heavy: rgba(0, 0, 0, 0.6);
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;
    --border-radius: 8px;
    --max-width: 1200px;
    --header-height: 70px;
}

/* ==========================================================================
   Base Styles & Typography
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}



/* Container for consistent max-width and centering */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section titles with consistent styling and animation triggers */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
    opacity: 1; /* Default visible - GSAP will handle animation */
    transform: translateY(0);
    transition: all var(--transition-medium);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Animation class for section titles */
.section-title.animate {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Navigation Bar - Fixed header with smooth transitions
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition-fast);
    border-bottom: 1px solid rgba(51, 51, 51, 0.3);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 2px 20px var(--shadow-medium);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.nav-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-fast);
}

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

/* Mobile hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        list-style: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        width: 100%;
        background: rgba(10, 10, 10, 0.99);
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(51, 51, 51, 0.3);
        z-index: 999;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .nav-link {
        padding: 0.75rem 0;
        display: block;
        width: 100%;
    }
}

/* ==========================================================================
    Hero Section - Landing area with animated entrance
    ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    overflow: hidden;
    padding-top: var(--header-height); /* Ensure content is not hidden behind fixed navbar */
}

/* Parallax elements removed for better performance */

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    opacity: 1 !important; /* Force visible - override any animations */
    transform: translateX(0) !important;
    /* Temporarily disable animation to ensure visibility */
    animation: slideInLeft 1s ease forwards;
    animation-delay: 0.2s;
}

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

.title-line {
    display: block;
}

.title-highlight {
    color: var(--primary-color);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-cta {
    display: flex !important;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 1 !important; /* Force visible */
    visibility: visible !important;
}

/* Button styles used throughout the site */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-block !important;
    text-align: center;
    opacity: 1 !important; /* Force all buttons visible */
    visibility: visible !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.3);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.btn-resume {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px; /* Smaller padding than standard buttons */
    font-size: 0.9rem; /* Slightly smaller font */
    font-weight: 400; /* Less bold than other buttons */
}

.btn-resume:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px); /* Subtle lift */
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.2); /* Softer glow */
}

/* Animated particles background for visual interest */
.particles-container {
    position: relative;
    width: 100%;
    height: 400px;
    opacity: 1; /* Default visible - GSAP will handle animation */
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.8s;
}

.particles-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-color) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

/* Scroll indicator for user guidance */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 1; /* Default visible - GSAP will handle animation */
    animation: fadeInBounce 1s ease forwards;
    animation-delay: 1.5s;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--primary-color);
    position: relative;
    animation: bounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
}

/* Calmer scroll indicator on mobile */
@media (max-width: 768px) {
    .scroll-arrow {
        animation: none;
    }
}

/* ==========================================================================
   About Section - Personal introduction with clean layout
   ========================================================================== */

.about {
    padding: 6rem 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    opacity: 1; /* Default visible - GSAP will handle animation */
    transform: translateY(0);
    transition: all var(--transition-medium);
}

.about-text.animate {
    opacity: 1;
    transform: translateY(0);
}

.about-intro,
.about-details,
.about-personal {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.about-intro {
    color: var(--text-primary);
    font-weight: 500;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
}

.contact-item i {
    color: var(--primary-color);
    width: 20px;
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.about-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 1; /* Default visible - GSAP will handle animation */
    transform: translateX(0);
    transition: all var(--transition-medium);
}

.about-links.animate {
    opacity: 1;
    transform: translateX(0);
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background: var(--bg-primary);
    color: var(--primary-color);
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.social-link i {
    font-size: 1.5rem;
}

/* ==========================================================================
   Skills Section - Organized skill categories with tags
   ========================================================================== */

.skills {
    padding: 6rem 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

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

.skill-category {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    opacity: 1; /* Default visible - GSAP will handle animation */
    transform: translateY(0);
    transition: all var(--transition-medium);
}

.skill-category.animate {
    opacity: 1;
    transform: translateY(0);
}

.skill-category:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px var(--shadow-light);
}

.skill-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   Projects Section - Showcase with animated cards
   ========================================================================== */

.projects {
    padding: 6rem 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

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

.project-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-medium);
    opacity: 1; /* Default visible - GSAP will handle animation */
    transform: translateY(0);
}

.project-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    will-change: transform; /* Only when actively hovering */
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-medium);
    border-color: var(--primary-color);
}

.project-card:not(:hover) {
    will-change: auto; /* Reset when not hovering */
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
    padding: 10px;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

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

.project-link,
.project-github {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.project-link:hover,
.project-github:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--bg-secondary);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--primary-color);
}

/* Placeholder project styling */
.project-placeholder .project-image {
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.placeholder-content i {
    font-size: 3rem;
    color: var(--primary-color);
}

/* ==========================================================================
   Experience Section - Timeline and education
   ========================================================================== */

.experience {
    padding: 6rem 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.timeline {
    position: relative;
    margin-bottom: 4rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 5rem;
    opacity: 1; /* Default visible - GSAP will handle animation */
    transform: translateX(0);
    transition: all var(--transition-medium);
}

.timeline-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.timeline-dot {
    position: absolute;
    left: 1.2rem;
    top: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
}

.timeline-content {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.timeline-header {
    margin-bottom: 1.5rem;
}

.job-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.company {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-right: 1rem;
}

.duration {
    color: var(--text-muted);
    font-style: italic;
}

.job-achievements {
    list-style: none;
    padding: 0;
}

.job-achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.job-achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Education and certifications styling */
.education-section,
.certifications-section {
    margin-top: 4rem;
}

.subsection-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

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

.education-item {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    opacity: 1; /* Default visible - GSAP will handle animation */
    transform: translateY(0);
    transition: all var(--transition-medium);
}

.education-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.degree {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.school {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.details {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.credential {
    background: var(--bg-tertiary);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--primary-color);
}

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

.cert-item {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all var(--transition-fast);
    opacity: 1; /* Default visible - GSAP will handle animation */
    transform: translateY(0);
}

.cert-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.cert-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.cert-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cert-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.cert-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Contact Section - Interactive form and contact information
   ========================================================================== */

/* ==========================================================================
   References Section - Professional recommendations display
   ========================================================================== */

.references {
    padding: 6rem 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

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

.reference-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all var(--transition-medium);
    opacity: 1; /* Default visible - GSAP will handle animation */
    transform: translateY(0);
    position: relative;
    overflow: hidden;
}

.reference-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.reference-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px var(--shadow-light);
    transform: translateY(-5px);
}

.reference-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform var(--transition-medium);
}

.reference-card:hover::before {
    transform: scaleY(1);
}

.reference-header {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.reference-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.reference-title {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.reference-company {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.reference-contact {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-left: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

.contact-link:hover {
    color: var(--primary-color);
    background: var(--bg-tertiary);
    transform: translateX(5px);
}

.contact-link i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.references-note {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    opacity: 1; /* Default visible - GSAP will handle animation */
    transform: translateY(0);
    transition: all var(--transition-medium);
}

.references-note.animate {
    opacity: 1;
    transform: translateY(0);
}

.references-note p {
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
}

.references-note i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Responsive adjustments for references */
@media (max-width: 768px) {
    .references-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .reference-card {
        padding: 1.5rem;
    }
}

.contact {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

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

.contact-info-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.contact-method:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(5px);
}

.contact-method i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* Contact form styling with focus states */
.contact-form {
    opacity: 1; /* Default visible - GSAP will handle animation */
    transform: translateX(0);
    transition: all var(--transition-medium);
}

.contact-form.animate {
    opacity: 1;
    transform: translateX(0);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   Footer - Clean closing section
   ========================================================================== */

.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text p {
    color: var(--text-muted);
    margin: 0;
}

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

.footer-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
}

.footer-links a:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Design - Mobile and tablet optimizations
   ========================================================================== */

@media (max-width: 768px) {
    .hero {
        padding-top: calc(var(--header-height) + 1rem); /* Extra padding on mobile for better spacing */
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

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

    .education-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* ==========================================================================
   Animation Keyframes - Smooth entrance animations
   ========================================================================== */

@keyframes slideInLeft {
    from {
        opacity: 1; /* Start visible for immediate accessibility */
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 1; /* Start visible for immediate accessibility */
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInBounce {
    0% {
        opacity: 1; /* Start visible for immediate accessibility */
        transform: translateX(-50%) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg);
    }
}

/* ==========================================================================
   Background Animation Elements - Desktop only for performance
   ========================================================================== */

/* Connected constellation network for About section */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-shapes::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 217, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(124, 77, 255, 0.08) 1.5px, transparent 1.5px),
        radial-gradient(circle at 30% 70%, rgba(0, 217, 255, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 70% 80%, rgba(124, 77, 255, 0.1) 2.5px, transparent 2.5px),
        radial-gradient(circle at 60% 40%, rgba(0, 217, 255, 0.08) 1.8px, transparent 1.8px),
        radial-gradient(circle at 15% 85%, rgba(124, 77, 255, 0.06) 1.2px, transparent 1.2px),
        radial-gradient(circle at 85% 60%, rgba(0, 217, 255, 0.09) 2px, transparent 2px),
        radial-gradient(circle at 40% 15%, rgba(124, 77, 255, 0.07) 1.5px, transparent 1.5px);
    background-size: 
        100% 100%, 100% 100%, 100% 100%, 100% 100%, 
        100% 100%, 100% 100%, 100% 100%, 100% 100%;
    animation: constellationPulse 8s ease-in-out infinite;
}

.floating-shapes::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(45deg, transparent 45%, rgba(0, 217, 255, 0.03) 50%, transparent 55%),
        linear-gradient(135deg, transparent 45%, rgba(124, 77, 255, 0.02) 50%, transparent 55%),
        linear-gradient(225deg, transparent 48%, rgba(0, 217, 255, 0.02) 50%, transparent 52%);
    background-size: 400px 400px, 300px 300px, 500px 500px;
    background-position: 0 0, 100px 100px, 200px 50px;
    animation: constellationFlow 20s linear infinite;
    opacity: 0.7;
}

/* Code rain effect for Skills section */
.code-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 217, 255, 0.02) 50%,
        transparent 100%
    );
}

.code-rain::before {
    content: '{ } [ ] < > / \\ ( ) ; : " \' . , | & * + - = % $ # @ ! ? ~ ` ^';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100%;
    color: rgba(0, 217, 255, 0.1);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    letter-spacing: 10px;
    line-height: 2;
    word-spacing: 20px;
    animation: codeRain 20s linear infinite;
    white-space: pre-wrap;
    text-align: center;
}

/* Geometric grid for Projects section */
.geometric-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background-image: 
        linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridShift 25s ease-in-out infinite;
}

.geometric-grid::after {
    content: '';
    position: absolute;
    top: 25%;
    left: 75%;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(0, 217, 255, 0.08);
    border-radius: 10px;
    animation: geometricRotate 12s linear infinite;
}

/* Network nodes for Experience section */
.network-nodes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.network-nodes::before,
.network-nodes::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 
        0 0 10px rgba(0, 217, 255, 0.3),
        100px 50px 0 rgba(0, 217, 255, 0.2),
        200px 100px 0 rgba(0, 217, 255, 0.15),
        -50px 150px 0 rgba(0, 217, 255, 0.1);
    animation: networkPulse 8s ease-in-out infinite;
}

.network-nodes::before {
    top: 20%;
    left: 15%;
}

.network-nodes::after {
    top: 70%;
    right: 20%;
    animation-delay: 4s;
}

/* Removed character animation styling for more professional look */

/* Hide background animations on mobile for performance */
@media (max-width: 768px) {
    .floating-shapes,
    .code-rain,
    .geometric-grid,
    .network-nodes {
        display: none !important;
    }
    
    /* Disable all animations on mobile for better performance */
    *, *::before, *::after {
        animation-duration: 0.1s !important;
        transition-duration: 0.1s !important;
    }
    
    /* Remove will-change on mobile */
    * {
        will-change: auto !important;
    }
}

/* Animation keyframes for background effects */
@keyframes constellationPulse {
    0%, 100% {
        opacity: 1;
        filter: brightness(1);
    }
    25% {
        opacity: 0.8;
        filter: brightness(1.2);
    }
    50% {
        opacity: 0.6;
        filter: brightness(0.9);
    }
    75% {
        opacity: 0.9;
        filter: brightness(1.1);
    }
}

@keyframes constellationFlow {
    0% {
        background-position: 0 0, 100px 100px, 200px 50px;
        transform: rotate(0deg);
    }
    25% {
        background-position: 100px 50px, 200px 150px, 300px 100px;
        transform: rotate(0.5deg);
    }
    50% {
        background-position: 200px 100px, 300px 200px, 400px 150px;
        transform: rotate(0deg);
    }
    75% {
        background-position: 300px 150px, 400px 250px, 500px 200px;
        transform: rotate(-0.5deg);
    }
    100% {
        background-position: 400px 200px, 500px 300px, 600px 250px;
        transform: rotate(0deg);
    }
}

@keyframes codeRain {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes gridShift {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(10px, 5px);
    }
    50% {
        transform: translate(-5px, 10px);
    }
    75% {
        transform: translate(5px, -5px);
    }
}

@keyframes geometricRotate {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: rotate(180deg) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.5;
    }
}

@keyframes networkPulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Utility classes for animations */
.fade-in {
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.fade-in.animate {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-medium);
}

.slide-up.animate {
    opacity: 1;
    transform: translateY(0);
}



/* Smooth scrolling improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
