/* ========================================
   Modern Portfolio CSS - Syed Sameer
   Dark/Gold Theme with Premium UI/UX
======================================== */

/* ========== CSS Variables ========== */
:root {
    /* Colors */
    --gold: #FFD700;
    --gold-dark: #E5C100;
    --gold-light: #FFE44D;

    --dark-900: #0a0e27;
    --dark-800: #0f172a;
    --dark-700: #1e293b;
    --dark-600: #334155;

    --light-100: #f8fafc;
    --light-200: #e2e8f0;
    --light-300: #cbd5e1;
    --light-400: #94a3b8;

    /* Semantic Colors */
    --bg-primary: var(--dark-800);
    --bg-secondary: var(--dark-700);
    --bg-tertiary: var(--dark-600);

    --text-primary: var(--light-100);
    --text-secondary: var(--light-400);
    --text-inverse: var(--dark-800);

    --accent: var(--gold);
    --accent-hover: var(--gold-dark);

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;
    --space-10: 4rem;
    --space-12: 5rem;

    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.25);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 8px 32px rgba(255, 215, 0, 0.2);

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Theme specific backgrounds */
    --header-bg: rgba(15, 23, 42, 0.9);
    --header-bg-scrolled: rgba(15, 23, 42, 0.98);
    --mobile-menu-bg: rgba(15, 23, 42, 0.98);
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;

    --text-primary: var(--dark-800);
    --text-secondary: var(--dark-600);
    --text-inverse: #ffffff;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.12);

    /* Light theme backgrounds */
    --header-bg: rgba(255, 255, 255, 0.9);
    --header-bg-scrolled: rgba(255, 255, 255, 0.98);
    --mobile-menu-bg: rgba(255, 255, 255, 0.98);
}

/* ========== Reset & Base ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10 and IE 11 */
    user-select: none;
    /* Standard syntax */
}


html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100vw;
    transition: background-color 0.3s ease, color 0.3s ease;
}

::selection {
    background-color: var(--accent);
    color: var(--text-inverse);
}

/* ========== Typography ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    line-height: 1.7;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ========== Utilities ========== */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-6);
    box-sizing: border-box;
}

.gold {
    color: var(--accent);
}

.section-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: var(--accent);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: var(--space-4);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-10);
}

.section-title {
    margin-bottom: var(--space-4);
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-inverse);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.3);
}

.btn-outline {
    border: 2px solid var(--accent);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--text-inverse);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ========== Header & Navigation ========== */
.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 98%;
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 0;
    transition: background-color 0.3s ease;
    border-radius: 20px;

    /* Gradient Border Setup */
    border: 2px solid transparent;
    /* placeholder */
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    z-index: 1000;
    background-image:
        linear-gradient(var(--header-bg), var(--header-bg)),
        linear-gradient(115deg,
            rgba(255, 215, 0, 0.1) 40%,
            rgba(255, 215, 0, 1) 50%,
            rgba(255, 215, 0, 0.1) 60%);
    background-size: 100% 100%, 200% 200%;
    animation: borderShimmer 4s linear infinite;
}

.header.scrolled {
    --header-bg: var(--header-bg-scrolled);
    /* Update variable instead of background prop */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

@keyframes borderShimmer {
    0% {
        background-position: 0% 0%, 100% 0%;
    }

    100% {
        background-position: 0% 0%, 0% 0%;
    }
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    gap: 2rem;
}

.brand {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.brand-text {
    color: var(--text-primary);
}

.brand-dot {
    color: var(--accent);
    font-size: 2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.nav-item:hover {
    color: var(--gold);
    background: rgba(255, 215, 0, 0.08);
}

.nav-item.active {
    color: var(--dark-800);
    background: var(--gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    font-weight: 600;
}

.nav-item::before {
    display: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}



.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 0.375rem;
    width: 2rem;
    height: 2rem;
    background: transparent;
    padding: 0;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-toggle.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ========== Hero Section ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-12) 0 var(--space-10);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: var(--space-3) var(--space-5);
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    margin-bottom: var(--space-5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-title {
    margin-bottom: var(--space-5);
    font-size: clamp(2.5rem, 6vw, 5rem);
}

.typing-text {
    color: var(--accent);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: var(--space-6);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.hero-socials {
    display: flex;
    gap: var(--space-4);
}

.hero-socials a {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    transition: var(--transition);
}

.hero-socials a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-inverse);
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img-wrapper {
    position: relative;
    width: 450px;
    max-width: 100%;
    height: 450px;
    margin: 0 auto;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-xl);
}

.hero-img-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: var(--radius-xl);
    transform: rotate(6deg);
    z-index: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    opacity: 0.7;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: var(--radius-full);
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: var(--radius-full);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 8px;
    }

    100% {
        opacity: 0;
        top: 24px;
    }
}

/* ========== About Section ========== */
.about {
    padding: var(--space-12) 0;
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-10);
    align-items: center;
}

