/* CSS Variables & Theme */
:root {
    /* Colors - Red/Black/Gray Palette */
    --bg-body: #050505;
    --bg-surface: #121212;
    --bg-surface-hover: #1a1a1a;

    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --text-accent: #ff2a2a;
    /* Bright Red */

    --primary: #ff2a2a;
    --secondary: #222226;

    --accent-gradient: linear-gradient(135deg, #ff2a2a 0%, #d91818 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --container-width: 1240px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-full: 999px;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-body);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo .dot {
    color: var(--text-accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn-nav) {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:not(.btn-nav):hover {
    color: var(--text-main);
}

.btn-nav {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-body);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    font-size: 1.25rem;
    font-weight: 500;
}

/* Hero Section */
.hero {
    padding-top: var(--header-height);
    padding-bottom: 2rem;
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    cursor: none;
    /* Hide default cursor in hero */
}

/* Modern Cursor Effect */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-main);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-main);
    /* White outline by default */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: invert(1);
    /* Cool inversion effect */
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
}

/* Bold Background Text */
.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    z-index: 0;
    pointer-events: none;
    line-height: 0.85;
}

.hero-bg-text span {
    font-size: 18vw;
    font-weight: 900;
    color: var(--text-accent);
    opacity: 0.15;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: -0.05em;
    display: block;
}



.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    /* Top, Mid (Space), Bottom */
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 5;
    padding-bottom: 3rem;
    padding-top: 2rem;
}

