/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #fe4807;
    --primary-hover: #fe4807;
    --secondary-color: #6c07e0;
    --bg-dark: #090416;
    --bg-darker: #030107;
    --bg-card: #090416;
    --bg-card-hover: #090416;
    --text-white: #ffffff;
    --text-gray: #888888;
    --text-light: #cccccc;
    --border-color: #222222;
    --border-primary: #6c07e0;
    --gradient-primary: linear-gradient(135deg, #6c07e0 0%, #fe4807 100%);
    --gradient-colors: linear-gradient(90deg, #6c07e0, #fe4807);
    /* --gradient-primary: conic-gradient(from 0deg, #6c07e0 0%, #62E5B1 25%, #FFD112 50%, #e909ad 75%, #6c07e0 100%); */
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(78, 63, 211, 0.3);
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
    --font-family: "Poppins", sans-serif;
}

body.light-mode {
    --primary-color: #fe4807;
    --secondary-color: #6c07e0;
    --bg-dark: #fff9f5; /* Warm Orange/Peach Tint */
    --bg-darker: #fffdfc;
    --text-white: #0f172a; /* Deep Indigo/Slate */
    --text-gray: #475569;
    --text-light: #64748b;
    --border-color: rgba(254, 72, 7, 0.08); /* Hint of orange in borders */
    --bg-card: #fffbf7;
    --bg-card-hover: #ffffff;
    --shadow-lg: 0 20px 40px -15px rgba(255, 140, 0, 0.08);
    --shadow-glow: 0 0 40px rgba(254, 72, 7, 0.1);
}

body {
    transition:
        background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Theme Transition Overlay */
.theme-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: var(--bg-darker);
    clip-path: circle(0% at center);
    transition: clip-path 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-transition-overlay.active {
    clip-path: circle(150% at center);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* Bootstrap Overrides - Prevent conflicts */
.header .nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0;
    margin: 0;
}

.header .nav-menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header .nav-menu li {
    margin: 0;
    padding: 0;
}

.header .nav-link {
    display: inline-block;
    padding: 8px 0;
    color: var(--text-gray);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    background: none;
    border: none;
}

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

.header .btn {
    padding: 12px 35px;
}

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

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

input,
textarea {
    font-family: inherit;
    outline: none;
    border: none;
}

/* ===== REUSABLE CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

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

.section-subtitle {
    color: var(--text-gray);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
    margin-top: 20px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px; /* Pill shape */
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    position: relative;
    z-index: 1;
    border: none;
    padding: 12px 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(78, 63, 211, 0.2);
}

.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    z-index: -2;
    border-radius: 50px;
}

.btn-primary::after {
    content: "";
    position: absolute;
    inset: 1.5px;
    background: #0d061f; /* Deep purple background inside button */
    border-radius: 50px;
    z-index: -1;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(167, 98, 247, 0.4),
        0 0 40px rgba(230, 84, 191, 0.2);
}

.btn-primary:hover::after {
    background: #11082d; /* Slightly lighter deep purple on hover */
}

@keyframes rotate360 {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.btn-outline {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 12px 38px;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    z-index: -2;
    border-radius: 50px;
}

.btn-outline::after {
    content: "";
    position: absolute;
    inset: 1.5px;
    background: #0d061f;
    border-radius: 50px;
    z-index: -1;
    transition: var(--transition);
}

.btn-outline:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(167, 98, 247, 0.4),
        0 0 40px rgba(230, 84, 191, 0.2);
}

.btn-outline:hover::after {
    background: #11082d;
}
/* Background Mesh Gradient Blobs */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.25;
    transition: opacity 0.8s ease;
}

