/* ==========================================
   MODERN PORTFOLIO - CSS STYLESHEET
   Developer: Pranaya Kumar Dash
   Theme: Dark Professional with Neon Accents
   ========================================== */

/* ==========================================
   CSS VARIABLES & ROOT STYLES
   ========================================== */
:root {
    /* Color Palette */
    --primary-bg: #0F172A;
    --secondary-bg: #1E293B;
    --tertiary-bg: #334155;
    --accent-cyan: #22D3EE;
    --accent-green: #01c16a;
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-tertiary: #64748B;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
    --gradient-bg: linear-gradient(135deg, var(--primary-bg), var(--secondary-bg));
    --gradient-card: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(51, 65, 85, 0.6));

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-neon: 0 0 20px rgba(34, 211, 238, 0.3);
    --shadow-neon-green: 0 0 20px rgba(1, 193, 106, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-display: 'Space Grotesk', sans-serif;
}


/* Light Theme Variables - COOL & MODERN */
body.light-theme {
    --primary-bg: #FFFDD0;
    --secondary-bg: #FFFDD0;
    --tertiary-bg: #E0E7FF;
    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-tertiary: #64748B;

    /* Cool blue/purple accent colors for light mode */
    --accent-cyan: #3B82F6;
    --accent-green: #8B5CF6;

    /* Modern gradients */
    --gradient-primary: linear-gradient(135deg, #3B82F6, #8B5CF6);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(224, 231, 255, 0.4));

    /* Softer shadows */
    --shadow-sm: 0 2px 8px rgba(59, 130, 246, 0.1);
    --shadow-md: 0 4px 16px rgba(59, 130, 246, 0.15);
    --shadow-lg: 0 8px 32px rgba(59, 130, 246, 0.2);
    --shadow-xl: 0 16px 48px rgba(59, 130, 246, 0.25);
    --shadow-neon: 0 0 30px rgba(59, 130, 246, 0.4);
    --shadow-neon-green: 0 0 30px rgba(139, 92, 246, 0.4);
}

/* Light theme overrides */
body.light-theme .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.08);
}

body.light-theme .gradient-orb {
    opacity: 0.06;
}

body.light-theme .hero-particle {
    background: var(--accent-cyan);
    opacity: 0.4;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
}

body.light-theme .theme-toggle {
    background: var(--tertiary-bg);
    border-color: rgba(59, 130, 246, 0.2);
}

body.light-theme .mobile-menu-overlay {
    background: rgba(248, 250, 252, 0.98);
    backdrop-filter: blur(10px);
}

body.light-theme .mobile-menu-close {
    background: var(--secondary-bg);
    border-color: rgba(59, 130, 246, 0.2);
}

body.light-theme .skill-card,
body.light-theme .service-card,
body.light-theme .portfolio-card,
body.light-theme .education-item,
body.light-theme .timeline-content,
body.light-theme .contact-info,
body.light-theme .contact-form-wrapper {
    background: var(--secondary-bg);
    /* Pure white instead of gradient */
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
    border-radius: var(--radius-lg);
}

body.light-theme .skill-card:hover,
body.light-theme .service-card:hover,
body.light-theme .portfolio-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

body.light-theme .float-icon,
body.light-theme .hero-float-icon {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
    color: var(--accent-cyan);
}

body.light-theme .profile-image {
    border: 3px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2);
}

body.light-theme .about-image .image-container {
    border: 2px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
}

body.light-theme .tab-btn {
    background: var(--secondary-bg);
    color: var(--text-secondary);
    border-color: rgba(59, 130, 246, 0.2);
}

body.light-theme .tab-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--text-primary);
    background: var(--tertiary-bg);
}

body.light-theme .tab-btn.active {
    background: var(--gradient-primary);
    color: #FFFDD0;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

body.light-theme .filter-btn {
    background: var(--secondary-bg);
    color: var(--text-secondary);
    border-color: rgba(59, 130, 246, 0.2);
}

body.light-theme .filter-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--text-primary);
    background: var(--tertiary-bg);
}