.about-img-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-frame::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, var(--accent), transparent);
    z-index: -1;
    border-radius: var(--radius-xl);
}

.about-img-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-xl);
}

.about-content {
    text-align: left;
}

.about-text {
    margin-bottom: var(--space-4);
    font-size: 1.0625rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.stat-card {
    text-align: center;
    padding: var(--space-5);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.stat-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: var(--space-3);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: var(--space-2);
}

.stat-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* ========== Skills Section ========== */
.skills {
    padding: var(--space-12) 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.skill-card {
    padding: var(--space-6);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.skill-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: var(--radius-lg);
    color: var(--accent);
}

.skill-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.skill-card h3 {
    margin-bottom: var(--space-4);
    font-size: 1.25rem;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-3);
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--gold-light));
    border-radius: var(--radius-full);
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card.active .skill-progress {
    width: var(--progress);
}

.skill-percent {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
}

/* ========== Services Section ========== */
.services {
    padding: var(--space-12) 0;
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
}

.service-card {
    padding: var(--space-8);
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card.featured {
    border-color: var(--accent);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: var(--space-2) var(--space-4);
    background: var(--accent);
    color: var(--text-inverse);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: var(--space-5);
}

.service-card h3 {
    margin-bottom: var(--space-4);
    font-size: 1.5rem;
}

.service-card>p {
    margin-bottom: var(--space-5);
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.service-list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-secondary);
}

.service-list i {
    color: var(--accent);
    font-size: 0.875rem;
}

/* ========== Portfolio Section ========== */
.portfolio {
    padding: var(--space-12) 0;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--space-3) var(--space-5);
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: var(--text-inverse);
    border-color: var(--accent);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-6);
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.portfolio-img {
    width: 100%;
    height: 100%;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

.portfolio-item:hover .project-placeholder {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-6);
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-category {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--space-2);
}

.portfolio-overlay h3 {
    margin-bottom: var(--space-2);
    font-size: 1.5rem;
}

.portfolio-overlay p {
    color: var(--light-300);
    margin-bottom: var(--space-4);
}

.portfolio-link {
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    transition: var(--transition);
}

.portfolio-link:hover {
    transform: scale(1.1);
}

/* ========== Contact Section ========== */
.contact {
    padding: var(--space-12) 0;
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-10);
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: var(--space-4);
}

.contact-info>p {
    margin-bottom: var(--space-8);
    font-size: 1.0625rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    margin-bottom: var(--space-8);
}

.contact-item {
    display: flex;
    gap: var(--space-4);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-details span {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-1);
}

.contact-details a,
.contact-details p {
    font-size: 1.0625rem;
    color: var(--text-primary);
}

.contact-details a:hover {
    color: var(--accent);
}

.contact-socials {
    display: flex;
    gap: var(--space-4);
}

.contact-socials a {
    width: 44px;
    height: 44px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: var(--transition);
}

.contact-socials a:hover {
    background: var(--accent);
    color: var(--text-inverse);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.form-group {
    position: relative;
    margin-bottom: var(--space-6);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 0;
    /* Material-like bottom only padding setup or filled style */
    padding: 1.25rem 1rem 0.5rem;
    /* Filled style top-heavy for label */
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 215, 0, 0.05);
    border-bottom-color: var(--accent);
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-group input:focus~label,
.form-group textarea:focus~label,
.form-group input:valid~label,
.form-group textarea:valid~label {
    top: 0.25rem;
    left: 1rem;
    font-size: 0.75rem;
    color: var(--accent);
    padding: 0;
    background: transparent;
}

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

/* ========== Footer ========== */
.footer {
    background: var(--bg-primary);
    padding: var(--space-10) 0 var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-logo h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-3);
}

