/* =========================================
   VARIABLES & THEME
   ========================================= */
   :root {
    --bg-color: #0b0d17;
    --surface-color: rgba(30, 41, 59, 0.7);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --primary-color: #3b82f6;
    --accent-color: #8b5cf6;
    --primary-gradient: linear-gradient(135deg, #2563eb, #7c3aed);
    --shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    --shadow-hover: 0 20px 40px -15px rgba(59, 130, 246, 0.3);

    /* Hero Mesh Gradient - Dark */
    --hero-gradient: radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 35%), 
                     radial-gradient(at 50% 0%, hsla(225,39%,12%,1) 0, transparent 35%), 
                     radial-gradient(at 100% 0%, hsla(339,49%,12%,1) 0, transparent 35%);
}

/* Base Body Improvements */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -10;
    opacity: 0.15;
    pointer-events: none;
    animation: drift 20s infinite alternate-reverse;
}

body::before {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, var(--primary-color), transparent);
}

body::after {
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, var(--accent-color), transparent);
}

@keyframes drift {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(100px, 100px) rotate(30deg); }
}

/* =========================================
   RESET & TYPOGRAPHY
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

html, body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 4rem;
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-title h2 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Neon Button (React Port) */
.btn-neon {
    position: relative;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--primary-color); /* Use primary color for neon text in light mode */
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(59, 130, 246, 0.05);
}

.dark-mode .btn-neon {
    color: white;
}

.btn-neon:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
    color: var(--primary-color);
}

.dark-mode .btn-neon:hover {
    color: white;
}

/* Glowing top and bottom lines */
.btn-neon::before, .btn-neon::after {
    content: '';
    position: absolute;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: all 0.5s ease-in-out;
    z-index: 1;
}

.btn-neon::before {
    top: 0;
    box-shadow: 0 2px 15px 1px var(--primary-color);
}

.btn-neon::after {
    bottom: 0;
    box-shadow: 0 -2px 15px 1px var(--primary-color);
}

.btn-neon:hover::before {
    opacity: 1;
}

.btn-neon:hover::after {
    opacity: 0.4;
}

/* =========================================
   NAVBAR
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(var(--surface-color), 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}
/* Hex to RGB conversion for backdrop */
.dark-mode .header.scrolled {
    background: rgba(30, 41, 59, 0.8);
}
:root .header.scrolled {
    background: rgba(255, 255, 255, 0.8);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary); /* Adapt to theme */
}

.logo span {
    color: var(--primary-color);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary); /* Adapt to theme */
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-btn, .hamburger {
    background: none;
    border: none;
    color: var(--text-primary); /* Adapt to theme */
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.theme-btn:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: stretch; /* Stretch container to full height */
    padding-top: 5rem;
    padding-bottom: 0; /* Remove bottom padding to fit image flush */
    position: relative;
    overflow: visible;
    background: var(--bg-color);
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes morph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
    align-items: center;
    height: 100%;
    overflow: visible;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-content .greeting {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    animation: fadeInRight 0.8s ease forwards;
    opacity: 0;
}

.hero-content .name {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    animation: fadeInRight 0.8s ease forwards 0.2s;
    opacity: 0;
    color: var(--text-primary);
}

.hero-content .profession {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
    animation: fadeInRight 0.8s ease forwards 0.4s;
    opacity: 0;
}

.typing::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--primary-color);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 650px;
    animation: fadeInRight 0.8s ease forwards 0.6s;
    opacity: 0;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease forwards 0.8s;
    opacity: 0;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Push content to bottom */
    align-self: flex-end;   /* Align column to bottom of grid */
    z-index: 5;
    height: 100%;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1s;
    position: relative;
    z-index: 20;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-lbl {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: capitalize;
}

/* Decorative Showcase Layers */
.hero-image-decor {
    position: absolute;
    width: 130%; 
    height: 130%;
    z-index: -5;
    display: flex;
    justify-content: center;
    align-items: center; /* Aura stays centered behind head */
    bottom: -15%; /* Pulled down 30% from original position */
    pointer-events: none;
}