body.light-theme .filter-btn.active {
    background: var(--gradient-primary);
    color: #FFFDD0;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

body.light-theme .form-group input,
body.light-theme .form-group textarea {
    background: var(--secondary-bg);
    border-color: rgba(59, 130, 246, 0.2);
    color: var(--text-primary);
}

body.light-theme .form-group input:focus,
body.light-theme .form-group textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

body.light-theme .form-group input::placeholder,
body.light-theme .form-group textarea::placeholder {
    color: var(--text-tertiary);
}

body.light-theme .social-link {
    background: var(--secondary-bg);
    border-color: rgba(59, 130, 246, 0.2);
}

body.light-theme .social-link:hover {
    background: var(--gradient-primary);
    color: #FFFDD0;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

body.light-theme .back-to-top {
    background: var(--gradient-primary);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

body.light-theme .resume-viewer {
    background: var(--secondary-bg);
    border-color: rgba(59, 130, 246, 0.2);
}

body.light-theme .resume-loading {
    background: var(--secondary-bg);
}

body.light-theme .section {
    background: var(--primary-bg);
}

body.light-theme .about-section,
body.light-theme .portfolio-section,
body.light-theme .contact-section {
    background: var(--secondary-bg);
}

body.light-theme .footer {
    background: var(--primary-bg);
    border-top: 1px solid rgba(59, 130, 246, 0.15);
}

body.light-theme .skill-icon,
body.light-theme .service-icon,
body.light-theme .timeline-icon,
body.light-theme .education-icon,
body.light-theme .contact-icon {
    background: var(--secondary-bg);
    color: #0e33ec;
    border-radius: 20px;
}

body.light-theme .menu-toggle span {
    background: var(--accent-cyan);
}

body.light-theme .skill-tags span,
body.light-theme .tag {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--accent-cyan);
}

body.light-theme .timeline-date,
body.light-theme .education-date {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--accent-cyan);
}

body.light-theme .cert-badge {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--accent-green);
}

body.light-theme .highlight {
    color: var(--accent-cyan);
}

body.light-theme .timeline-company,
body.light-theme .education-school {
    color: var(--accent-green);
}

body.light-theme .education-grade {
    color: var(--accent-cyan);
}

body.light-theme .portfolio-stats i,
body.light-theme .service-features li i {
    color: var(--accent-green);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal);
    /* Performance optimizations */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

::selection {
    background-color: var(--accent-cyan);
    color: var(--primary-bg);
}

::-moz-selection {
    background-color: var(--accent-cyan);
    color: var(--primary-bg);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 15px;

}

::-webkit-scrollbar-track {
    background: var(--secondary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-green);
}

/* Light theme scrollbar */
body.light-theme ::-webkit-scrollbar-track {
    background: #E2E8F0;
}

body.light-theme ::-webkit-scrollbar-thumb {
    background: #22D3EE;
}

/* ==========================================
   PRELOADER
   ========================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.code-loader {
    font-size: 3rem;
    font-family: var(--font-mono);
    font-weight: 700;
    margin-bottom: 2rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.code-loader .bracket {
    color: var(--accent-cyan);
}

.code-loader .code-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: var(--secondary-bg);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.loading-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ==========================================
   SCROLL PROGRESS BAR
   ========================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 9999;
    transform-origin: left;
    transition: width var(--transition-fast);
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-full);
    color: var(--primary-bg);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-neon);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(34, 211, 238, 0.4);
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo */
.logo {
    font-size: 1.5rem;
    font-family: var(--font-mono);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: transform var(--transition-normal);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-bracket {
    color: var(--accent-cyan);
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Desktop Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-normal);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

/* Theme Toggle */
.theme-toggle {
    width: 50px;
    height: 50px;
    background: var(--secondary-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    transform: rotate(15deg);
    border-color: var(--accent-cyan);
}

.theme-toggle i {
    font-size: 1.2rem;
    transition: all var(--transition-normal);
}

.theme-toggle .fa-moon {
    color: var(--accent-cyan);
}

.theme-toggle .fa-sun {
    position: absolute;
    color: var(--accent-green);
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

body.light-theme .theme-toggle .fa-moon {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

body.light-theme .theme-toggle .fa-sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Hire Me Button */
.hire-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--primary-bg);
    text-decoration: none;
    border-radius: 12px;
    /* Rectangular with rounded corners */
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    min-height: 44px;
    /* Better touch target */
}

.hire-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.hire-btn:hover::before {
    width: 300px;
    height: 300px;
}

.hire-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 211, 238, 0.4);
}