.footer-logo p {
    color: var(--text-secondary);
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: var(--space-4);
    font-size: 1.125rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: var(--space-2);
}

.footer-socials {
    display: flex;
    gap: var(--space-3);
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--accent);
    color: var(--text-inverse);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

/* ========== Responsive ========== */
/* Tablet and below */
@media (max-width: 968px) {
    :root {
        --space-6: 1.5rem;
        --space-8: 2rem;
        --space-10: 2.5rem;
        --space-12: 3rem;
    }

    .header {
        width: 96%;
        border-radius: 30px;
    }

    .navbar {
        padding: 1rem 0;
    }

    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--mobile-menu-bg);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        gap: 2rem;
        transform: translateY(-100%);
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 100;
        opacity: 0;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-item {
        font-size: 2rem;
        padding: 0.5rem 0;
        color: var(--text-primary);
        background: transparent;
        font-weight: 700;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    .nav-links.active .nav-item {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered animation delays for menu items */
    .nav-links.active li:nth-child(1) .nav-item {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) .nav-item {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) .nav-item {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) .nav-item {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) .nav-item {
        transition-delay: 0.5s;
    }

    .nav-links.active li:nth-child(6) .nav-item {
        transition-delay: 0.6s;
    }

    .nav-item.active {
        background: transparent;
        color: var(--gold);
        box-shadow: none;
    }

    .nav-item:hover {
        background: transparent;
        color: var(--gold);
        transform: scale(1.1);
    }

    .hero-container,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-image {
        order: -1;
        margin-bottom: 2.5rem;
    }

    .hero-img-wrapper {
        width: 350px;
        height: 350px;
        margin: 0 auto;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Services Section - User swipe (Tablet & Mobile) */
    .services-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: var(--space-5);
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: var(--space-4);
    }

    .services-grid::-webkit-scrollbar {
        display: none;
    }

    .service-card {
        min-width: 280px;
        /* Adjusted reasonable width for tablet */
        max-width: 340px;
        flex-shrink: 0;
        scroll-snap-align: center;
    }

    /* Portfolio Section - User swipe (Tablet & Mobile) */
    .portfolio-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: var(--space-5);
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: var(--space-4);
    }

    .portfolio-grid::-webkit-scrollbar {
        display: none;
    }

    .portfolio-item {
        min-width: 280px;
        max-width: 340px;
        flex-shrink: 0;
        scroll-snap-align: center;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 var(--space-4);
    }

    /* Header - smaller on mobile */
    .header {
        width: 94%;
        border-radius: 20px;
        top: 5px;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .brand {
        font-size: 1.5rem;
    }

    .nav-links {
        top: 3.5rem;
        height: calc(100vh - 3.5rem);
    }

    /* Hero Section - more spacing */
    .hero {
        padding-top: calc(var(--space-12) + 80px);
    }

    .hero-container {
        gap: 2.5rem;
    }

    .hero-image {
        margin-bottom: 2rem;
    }

    /* Hero Image - Card style on mobile */
    .hero-img-wrapper {
        width: 280px;
        height: 280px;
        background: var(--bg-secondary);
        padding: 1rem;
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-lg);
        border: 2px solid rgba(255, 215, 0, 0.2);
    }

    .hero-img {
        border-radius: var(--radius-lg);
    }

    .hero-img-bg {
        border-radius: var(--radius-lg);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .scroll-indicator {
        display: none;
    }

    /* Skills Section - Auto-scroll infinite */
    .skills-grid {
        display: flex;
        overflow-x: hidden;
        gap: var(--space-5);
        animation: autoScroll 30s linear infinite;
        width: max-content;
    }

    .skill-card {
        min-width: 280px;
        flex-shrink: 0;
    }

    @keyframes autoScroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-300px * 6));
        }
    }





    /* Stats Section - User swipe */
    .stats-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: var(--space-4);
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: var(--space-4);
        margin-top: var(--space-6);
    }

    .stats-grid::-webkit-scrollbar {
        display: none;
    }

    .stat-card {
        min-width: 75%;
        flex-shrink: 0;
        scroll-snap-align: center;
    }

    /* Mobile Footer Customization */
    .footer {
        padding: var(--space-8) 0 var(--space-6);
        text-align: center;
    }

    .footer-content {
        gap: var(--space-8);
        text-align: center;
    }

    .footer-logo h3 {
        margin-bottom: var(--space-2);
        justify-content: center;
    }

    .footer-links ul {
        align-items: center;
        gap: var(--space-4);
    }

    .footer-links a {
        padding: var(--space-2);
        display: block;
    }

    .footer-socials {
        justify-content: center;
        margin-top: var(--space-2);
    }

    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        /* Subtle border */
        margin-top: var(--space-6);
        padding-top: var(--space-6);
    }

    .stat-card:hover {
        transform: none;
        box-shadow: none;
        border-color: rgba(255, 255, 255, 0.05);
    }

    /* Portfolio Filters - User swipe */
    .portfolio-filters {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        gap: var(--space-4);
        padding-bottom: var(--space-2);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
    }

    .portfolio-filters::-webkit-scrollbar {
        display: none;
    }

    /* Mobile Footer - Premium "Mind-Blowing" Design */
    .footer {
        padding: var(--space-8) 0 var(--space-6);
        text-align: center;
        background: transparent;
        /* Rely on backdrop */
        position: relative;
        overflow: hidden;
    }

    /* Ambient Glow Background */
    .footer::before {
        content: '';
        position: absolute;
        top: 20%;
        left: 50%;
        transform: translateX(-50%);
        width: 150%;
        height: 100%;
        background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
        pointer-events: none;
        z-index: 0;
    }

    .footer .container {
        position: relative;
        /* Above glow */
        z-index: 1;
    }

    .footer-content {
        gap: var(--space-8);
        text-align: center;
    }

    /* Logo Styling - Shimmer Effect */
    .footer-logo h3 {
        justify-content: center;
        margin-bottom: var(--space-2);
        font-size: 2.5rem;
        /* Larger on mobile for impact */
        background: linear-gradient(to right, #fff, #ffd700, #fff);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        background-size: 200% auto;
        animation: shimmer 5s linear infinite;
    }

    /* Links - Mobile App Grid Layout ("Control Center" Style) */
    .footer-links {
        padding: var(--space-4) var(--space-4);
        width: 100%;
    }

    .footer-links ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 2 Column Grid */
        gap: var(--space-4);
        width: 100%;
        padding: 0;
        animation: none;
        /* Reset animation */
    }

    .footer-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1.5rem 1rem;
        /* Large touch area */
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-lg);
        /* Boxy rounded corners */
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-primary);
        white-space: normal;
        text-align: center;
        transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }

    .footer-links a:active {
        transform: scale(0.96);
        background: rgba(255, 215, 0, 0.1);
        border-color: var(--gold);
        color: var(--gold);
    }

    /* Socials - Neon Glow */
    .footer-socials {
        justify-content: center;
        margin-top: var(--space-4);
        gap: var(--space-5);
    }

    .footer-socials a {
        width: 50px;
        height: 50px;
        background: rgba(15, 23, 42, 0.8);
        border: 1px solid rgba(255, 215, 0, 0.2);
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.05);
        border-radius: 50%;
        /* Circle looks better */
    }

    .footer-socials a:hover,
    .footer-socials a:active {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
        transform: translateY(-5px) scale(1.1);
        background: var(--gold);
        color: var(--dark-900);
        border-color: var(--gold);
    }

    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        margin-top: var(--space-8);
        padding-top: var(--space-6);
        font-size: 0.85rem;
        opacity: 0.7;
    }

    /* Shimmer Animation */
    @keyframes shimmer {
        to {
            background-position: 200% center;
        }
    }
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.social-svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
    display: block;
}


/* Notification Toast */
.notification-toast {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-800);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: top 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.notification-toast.show {
    top: 2rem;
}

.notification-toast.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    backdrop-filter: blur(10px);
}

.notification-toast.success {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    backdrop-filter: blur(10px);
}

.notification-toast i {
    font-size: 1.25rem;
}

.notification-toast.error i {
    color: #ef4444;
}

.notification-toast.success i {
    color: #10b981;
}