.hero-element {
    position: absolute;
    width: 80%; /* Scaled up by 30% from the previous 60% */
    height: auto;
    opacity: 0.5;
    z-index: -1;
    animation: rotateElement 30s linear infinite;
    filter: blur(2px); /* Soften the decorative element */
}

@keyframes rotateElement {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Concentric Orbital Circles - Xander Style */
.hero-image-decor::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-radial-gradient(
        circle at 50% 50%,
        transparent,
        transparent 80px,
        rgba(59, 130, 246, 0.05) 81px,
        transparent 82px
    );
    opacity: 0.6;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Reverted to flex-end to ground the image */
    z-index: 5;
    height: 100%; /* Ensure it takes full height of the container */
    overflow: visible;
}

.img-box {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 2;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-box img {
    max-width: 80%; /* Final polish size */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.1));
    display: block;
    margin: 0 auto;
    padding: 20px; /* Internal padding to prevent edge cutting */
    animation: heroReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transition: all 0.5s ease;
}

@keyframes breathing {
    0% { transform: translateX(-50%) scale(1); opacity: 0.15; }
    50% { transform: translateX(-50%) scale(1.1); opacity: 0.3; }
    100% { transform: translateX(-50%) scale(1); opacity: 0.15; }
}

.breathing-circle {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.3);
    z-index: 0;
    pointer-events: none;
    animation: breathing 6s ease-in-out infinite;
}