.hire-btn span {
    position: relative;
    z-index: 2;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--accent-cyan);
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transform: translateY(-50px);
    transition: transform var(--transition-slow);
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateY(0);
}

.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--secondary-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--accent-cyan);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.mobile-menu-close:hover {
    transform: rotate(90deg);
    border-color: var(--accent-cyan);
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-link {
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    padding: 1rem;
    transition: all var(--transition-normal);
    position: relative;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.mobile-nav-link:hover::before {
    width: 80%;
}

.mobile-nav-link:hover {
    color: var(--accent-cyan);
}

.mobile-menu-footer {
    margin-top: 3rem;
}

/* ==========================================
   CONTAINER & SECTION UTILITIES
   ========================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    position: relative;
    padding: 0 2rem;
}

.section-tag::before,
.section-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
}

.section-tag::before {
    left: 0;
}

.section-tag::after {
    right: 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 12px;
    /* Rectangular with rounded corners */
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    min-height: 48px;
    /* Better touch target */
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--primary-bg);
    box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 211, 238, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
}

.btn-secondary:hover {
    background: var(--accent-cyan);
    color: var(--primary-bg);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn .btn-loading {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    min-height: calc(var(--vh, 1vh) * 100);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* Reduced from 100px for better performance */
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
    will-change: transform;
    /* GPU acceleration */
}

/* Hide orbs on mobile for better performance */
@media (max-width: 768px) {
    .gradient-orb {
        display: none;
    }
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-cyan);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-green);
    bottom: -10%;
    left: -10%;
    animation-delay: 5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #7C3AED;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 1s ease;
}