/* Image - Centered & Bottom */
.hero-image-container {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

/* Image Wrapper */
.image-wrapper-cutout {
    position: relative;
    bottom: -5vh;
    /* Push down slightly */
    width: 100%;
    display: flex;
    justify-content: center;
}

.profile-img-cutout {
    height: 85vh;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 50px rgba(0, 0, 0, 0.8));
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* Top Right: Name & Title */
.hero-content-top-right {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    z-index: 6;
    margin-top: 4rem;
    margin-right: -2rem;
    /* Push slightly right */
    /* Spacing from header */
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 42, 42, 0.1);
    color: var(--text-accent);
    border: 1px solid rgba(255, 42, 42, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

/* Bottom Left: Description */
.hero-content-bottom-left {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    display: flex;
    align-items: flex-end;
    z-index: 6;
    max-width: 400px;
    margin-left: -2rem;
    /* Push slightly left */
}

.hero-subtext {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: -2.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--primary);
    backdrop-filter: blur(5px);
}

/* Bottom Right: Buttons */
.hero-content-bottom-right {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    z-index: 6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.image-wrapper {
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--bg-surface);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-wrapper:hover .profile-img {
    transform: scale(1.05);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: calc(var(--header-height) + 2rem);
        padding-bottom: 4rem;
        display: block;
        cursor: default;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        height: auto;
        padding-bottom: 0;
        gap: 2rem;
    }

    .hero-bg-text {
        top: 15%;
        width: 100%;
        left: 0;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: 0;
    }

    .hero-bg-text span {
        font-size: 13vw !important;
        letter-spacing: -0.06em !important;
        opacity: 0.12;
        width: 100%;
        text-align: center;
        white-space: nowrap;
        display: block;
    }

    .hero-image-container {
        order: 2;
        position: relative;
        margin-top: -2rem;
        margin-bottom: -2rem;
    }

    .profile-img-cutout {
        height: 60vh;
        max-height: 500px;
    }

    .hero-content-top-right {
        order: 1;
        align-items: center;
        text-align: center;
        margin: 0;
        grid-column: auto;
        grid-row: auto;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-content-bottom-left {
        order: 3;
        align-items: center;
        margin: 0;
        max-width: 100%;
        grid-column: auto;
        grid-row: auto;
    }

    .hero-subtext {
        margin: 0;
        text-align: center;
        border-left: none;
        border-top: 2px solid var(--primary);
        padding: 1rem;
    }

    .hero-content-bottom-right {
        order: 4;
        justify-content: center;
        margin-top: 2rem;
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        display: flex;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .profile-img-cutout {
        height: 50vh;
    }
}

/* Sections Common */
.section {
    padding: var(--spacing-xl) 0;
}

.bg-surface {
    background-color: var(--bg-surface);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.text-center {
    text-align: center;
    width: 100%;
    /* Ensure centering works in grid/flex context if needed */
    display: block;
    /* Ensure block level */
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-visual {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 400px;
    background: var(--bg-surface);
}

.about-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.visual-card {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.display-icon {
    font-size: 2rem;
    color: var(--text-accent);
}

.visual-card span {
    font-weight: 600;
    font-size: 1.1rem;
}

.about-bio {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-bio strong {
    color: var(--text-main);
    font-weight: 600;
}

.stats-grid {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.skill-card {
    background: var(--bg-body);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 42, 42, 0.4);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 42, 42, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-accent);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.skill-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.logo-item:hover {
    background: rgba(255, 42, 42, 0.1);
    border-color: var(--text-accent);
}

.logo-item i {
    font-size: 1.5rem;
    color: var(--text-main);
}

.logo-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.logo-item:hover span {
    color: var(--text-main);
}

/* Services Section */
.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-item {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.service-item:hover {
    background: var(--bg-surface-hover);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--text-accent);
    margin-bottom: 1.5rem;
    display: block;
}

.service-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Responsive Content */
@media (max-width: 968px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .about-visual {
        height: 300px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* Works Section */
.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--bg-body);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.btn-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--bg-body);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.btn-icon:hover {
    transform: scale(1.1);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tags span {
    font-size: 0.75rem;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--text-muted);
}

@media (max-width: 968px) {
    .testimonial-card {
        padding: 1.5rem;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-content-top-right,
    .hero-content-bottom-left,
    .hero-content-bottom-right {
        grid-column: auto;
        grid-row: auto;
        align-items: center;
        text-align: center;
        width: 100%;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    .hero-content-top-right {
        order: 2;
        margin-top: 0;
    }

    .hero-content-bottom-left {
        order: 3;
        justify-content: center;
    }

    .hero-content-bottom-right {
        order: 4;
        justify-content: center;
    }

    .hero-image-container {
        order: 1;
        position: relative;
        height: 40vh;
        margin-bottom: 2rem;
    }

    .hero {
        cursor: auto;
        /* Restore cursor on touch devices */
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
        /* Hide custom cursor on mobile */
    }

    .profile-img-cutout {
        height: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-bg-text span {
        font-size: 25vw;
    }
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.quote-icon {
    font-size: 2rem;
    color: var(--text-accent);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--text-muted);
}

.client-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.client-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

/* Left Column: Info */
.contact-header {
    margin-bottom: 2rem;
}

.contact-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 42, 42, 0.1);
    color: var(--text-accent);
    border: 1px solid rgba(255, 42, 42, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 90%;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
    border-color: rgba(255, 42, 42, 0.3);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 42, 42, 0.1);
    color: var(--text-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    background: var(--primary);
    color: var(--bg-body);
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-text label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-text span {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-main);
}

/* Socials in Contact */
.contact-socials h4 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 600;
}

.social-links-row {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--primary);
    color: var(--bg-body);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* Right Column: Form */
.contact-form-wrapper {
    position: relative;
    padding: 1rem;
    /* Space for glow */
}

.contact-form-panel {
    padding: 3rem;
    background: rgba(20, 20, 24, 0.6);
    /* Slightly darker glass */
    position: relative;
    z-index: 5;
}

.contact-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 42, 42, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

.form-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.25rem;
    pointer-events: none;
    transition: color 0.3s;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px 14px 48px;
    /* Left padding for icon */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-textarea {
    padding-left: 16px;
    /* No icon for textarea usually, or add if preferred */
    min-height: 150px;
    resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 42, 42, 0.1);
}

.form-input:focus+.input-icon,
.input-wrapper:focus-within .input-icon {
    /* Helps if icon is sibling */
    color: var(--text-accent);
}

.btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 600;
    padding: 16px;
    margin-top: 1rem;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: var(--bg-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: color 0.2s;
}

.social-link:hover {
    color: var(--text-main);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Final Sections */
@media (max-width: 968px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* =========================================
   Abstract 12 Months Experience Animation
   ========================================= */
.about-visual {
    /* Override existing if needed or just use this structure */
    position: relative;
    overflow: hidden;
    height: 400px;
    background: radial-gradient(circle at center, #1a1a1e 0%, #050505 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Remove old image if present or hide it */
.about-visual .about-bg-img {
    display: none;
}

.exp-anim-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Core Sun/Star */
.exp-core {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 50px var(--primary), inset 0 0 25px rgba(255, 255, 255, 0.5);
    z-index: 10;
    position: relative;
    animation: corePulse 4s infinite ease-in-out;
}

.exp-core::after {
    content: '12';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: 800;
    font-size: 3rem;
    font-family: var(--font-heading);
}

/* Outer Orbit Ring */
.exp-orbit-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: spinRight 30s linear infinite;
}

.exp-orbit-outer::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: var(--text-muted);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Middle Months Ring */
.exp-months-ring {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 42, 42, 0.2);
    animation: spinLeft 20s linear infinite;
}

/* Dots for 12 months */
.exp-month-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    margin-top: -4px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Distribute dots on the ring (radius ~110px) */
.exp-month-dot:nth-child(1) {
    transform: rotate(0deg) translate(110px) rotate(0deg);
}

.exp-month-dot:nth-child(2) {
    transform: rotate(30deg) translate(110px) rotate(-30deg);
}

.exp-month-dot:nth-child(3) {
    transform: rotate(60deg) translate(110px) rotate(-60deg);
}

.exp-month-dot:nth-child(4) {
    transform: rotate(90deg) translate(110px) rotate(-90deg);
}

.exp-month-dot:nth-child(5) {
    transform: rotate(120deg) translate(110px) rotate(-120deg);
}

.exp-month-dot:nth-child(6) {
    transform: rotate(150deg) translate(110px) rotate(-150deg);
}

.exp-month-dot:nth-child(7) {
    transform: rotate(180deg) translate(110px) rotate(-180deg);
}

.exp-month-dot:nth-child(8) {
    transform: rotate(210deg) translate(110px) rotate(-210deg);
}

.exp-month-dot:nth-child(9) {
    transform: rotate(240deg) translate(110px) rotate(-240deg);
}

.exp-month-dot:nth-child(10) {
    transform: rotate(270deg) translate(110px) rotate(-270deg);
}

.exp-month-dot:nth-child(11) {
    transform: rotate(300deg) translate(110px) rotate(-300deg);
}

.exp-month-dot:nth-child(12) {
    transform: rotate(330deg) translate(110px) rotate(-330deg);
}

.exp-month-dot:hover {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    transform: scale(1.5);
}

/* Floating Label */
.exp-label {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-main);
    font-weight: 600;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.8;
}

@keyframes corePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
        box-shadow: 0 0 40px var(--primary);
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
        box-shadow: 0 0 60px var(--primary);
    }
}

@keyframes spinRight {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinLeft {
    100% {
        transform: rotate(-360deg);
    }
}

/* =========================================
   Liquid Glass & Advanced Cards
   ========================================= */

/* Shared Glass Panel */
.glass-panel {
    position: relative;
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    z-index: 1;
}

.glass-panel:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Liquid Gradient Animation Background */
.glass-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%,
            rgba(255, 42, 42, 0.15),
            rgba(30, 30, 80, 0.1),
            transparent 60%);
    opacity: 0;
    transform: rotate(0deg);
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
    animation: liquidMove 15s linear infinite;
}

.glass-panel:hover::before {
    opacity: 1;
}

@keyframes liquidMove {
    0% {
        transform: rotate(0deg) translate(0, 0);
    }

    33% {
        transform: rotate(120deg) translate(20px, 20px);
    }

    66% {
        transform: rotate(240deg) translate(-20px, 10px);
    }

    100% {
        transform: rotate(360deg) translate(0, 0);
    }
}

/* Apply to Projects (override existing) */
.project-card {
    background: transparent;
}

/* =========================================
   Horizontal Scrolling Testimonials
   ========================================= */
.testimonials-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    /* Mask for fade out edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonials-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 5vw;
    /* Padding for scroll start/end */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.testimonials-scroll::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.testimonial-card-glass {
    flex: 0 0 350px;
    /* Fixed width */
    scroll-snap-align: center;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.stars {
    color: #FFD700;
    /* Gold */
    font-size: 1rem;
    display: flex;
    gap: 2px;
}

.review-quote-icon {
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0.5;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.reviewer-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reviewer-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-main);
}

.reviewer-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .testimonial-card-glass {
        flex: 0 0 85vw;
        /* Wider on mobile */
    }
}

/* Contact Responsive Tweaks */
@media (max-width: 968px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-desc {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .contact-details {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form-panel {
        padding: 1.5rem;
    }

    .contact-badge {
        margin-top: 0;
    }

    .contact-card {
        padding: 1rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .form-input,
    .form-textarea {
        font-size: 16px;
        /* Prevent zoom on iOS */
    }
}