.circle-1 {
    width: 600px;
    height: 600px;
    animation-delay: 0s;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

.circle-2 {
    width: 800px;
    height: 800px;
    animation-delay: 1s;
    border-color: rgba(139, 92, 246, 0.2);
}

.circle-3 {
    width: 1000px;
    height: 1000px;
    animation-delay: 2s;
    border-color: rgba(6, 182, 212, 0.15);
}

.neon-aura {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: conic-gradient(from 0deg, #3b82f6, #8b5cf6, #06b6d4, #3b82f6);
    filter: blur(100px);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.4;
    animation: rotateNeon 10s linear infinite, pulseNeon 5s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes rotateNeon {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes pulseNeon {
    from { scale: 0.9; opacity: 0.3; }
    to { scale: 1.2; opacity: 0.6; }
}

@keyframes heroReveal {
    0% { opacity: 0; transform: translateY(50px) scale(0.9); filter: blur(10px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.img-box:hover img {
    filter: drop-shadow(0 25px 45px rgba(59, 130, 246, 0.4));
    transform: translateY(-10px);
}

/* =========================================
   SKILLS SECTION
   ========================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.skill-card {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.skill-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
}

.skill-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.skills-category {
    text-align: center;
}

.skills-category h3 {
    margin-bottom: 1rem;
    font-size: 1.6rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.skills-category h3 i {
    color: var(--primary-color);
}

/* =========================================
   ABOUT SECTION ENHANCEMENT
   ========================================= */
.about.section {
    background: #f1f5f9; /* Light slate background */
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    color: #1e293b; /* Dark text for the light section */
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.about.section .section-title h2 {
    color: #0f172a;
}

.about.section .about-text h3 {
    color: #0f172a;
}

.about.section .about-text p {
    color: #475569;
}

.about.section .about-feature-item {
    color: #334155;
}

.about.section .btn-secondary {
    border-color: #cbd5e1;
    color: #334155;
}

.about.section .btn-secondary:hover {
    background: #f8fafc;
}

.about-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: flex-start; /* Align both top edges */
}

.about-img {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 380px; /* Final polished size for About image */
    margin: 0 auto;   /* Center it in its column */
}

.about-img img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.about-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    transform: translate(15px, 15px);
    z-index: -1;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text h3 span {
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.about-feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--surface-color);
    padding: 3rem 2rem;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    text-align: center;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    font-size: 2rem;
    border-radius: 50%;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: var(--primary-gradient);
    color: white;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* =========================================
   PORTFOLIO SECTION
   ========================================= */
.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.portfolio-item {
    background: var(--surface-color);
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.portfolio-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-overlay i {
    color: white;
    font-size: 2rem;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.video-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.03); /* Reduced from 1.1 */
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-overlay i {
    transform: scale(1);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info span {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-info h4 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.portfolio-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-item a {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item a:hover i {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.social-links a:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

.contact-form {
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-primary);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.contact-form input {
    margin-bottom: 1.5rem;
}

.contact-form textarea {
    resize: vertical;
    margin-bottom: 1.5rem;
}

.submit-btn {
    width: 100%;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* =========================================
   CLIENTS TICKER
   ========================================= */
.clients-ticker-wrapper {
    margin-top: 0;
    padding: 3rem 1.5rem;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    position: relative;
}

.clients-ticker-wrapper::before,
.clients-ticker-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.clients-ticker-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(11, 13, 23, 0.8), transparent);
}

.clients-ticker-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(11, 13, 23, 0.8), transparent);
}

.clients-ticker {
    display: flex;
    align-items: center;
    width: 100%;
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 5rem;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.client-logo {
    flex: 0 0 auto;
    width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(1) opacity(0.7);
}

.client-logo:hover {
    transform: scale(1.1);
    filter: grayscale(0) opacity(1);
}

.client-logo img {
    max-width: 100%;
    max-height: 65px;
    object-fit: contain;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% / 3)); }
}

@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 991px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-container {
        display: flex;
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .hero-image {
        margin-top: 0;
        margin-bottom: 2rem;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .hero-stats {
        justify-content: center;
        margin-top: 2rem;
        gap: 1.5rem;
    }

    .stat-val {
        font-size: 1.5rem;
    }

    .floating-badges {
        display: none; /* Hide badges on tablet/mobile to avoid clutter */
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-desc {
        margin: 0 auto 2.5rem;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .contact-container {
        display: flex;
        flex-direction: column-reverse;
        gap: 3rem;
    }
    
    .contact-form {
        padding: 2rem;
    }

    .contact-info {
        margin-top: 1rem;
    }

    .about.section {
        padding: 60px 0;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .about-img {
        max-width: 250px;
        margin: 0 auto;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: left;
        max-width: 300px;
        margin: 0 auto 2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .skill-card {
        padding: 1rem 0.5rem;
        gap: 0.5rem;
    }

    .skill-name {
        font-size: 0.8rem;
    }
    
    .skill-icon {
        font-size: 2.5rem;
    }

    .skill-icon img {
        width: 45px !important;
        height: 45px !important;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

@media (max-width: 991px) {
    .hero-btns {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--surface-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .name {
        font-size: 2.8rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat-item {
        flex: 1 1 100px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Fix to maintain original ratio on mobile and avoid cropping */
    .portfolio-img {
        height: auto;
    }

    .portfolio-img img {
        height: auto;
        object-fit: contain;
    }

    .img-box {
        width: 100%;
        max-width: 500px;
        height: auto;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        overflow: visible;
    }

    .img-box img {
        max-height: none;
        width: 100%;
        max-width: 100%;
        object-fit: contain;
        padding: 0; /* Remove safety padding on mobile to maximize size */
    }

    .breathing-circle {
        bottom: 10%;
    }

    .circle-1 { width: 250px; height: 250px; }
    .circle-2 { width: 350px; height: 350px; }
    .circle-3 { width: 450px; height: 450px; }

    .neon-aura {
        width: 250px;
        height: 250px;
        bottom: 25%;
    }

    .input-group {
        grid-template-columns: 1fr;
    }

    .clients-ticker-wrapper {
        margin-top: 0;
        padding: 1rem;
    }

    .ticker-track {
        gap: 2rem;
    }

    .client-logo {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2.2rem;
    }
    
    .hero-content .greeting {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 0.8rem;
    }
    
    .stat-val {
        font-size: 1.3rem;
    }
}