.greeting {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.wave {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    40% {
        transform: rotate(0deg);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-container {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    min-height: 50px;
}

.typing-prefix {
    color: var(--text-secondary);
}

.typed-text {
    color: var(--accent-cyan);
}

.cursor-blink {
    color: var(--accent-green);
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Hero Image */
.hero-image {
    position: relative;
    animation: fadeInUp 1s ease 0.3s both;
}

.image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 10;
}

/* Hero-wide floating particles - beautiful ambient animation */
.hero-floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-particle {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    opacity: 0.4;
    animation: floatParticleHero var(--duration) var(--delay) ease-in-out infinite;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

@keyframes floatParticleHero {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }

    25% {
        transform: translate(60px, -80px) scale(1.2);
        opacity: 0.7;
    }

    50% {
        transform: translate(-40px, 60px) scale(0.8);
        opacity: 0.3;
    }

    75% {
        transform: translate(80px, 40px) scale(1.1);
        opacity: 0.6;
    }
}

/* Hide particles on mobile for performance */
@media (max-width: 768px) {
    .hero-floating-particles {
        display: none;
    }
}

.profile-image {
    position: relative;
    width: 100%;
    max-width: 450px;
    /* Limit maximum size */
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 3px solid rgba(34, 211, 238, 0.3);
    box-shadow: var(--shadow-xl);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 51%;

    transition: transform var(--transition-slow);
}

.profile-image:hover img {
    transform: scale(1.05);
}

.glow-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent,
            var(--accent-cyan),
            transparent,
            var(--accent-green),
            transparent);
    animation: rotate 10s linear infinite;
    opacity: 0.15;
    /* Reduced from 0.2 for subtler effect */
    will-change: transform;
    /* GPU acceleration */
}

/* Hide glow effect on mobile for performance */
@media (max-width: 768px) {
    .glow-effect {
        display: none;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
}

.scroll-indicator a {
    text-decoration: none;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: color var(--transition-normal);
}

.scroll-indicator a:hover {
    color: var(--accent-cyan);
}

.mouse {
    width: clamp(24px, 4vw, 30px);
    height: clamp(40px, 6vh, 50px);
    border: 2px solid var(--accent-cyan);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--accent-cyan);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {

    0%,
    100% {
        opacity: 0;
        top: 8px;
    }

    50% {
        opacity: 1;
        top: 20px;
    }
}

.scroll-indicator p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Hide scroll indicator on tablets and mobile */
@media (max-width: 1400px) {
    .scroll-indicator {
        display: none;
    }
}

/* For medium screens, increase bottom spacing */
@media (min-width: 1401px) and (max-width: 1600px) {
    .scroll-indicator {
        bottom: 2rem;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-section {
    background: var(--secondary-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: start;
}

.about-image .image-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.8), rgba(1, 193, 106, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.image-container:hover .image-overlay {
    opacity: 1;
}

.image-container:hover img {
    transform: scale(1.1);
}

.overlay-content {
    text-align: center;
    color: var(--primary-bg);
}

.overlay-content i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    font-size: 1.2rem;
    font-weight: 600;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.25rem;
}

.highlight {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Tabs */
.tabs-container {
    margin-top: 2rem;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--tertiary-bg);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.tab-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: var(--primary-bg);
    border-color: transparent;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-card {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-neon);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.skill-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.skill-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.skill-tags span {
    padding: 0.25rem 0.75rem;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--accent-cyan);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-bg);
    box-shadow: var(--shadow-neon);
}

.timeline-content {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(34, 211, 238, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-bottom: 0.75rem;
}

.timeline-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.timeline-company {
    color: var(--accent-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Education */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.education-item {
    display: flex;
    gap: 1.5rem;
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.education-item:hover {
    transform: translateX(10px);
    border-color: var(--accent-cyan);
}

.education-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-bg);
}

.education-info {
    flex: 1;
}

.education-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(34, 211, 238, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-bottom: 0.75rem;
}

.education-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.education-school {
    color: var(--accent-green);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.education-grade {
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.education-info p {
    color: var(--text-secondary);
}

.certifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(1, 193, 106, 0.1);
    border: 1px solid rgba(1, 193, 106, 0.3);
    border-radius: var(--radius-sm);
    color: var(--accent-green);
}

.cert-badge i {
    font-size: 1rem;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent,
            rgba(34, 211, 238, 0.1),
            transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
    animation: rotate 10s linear infinite;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-neon);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-bg);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.service-card>p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.service-features li i {
    color: var(--accent-green);
    font-size: 0.875rem;
}

/* ==========================================
   PORTFOLIO SECTION
   ========================================== */
.portfolio-section {
    background: var(--secondary-bg);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--tertiary-bg);
    border: 2px solid transparent;
    border-radius: 12px;
    /* Rectangular with rounded corners */
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    min-height: 44px;
    /* Better touch target */
}

.filter-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--primary-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.portfolio-card {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.portfolio-card.hidden {
    display: none;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-neon);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.9), rgba(1, 193, 106, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link,
.portfolio-preview {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.portfolio-link:hover,
.portfolio-preview:hover {
    background: white;
    color: var(--primary-bg);
    transform: scale(1.1);
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--accent-cyan);
}

/* Live Tag Badge - for deployed projects */
.tag.tag-live {
    background: rgba(1, 193, 106, 0.15);
    border: 1px solid rgba(1, 193, 106, 0.5);
    color: var(--accent-green);
    font-weight: 600;
    animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(1, 193, 106, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(1, 193, 106, 0.1);
    }
}

/* Portfolio Live Demo Button */
.portfolio-link.portfolio-live {
    background: rgba(1, 193, 106, 0.3);
    border-color: var(--accent-green);
}

.portfolio-link.portfolio-live:hover {
    background: var(--accent-green);
    color: white;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.portfolio-content>p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.portfolio-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.portfolio-stats i {
    color: var(--accent-green);
}

.portfolio-cta {
    text-align: center;
    margin-top: 3rem;
}

.portfolio-cta p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ==========================================
   RESUME SECTION
   ========================================== */
.resume-container {
    max-width: 1200px;
    margin: 0 auto;
}

.resume-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.resume-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    /* Rectangular with rounded corners */
    color: var(--primary-bg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    min-height: 48px;
    /* Better touch target */
}

.resume-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

.resume-viewer {
    position: relative;
    width: 100%;
    height: clamp(500px, 70vh, 850px);
    /* Responsive height */
    background: var(--secondary-bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-xl);
}

.resume-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--secondary-bg);
    z-index: 10;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(34, 211, 238, 0.1);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.resume-loading p {
    color: var(--text-secondary);
}

.resume-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.resume-viewer.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
}

.resume-fallback {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-secondary);
}

.resume-fallback a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
}

.resume-fallback a:hover {
    text-decoration: underline;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    background: var(--secondary-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.contact-info {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: fit-content;
}

.contact-info-header {
    margin-bottom: 2rem;
}

.contact-info-header h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info-header p {
    color: var(--text-secondary);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-bg);
}

.contact-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-text a,
.contact-text p {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.contact-text a:hover {
    color: var(--accent-cyan);
}

.social-connect {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-connect h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--tertiary-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: var(--primary-bg);
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: var(--shadow-neon);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group label i {
    color: var(--accent-cyan);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--tertiary-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(1, 193, 106, 0.1);
    border: 1px solid rgba(1, 193, 106, 0.3);
    color: var(--accent-green);
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--primary-bg);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    font-size: 2rem;
    font-family: var(--font-mono);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-column a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-secondary);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-bottom i {
    color: #EF4444;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Large Tablets & Small Laptops */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-content {
        gap: 3rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .about-content {
        grid-template-columns: 350px 1fr;
        gap: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets */
@media (max-width: 992px) {
    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .nav-menu,
    .theme-toggle,
    .hire-btn {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Landscape & Large Phones */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .typing-container {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .resume-viewer {
        height: clamp(450px, 60vh, 600px);
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .image-wrapper {
        max-width: 350px;
        margin: 0 auto;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .typing-container {
        font-size: 1rem;
    }

    .greeting {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .mobile-nav-link {
        font-size: 1.5rem;
    }

    .service-card {
        padding: 2rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .portfolio-filter {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
        text-align: center;
    }

    .resume-controls {
        flex-direction: column;
    }

    .resume-btn {
        width: 100%;
        justify-content: center;
    }

    .resume-viewer {
        height: 500px;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 2rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* Extra Small Devices */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .code-loader {
        font-size: 2rem;
    }

    .section-tag {
        font-size: 0.8rem;
        padding: 0 1rem;
    }

    .section-tag::before,
    .section-tag::after {
        width: 20px;
    }
}

/* Print Styles */
@media print {

    .navbar,
    .scroll-progress,
    .back-to-top,
    .mobile-menu-overlay,
    .menu-toggle,
    .scroll-indicator {
        display: none !important;
    }

    .section {
        page-break-inside: avoid;
    }
}

@media (max-width: 576px) {
    .btn {
        min-height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}


/* Prevent decorative layers from blocking clicks */
.hero-background,
.gradient-orb,
.hero-floating-particles,
.hero-particle,
.glow-effect {
    pointer-events: none;
}

/* Ensure buttons are clickable */
.hero-buttons {
    position: relative;
    z-index: 10;
}