@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #ef4444;
    --primary-dark: #dc2626;
    --primary-light: #f87171;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --glass-bg: rgba(10, 10, 10, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --logo-color: #ed1b24;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

/* --- Utilities --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-tag {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-v2 {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    gap: 0.5rem;
    overflow: hidden;
    position: relative;
}

.hover-icon {
    width: 0;
    opacity: 0;
    transition: var(--transition);
    transform: translateX(-10px);
}

.btn-v2:hover .hover-icon {
    width: 1.5rem;
    opacity: 1;
    transform: translateX(0);
}

.btn-premium {
    background: var(--primary);
    color: white;
}

.btn-premium:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
}

/* --- Navigation --- */
.nav-v2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
}

.nav-v2.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-v2 .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-v2 .logo img {
    height: 100px;
    /* Slightly smaller for elegance */
    filter: brightness(0) invert(1);
    /* Force white for dark theme readability */
    transition: var(--transition);
}

.nav-v2 .logo img:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(239, 68, 68, 0.5));
}

.nav-links-v2 {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links-v2 a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.05rem;
    transition: var(--transition);
    position: relative;
    text-transform: uppercase;
}

.nav-links-v2 a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links-v2 a:hover::after,
.nav-links-v2 a.active::after {
    width: 100%;
}

.mobile-toggle-v2 {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-v2 {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    /* Space for the 100px logo + navbar padding */
    background: radial-gradient(circle at 70% 30%, rgba(239, 68, 68, 0.15) 0%, transparent 50%),
        var(--bg-darker);
    position: relative;
    overflow: hidden;
}

.hero-v2::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.1;
    z-index: 1;
}

.hero-glow-v2 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease;
    opacity: 0;
}

.hero-v2:hover .hero-glow-v2 {
    opacity: 1;
}

.hero-v2 .container {
    position: relative;
    z-index: 2;
}

.hero-content-v2 {
    max-width: 900px;
    margin: 0 auto;
    /* Centered horizontally to align with Services/Career */
    text-align: center;
}

.hero-badge {
    background: rgba(239, 68, 68, 0.1);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: inline-block;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.hero-h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2rem;
}

.hero-highlight {
    color: var(--primary);
}

.hero-p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons-v2 {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    /* Center buttons along with text */
}

/* --- About --- */
.about-grid-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-img-group {
    position: relative;
}

.about-img-v2 {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.experience-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--primary);
    padding: 2.5rem;
    border-radius: 15px;
    color: white;
    text-align: center;
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.4);
}

.exp-num {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.exp-text {
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

/* --- Services --- */
.services-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card-v2 {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 3.5rem;
    border-radius: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.service-card-v2:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.service-card-v2:hover::before {
    opacity: 0.05;
}

.s-icon-v2 {
    width: 80px;
    height: 80px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 2.5rem;
}

.s-title-v2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.s-p-v2 {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* --- Portfolio --- */
.portfolio-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.portfolio-filters {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.filter-btn.active,
.filter-btn:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.portfolio-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    /* Smaller thumbnails */
    gap: 2rem;
}

.project-item-v2 {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

.project-img-v2 {
    width: 100%;
    height: 320px;
    /* Reduced from 500px */
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay-v2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.project-item-v2:hover .project-overlay-v2 {
    transform: translateY(0);
    opacity: 1;
}

.project-item-v2:hover .project-img-v2 {
    transform: scale(1.1);
}

.p-meta-v2 {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: block;
}

.p-title-v2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

/* --- Career --- */
.career-v2 {
    background: var(--bg-darker);
}

.career-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.career-card-v2 {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
    text-align: center;
}

.career-card-v2:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.career-card-v2:hover * {
    color: white !important;
}

/* --- Contact --- */
.contact-grid-v2 {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
}

.c-info-card-v2 {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.c-icon-v2 {
    width: 60px;
    height: 60px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.c-label-v2 {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.c-value-v2 {
    font-weight: 600;
    font-size: 1.1rem;
}

.form-v2 {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid var(--border);
}

.form-group-v2 {
    margin-bottom: 1.5rem;
}

.input-v2 {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-family: var(--font-body);
    transition: var(--transition);
}

.input-v2:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

/* --- Footer --- */
.footer-v2 {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-top-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-top-v2 .logo img {
    height: 100px;
    /* Scaled down for the footer */
    filter: brightness(0) invert(1);
}

.footer-bottom-v2 {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* --- Portfolio Modal --- */
.p-modal-v2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.p-modal-v2.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

.p-modal-content-v2 {
    max-width: 1000px;
    position: relative;
}

.p-modal-content-v2 img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
}

.p-modal-close-v2 {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        pointer-events: none;
    }

    to {
        opacity: 1;
        pointer-events: all;
    }
}

/* --- Mobile --- */
@media (max-width: 968px) {
    .nav-links-v2 {
        display: none;
    }

    .mobile-toggle-v2 {
        display: block;
    }

    .about-grid-v2 {
        grid-template-columns: 1fr;
    }

    .portfolio-header-v2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .contact-grid-v2 {
        grid-template-columns: 1fr;
    }

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