body.light-mode .bg-blobs {
    background:
        radial-gradient(at 0% 0%, #fef2f2 0px, transparent 45%),
        radial-gradient(at 100% 0%, #eef2ff 0px, transparent 45%),
        radial-gradient(at 50% 50%, #fff7ed 0px, transparent 65%),
        radial-gradient(at 10% 90%, #f0fdf4 0px, transparent 45%),
        radial-gradient(at 90% 90%, #f5f3ff 0px, transparent 45%);
    background-color: #ffffff;
    opacity: 0.9;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--primary-color);
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.2;
}

.blob-1 {
    top: -100px;
    left: -100px;
    background: #6c07e0;
    animation: blobFloat 20s infinite alternate;
}

.blob-2 {
    bottom: -100px;
    right: -100px;
    background: #e909ad;
    animation: blobFloat 25s infinite alternate-reverse;
}

.blob-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #6c07e0;
    width: 600px;
    height: 600px;
    animation: blobFloat 30s infinite alternate;
    opacity: 0.15;
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(100px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 100px) scale(0.9);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

.btn-full {
    width: 100%;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(5, 5, 5, 0.7);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

body.light-mode .header {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-mode .header.scrolled {
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

body.light-mode .btn-primary::after,
body.light-mode .btn-outline::after {
    background: #ffffff;
}

body.light-mode .btn-primary:hover::after,
body.light-mode .btn-outline:hover::after {
    background: #fcfcff;
}

body.light-mode .social-icon {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-gray);
    position: relative;
    padding: 5px 0;
}

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

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

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

.nav-cta {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.nav-toggle {
    display: none;
    background: transparent;
    color: var(--text-white);
    font-size: 1.5rem;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(78, 63, 211, 0.1) 0%,
        transparent 70%
    );
    transform: translateY(-50%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-title-overlap {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.hero-title-bg {
    position: absolute;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    z-index: 0;
    text-transform: uppercase;
    letter-spacing: 10px;
    pointer-events: none;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    z-index: 1;
    background: var(--gradient-colors);
    background-size: 400% 400%;
    animation: gradientMove 8s ease infinite;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.hero-text {
    background: #ffd8bd00;
    padding: 1.5rem 3rem;
    border-radius: 0.5rem;
    /* backdrop-filter: blur(5px); */
}

.hero-subtitle {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 25px;
    background: var(--gradient-colors);
    background-size: 600% 600%;
    animation: gradientMove 6s ease infinite;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-socials {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
    align-items: center;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-gray);
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
    background: rgba(108, 7, 224, 0.1); /* Subtle primary color glow */
    border-color: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Specific Social Brand Colors on Hover (Border & Icon) */
.social-icon:hover:has(.fa-linkedin-in) {
    border-color: #0077b5;
    box-shadow: 0 10px 20px rgba(0, 119, 181, 0.2);
}
.social-icon:hover:has(.fa-linkedin-in) .fa-linkedin-in {
    color: #0077b5;
}

.social-icon:hover:has(.fa-github) {
    border-color: #ffffff;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}
.social-icon:hover:has(.fa-github) .fa-github {
    color: #ffffff;
}

.social-icon:hover:has(.fa-twitter) {
    border-color: #1da1f2;
    box-shadow: 0 10px 20px rgba(29, 161, 242, 0.2);
}
.social-icon:hover:has(.fa-twitter) .fa-twitter {
    color: #1da1f2;
}

.social-icon:hover:has(.fa-instagram) {
    border-color: #e4405f;
    box-shadow: 0 10px 20px rgba(228, 64, 95, 0.2);
}
.social-icon:hover:has(.fa-instagram) .fa-instagram {
    color: #e4405f;
}

/* Light mode adjustments for brand colors */
body.light-mode .social-icon:hover:has(.fa-github) {
    border-color: #111111;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
body.light-mode .social-icon:hover:has(.fa-github) .fa-github {
    color: #111111;
}

body.light-mode .social-icon:hover {
    background: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    /* background:var(--gradient-colors);
    background-size: 600% 600%;
    animation: gradientMove 6s ease infinite;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; */
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.85rem;
}

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

.hero-image-wrapper {
    position: relative;
    width: 450px;
    height: 500px;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 20px;
    filter: grayscale(100%);
    transition: var(--transition);
}

.hero-image-wrapper:hover img {
    filter: grayscale(50%);
}

.hero-image-glow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100px;
    background: radial-gradient(
        ellipse,
        rgba(78, 63, 211, 0.4) 0%,
        transparent 70%
    );
    filter: blur(20px);
    pointer-events: none;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 100px 0;
    background: var(--bg-darker);
}

.services-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

body.light-mode .service-card-modern {
    background: rgba(
        255,
        255,
        255,
        0.65
    ); /* Slightly more opaque for better definition */
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(0, 0, 0, 0.08); /* More defined border */
    box-shadow:
        0 15px 45px -10px rgba(0, 0, 0, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* Service Card Hover Colors (Light Mode) - Apple Style */
body.light-mode .service-card-modern:nth-child(1):hover {
    background: rgba(255, 193, 7, 0.05);
    border-color: rgba(255, 193, 7, 0.3);
}
body.light-mode .service-card-modern:nth-child(2):hover {
    background: rgba(78, 63, 211, 0.05);
    border-color: rgba(78, 63, 211, 0.3);
}
body.light-mode .service-card-modern:nth-child(3):hover {
    background: rgba(33, 150, 243, 0.05);
    border-color: rgba(33, 150, 243, 0.3);
}
body.light-mode .service-card-modern:nth-child(4):hover {
    background: rgba(156, 39, 176, 0.05);
    border-color: rgba(156, 39, 176, 0.3);
}
body.light-mode .service-card-modern:nth-child(5):hover {
    background: rgba(76, 175, 80, 0.05);
    border-color: rgba(76, 175, 80, 0.3);
}
body.light-mode .service-card-modern:nth-child(6):hover {
    background: rgba(0, 188, 212, 0.05);
    border-color: rgba(0, 188, 212, 0.3);
}

.service-card-modern {
    background: rgba(15, 10, 30, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    transition:
        transform 0.1s ease-out,
        box-shadow 0.4s ease; /* Faster transform for tracking */
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    will-change: transform;
}

.service-card-modern:hover {
    transform: translateY(-5px);
    background: rgba(25, 15, 50, 0.6);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

/* Individual Card Hover Colors based on Icon Box */
.service-card-modern:nth-child(1):hover {
    background: rgba(255, 193, 7, 0.1);
}
.service-card-modern:nth-child(2):hover {
    background: rgba(78, 63, 211, 0.1);
}
.service-card-modern:nth-child(3):hover {
    background: rgba(33, 150, 243, 0.1);
}
.service-card-modern:nth-child(4):hover {
    background: rgba(156, 39, 176, 0.1);
}
.service-card-modern:nth-child(5):hover {
    background: rgba(76, 175, 80, 0.1);
}
.service-card-modern:nth-child(6):hover {
    background: rgba(0, 188, 212, 0.1);
}

.service-icon-box {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.4s ease;
}

.service-info {
    flex: 1;
}

.service-card-modern:hover .service-icon-box {
    transform: scale(1.1);
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 100px 0;
    background: var(--bg-dark);
}

.contact-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
    filter: blur(15px); /* Softens the circle edges */
}

.orb-1 {
    width: 160px; /* Reduced to half */
    height: 160px; /* Reduced to half */
    background: radial-gradient(circle, #7e57c2 0%, #5e35b1 100%);
    box-shadow: 0 0 150px 40px rgba(94, 53, 177, 0.8); /* Intense glow */
    top: 15%; /* Adjusted for contact section */
    left: 10%;
    animation: orbFloat 7s infinite alternate ease-in-out; /* Faster: 10s to 7s */
}

.orb-2 {
    width: 140px; /* Reduced to half */
    height: 140px; /* Reduced to half */
    background: radial-gradient(circle, #f06292 0%, #d81b60 100%);
    box-shadow: 0 0 150px 40px rgba(216, 27, 96, 0.8); /* Intense glow */
    bottom: 15%;
    right: 10%;
    animation: orbFloatReverse 8s infinite alternate ease-in-out; /* Faster: 12s to 8s */
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, 40px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 60px) scale(0.95);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes orbFloatReverse {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-40px, -50px) scale(1.1);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

.contact .container {
    position: relative;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.about-image-wrapper img {
    width: 100%;
    border-radius: 20px;
    filter: grayscale(100%);
    transition: var(--transition);
}

.about-image-wrapper:hover img {
    filter: grayscale(50%);
}

.about-image-border {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    z-index: -1;
}

.about-text p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.name-gradient {
    background: var(--gradient-colors);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    animation: textGradient 3s linear infinite;
}

@keyframes textGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.about-text .btn {
    display: inline-flex;
    margin-top: 15px;
    padding: 8px 24px; /* Smaller padding */
    font-size: 0.9rem;
    width: auto; /* Ensure it doesn't stretch */
}

/* ===== SKILLS SECTION ===== */
.skills-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-width: 150px;
}

.skill-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: var(--transition);
}

.skill-icon i {
    font-size: 2rem;
    color: var(--text-white);
}

.skill-icon img {
    width: 35px;
    height: 35px;
}

.skill-item:hover .skill-icon {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Individual Brand Colors on Hover */
.skill-item:hover .skill-icon i.fa-angular {
    color: #dd0031;
    text-shadow: 0 0 15px rgba(221, 0, 49, 0.3);
}
.skill-item:hover .skill-icon i.fa-vuejs {
    color: #4fc08d;
    text-shadow: 0 0 15px rgba(79, 192, 141, 0.3);
}
.skill-item:hover .skill-icon i.fa-laravel {
    color: #ff2d20;
    text-shadow: 0 0 15px rgba(255, 45, 32, 0.3);
}
.skill-item:hover .skill-icon i.fa-php {
    color: #777bb4;
    text-shadow: 0 0 15px rgba(119, 123, 180, 0.3);
}
.skill-item:hover .skill-icon i.fa-mysql {
    color: #4479a1;
    text-shadow: 0 0 15px rgba(68, 121, 161, 0.3);
}
.skill-item:hover .skill-icon i.fa-js {
    color: #f7df1e;
    text-shadow: 0 0 15px rgba(247, 223, 30, 0.3);
}

/* Border color matches brand on hover */
.skill-item:hover .skill-icon:has(i.fa-angular) {
    border-color: #dd0031;
}
.skill-item:hover .skill-icon:has(i.fa-vuejs) {
    border-color: #4fc08d;
}
.skill-item:hover .skill-icon:has(i.fa-laravel) {
    border-color: #ff2d20;
}
.skill-item:hover .skill-icon:has(i.fa-php) {
    border-color: #777bb4;
}
.skill-item:hover .skill-icon:has(img[alt="MySQL"]) {
    border-color: #4479a1;
}
.skill-item:hover .skill-icon:has(i.fa-js) {
    border-color: #f7df1e;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    width: 0;
    transition: width 1.5s ease;
}

.skill-percentage {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.skill-name {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
    padding: 100px 0;
    background: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

.portfolio-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.orb-3 {
    width: 180px; /* Reduced to half */
    height: 180px; /* Reduced to half */
    background: radial-gradient(circle, #26c6da 0%, #00acc1 100%);
    box-shadow: 0 0 150px 40px rgba(0, 172, 193, 0.7); /* Intense glow */
    top: 15%;
    right: 10%;
    animation: orbFloat 10s infinite alternate ease-in-out; /* Faster: 14s to 10s */
}

.orb-4 {
    width: 200px; /* Reduced to half */
    height: 200px; /* Reduced to half */
    background: radial-gradient(circle, #ffa726 0%, #fb8c00 100%);
    box-shadow: 0 0 150px 40px rgba(251, 140, 0, 0.7); /* Intense glow */
    bottom: 10%;
    left: 10%;
    animation: orbFloatReverse 12s infinite alternate ease-in-out; /* Faster: 16s to 12s */
}

.portfolio .container {
    position: relative;
    z-index: 1;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 12px 28px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-gray);
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    /* border-color: var(--primary-color); */
    color: var(--text-white);
}

/* Portfolio Slider */
.portfolio-slider-wrapper {
    position: relative;
    padding: 0 50px;
}

.portfolio-swiper {
    overflow: hidden;
    padding-bottom: 60px;
}

.portfolio-swiper .swiper-slide {
    height: auto;
    transition:
        transform 0.4s ease,
        opacity 0.4s ease;
}

.portfolio-swiper
    .swiper-slide:not(.swiper-slide-active):not(.swiper-slide-next):not(
        .swiper-slide-prev
    ) {
    opacity: 0.5;
    transform: scale(0.92);
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 3/4;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.portfolio-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.portfolio-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: var(--transition);
}
.portfolio-logo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(15, 10, 30, 0.95),
        rgba(15, 10, 30, 0.3)
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: #ffffff;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.portfolio-card:hover .portfolio-logo {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

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

.portfolio-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.portfolio-info p {
    color: var(--primary-color);
    font-size: 0.85rem;
}

.portfolio-link {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 50%;
    color: var(--text-white);
    transform: translateY(-20px);
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-link {
    transform: translateY(0);
    opacity: 1;
}

/* Slider Navigation */
.portfolio-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    padding: 0 5px;
}

.portfolio-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    transition: var(--transition);
}

.portfolio-nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(254, 72, 7, 0.4);
}

/* Slider Pagination */
.portfolio-pagination {
    bottom: 0 !important;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.portfolio-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    opacity: 1;
    transition: var(--transition);
}

.portfolio-pagination .swiper-pagination-bullet-active {
    background: var(--primary-color);
    width: 30px;
}

/* Light mode adjustments */
body.light-mode .portfolio-card {
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.5);
}

body.light-mode .portfolio-nav-btn {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.light-mode .portfolio-pagination .swiper-pagination-bullet {
    background: rgba(0, 0, 0, 0.15);
}

body.light-mode .portfolio-pagination .swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 100px 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 60px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-gray);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(78, 63, 211, 0.1);
}

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

.contact-form .btn-primary {
    margin-top: 30px;
    width: 50%;
}

/* ===== PIXEL-PERFECT MOTHERBOARD FOOTER (FINAL) ===== */
.footer-motherboard-final {
    position: relative;
    padding: 63px 0 39px;
    background: var(--bg-dark);
    overflow: hidden;
    min-height: 550px;
    display: flex;
    align-items: center;
}

.pcb-svg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* Subtle radial fade from all edges to center */
    -webkit-mask-image: radial-gradient(
        ellipse 80% 80% at 50% 50%,
        rgba(0, 0, 0, 1) 40%,
        rgba(0, 0, 0, 0.6) 70%,
        rgba(0, 0, 0, 0.2) 100%
    );
    mask-image: radial-gradient(
        ellipse 80% 80% at 50% 50%,
        rgba(0, 0, 0, 1) 40%,
        rgba(0, 0, 0, 0.6) 70%,
        rgba(0, 0, 0, 0.2) 100%
    );
}

.pcb-svg-root {
    width: 100%;
    height: 100%;
    opacity: 0.9;
}

/* Clean PCB Styling */
.pcb-trace {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 1.2;
    stroke-linecap: round;
    opacity: 0.1; /* Very subtle traces */
}

/* Ultra-Fast/* High-Fidelity Circuit Replication Styling */
.pcb-trace-fidelity {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.2;
}

.pcb-node-fidelity {
    fill: var(--primary-color);
    filter: drop-shadow(0 0 5px var(--primary-color));
    opacity: 0.6;
}

.pcb-pulse-fidelity {
    fill: none;
    stroke: #fff;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 20, 150;
    stroke-dashoffset: 200;
    filter: drop-shadow(0 0 8px var(--primary-color));
    animation: electricFlowFidelity 2s linear infinite;
    opacity: 0.8;
}

@keyframes electricFlowFidelity {
    to {
        stroke-dashoffset: 0;
    }
}

/* Fast Electron Pulse for vertical lines */
.pcb-pulse-electron {
    fill: none;
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray:
        20, 300; /* Increased gap from 100 to 300 for less frequent pulses */
    stroke-dashoffset: 320;
    filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 12px var(--primary-color));
    animation: electronFlowFast 1.2s linear infinite; /* Increased duration for slower re-entry */
    opacity: 1;
}

@keyframes electronFlowFast {
    to {
        stroke-dashoffset: 0;
    }
}

.pcb-trace-fidelity {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.4; /* Increased visibility */
}

/* Ultra-Fast Electron Pulse Animation */
.pcb-pulse {
    fill: none;
    stroke: #fff;
    stroke-width: 1.2; /* Very fine charge */
    stroke-linecap: round;
    stroke-dasharray: 15, 150;
    stroke-dashoffset: 165;
    filter: drop-shadow(0 0 3px #fff);
    animation: electronFlow 0.8s linear infinite; /* High speed energy */
    opacity: 0.5;
}

@keyframes electronFlow {
    to {
        stroke-dashoffset: 0;
    }
}

.pcb-node {
    fill: var(--primary-color);
    filter: drop-shadow(0 0 2px rgba(78, 63, 211, 0.8));
    opacity: 0.2;
}

/* Ultra-Miniature Rotating Border Social Icons */
.glass-orb {
    width: 45px; /* Improved scale */
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem; /* More legible icons */
    position: relative;
    text-decoration: none;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    backdrop-filter: blur(4px);
    transition: all 0.4s ease;
    z-index: 1;
    overflow: hidden;
}

.glass-orb::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        transparent,
        transparent,
        var(--primary-color)
    );
    animation: rotate360 3s linear infinite; /* Slower, smoother rotation */
    z-index: -2;
}

.glass-orb::after {
    content: "";
    position: absolute;
    inset: 1px;
    background: #000;
    border-radius: 50%;
    z-index: -1;
}

@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.glass-orb:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(78, 63, 211, 0.4);
}

.glass-orb i {
    z-index: 2;
}

.pcb-copyright {
    padding-top: 25px;
    border-top: 1px solid rgba(78, 63, 211, 0.05);
}

.pcb-copyright p {
    color: var(--text-white);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.pcb-copyright span {
    color: var(--primary-color);
}

/* Responsive Scaling */
@media (max-width: 1200px) {
    .stencil-text {
        font-size: 6rem;
        letter-spacing: 15px;
    }
    .pcb-link.policy {
        left: 50px;
    }
    .pcb-link.terms {
        right: 300px;
    }
    .pcb-link.contact {
        right: 50px;
    }
}

@media (max-width: 768px) {
    .pcb-floating-links {
        display: none;
    }
    .stencil-text {
        font-size: 4rem;
        letter-spacing: 10px;
    }
    .glass-orb {
        width: 65px;
        height: 65px;
        font-size: 1.4rem;
    }
    .footer-motherboard-final {
        padding: 100px 0 40px;
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* CPU High-Fidelity Grid & Border */
.cpu-socket-fidelity {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 60px auto 0px;
    width: 350px;
    height: 350px;
    position: relative;
}

.cpu-core-fidelity {
    position: relative;
    width: 280px;
    height: 280px;
    background: #050505; /* Deep black to match theme */
    border: 3px solid var(--primary-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 50px rgba(78, 63, 211, 0.2),
        inset 0 0 30px rgba(78, 63, 211, 0.1);
    overflow: hidden;
}

/* Intense Backlight Behind CPU */
.cpu-core-fidelity::before {
    content: "";
    position: absolute;
    inset: -20px;
    background: radial-gradient(
        circle,
        rgba(78, 63, 211, 0.2) 0%,
        transparent 70%
    );
    filter: blur(20px);
    z-index: -1;
}

/* The Capacitor/Pin Grid */
.cpu-grid-fidelity {
    position: absolute;
    inset: 10px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 4px;
    padding: 10px;
}

.cpu-pin-fidelity {
    background: var(--gradient-orange);
    border-radius: 1px;
    box-shadow: 0 0 5px rgba(255, 107, 0, 0.6);
    animation: pinPulse 2.5s ease-in-out infinite;
    opacity: 0.3;
}

/* Staggered animation delays for the grid pins */
.cpu-pin-fidelity:nth-child(3n) {
    animation-delay: 0.2s;
}
.cpu-pin-fidelity:nth-child(3n + 1) {
    animation-delay: 0.5s;
}
.cpu-pin-fidelity:nth-child(3n + 2) {
    animation-delay: 0.8s;
}
.cpu-pin-fidelity:nth-child(5n) {
    animation-delay: 1.1s;
}
.cpu-pin-fidelity:nth-child(7n) {
    animation-delay: 1.4s;
}

@keyframes pinPulse {
    0%,
    100% {
        opacity: 0.2;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
        box-shadow: 0 0 10px var(--primary-color);
    }
}

/* Center Branding */
.cpu-center-fidelity {
    position: relative;
    z-index: 10;
    padding: 0px;
    background: #050505;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 25px rgba(255, 107, 0, 0.4);
}

.cpu-text-fidelity {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    letter-spacing: 5px;
    text-shadow: 0 0 20px var(--primary-color);
}

.cpu-neon-border {
    position: absolute;
    inset: -5px;
    border: 1px solid rgba(255, 107, 0, 0.5);
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%,
    100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 15px var(--primary-color);
    }
}

.pcb-scanlines {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.3) 50%
    );
    background-size: 100% 4px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.1;
}

.cpu-subtext {
    font-size: 0.6rem;
    color: var(--primary-color);
    letter-spacing: 4px;
    margin-top: -10px;
    font-weight: 700;
    text-align: center;
    opacity: 0.8;
}

.glass-orb-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 70px;
    width: 100%;
}
/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-socials,
    .hero-buttons,
    .hero-stats {
        justify-content: center;
    }

    .hero-image-wrapper {
        width: 350px;
        height: 400px;
    }

    .services-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .portfolio-slider-wrapper {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    body.nav-open {
        overflow: hidden;
    }

    .header .nav-menu,
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-darker);
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 28px 24px 40px;
        gap: 18px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: var(--transition);
    }

    .header .nav-menu li,
    .nav-menu li {
        width: 100%;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-item {
        text-align: center;
    }

    .hero-image-wrapper {
        width: 280px;
        height: 320px;
    }

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

    .services-grid-modern {
        grid-template-columns: 1fr;
    }

    .service-card-modern {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .skills-section {
        gap: 30px;
    }

    .skill-item {
        min-width: 100px;
    }

    .portfolio-slider-wrapper {
        padding: 0 15px;
    }

    .portfolio-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

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

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

    .hero-buttons .btn {
        width: 100%;
    }

    .portfolio-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border-radius: 50%;
    z-index: 1000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:not(.active) {
    transform: translateY(20px);
}

.scroll-top:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.scroll-top i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.scroll-top:hover i {
    color: var(--text-white);
}

.progress-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.progress-circle path {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 4;
    stroke-linecap: round;
    transition: all 0.4s ease;
    stroke-dasharray: 307.919;
    stroke-dashoffset: 307.919;
}

@media (max-width: 768px) {
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
