/* --- CSS VARIABLES (Theme Colors) --- */
:root {
    --brand-orange: #FF6B00;
    --brand-orange-light: #FF9E40;
    --brand-black: #0A0A0A;
    --brand-dark: #121212;
    --brand-grey: #2A2A2A;
    --text-white: #ffffff;
    --text-grey: #9CA3AF; /* Gray-400 */
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Fonts */
    --font-montserrat: 'Montserrat', sans-serif;
    --font-poppins: 'Poppins', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

/* --- RESET & BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--brand-black);
    color: var(--text-white);
    font-family: var(--font-inter);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- UTILITIES --- */
.container {
    max-width: 1280px; /* 7xl equivalent */
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-gradient {
    background: linear-gradient(to right, var(--brand-orange), var(--brand-orange-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-padding {
    padding: 6rem 1.5rem;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-family: var(--font-poppins);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 0.5rem;
    border: none;
}

.btn-primary {
    background-color: var(--brand-orange);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(255, 107, 0, 0.2);
}

.btn-primary:hover {
    background-color: #e65100;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-white {
    background-color: white;
    color: var(--brand-black);
}

.btn-white:hover {
    background-color: #f3f4f6;
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-montserrat);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.logo span {
    color: var(--brand-orange);
}

.nav-links {
    display: none; /* Hidden on mobile */
    gap: 2rem;
    align-items: center;
    font-family: var(--font-poppins);
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
}

.nav-links a:hover {
    color: var(--text-white);
}

.hamburger {
    display: block;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.hamburger svg {
    width: 24px;
    height: 24px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--brand-black);
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

.mobile-menu.active {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    .hamburger {
        display: none;
    }
    .mobile-menu {
        display: none;
    }
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-content {
        order: 1;
    }
    .hero-image {
        order: 2;
    }
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--brand-grey);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.dot-pulse {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.availability-text {
    font-size: 0.75rem;
    font-family: var(--font-poppins);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #d1d5db;
}

.hero-title {
    font-family: var(--font-montserrat);
    font-weight: 800;
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-grey);
    border-left: 2px solid var(--brand-orange);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Hero Image Area - FLUID RESPONSIVE */
.hero-img-container {
    position: relative;
    width: 100%;
    max-width: 280px; /* Base size for mobile */
    aspect-ratio: 1 / 1; /* Keeps it square */
    margin: 0 auto;
}

@media (min-width: 640px) { /* Small Tablet */
    .hero-img-container {
        max-width: 320px;
    }
}

@media (min-width: 1024px) { /* Desktop */
    .hero-img-container {
        max-width: 450px; /* Larger on desktop */
    }
}

.img-ring {
    position: absolute;
    inset: 0;
    border: 2px solid var(--brand-orange);
    border-radius: 50%;
    transform: rotate(6deg) scale(1.05);
    opacity: 0.5;
}

.img-wrapper {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--brand-black);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.img-wrapper:hover img {
    filter: grayscale(0%);
}

.floating-badge {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    background-color: var(--brand-orange);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-family: var(--font-montserrat);
    font-weight: 700;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    animation: bounce 3s infinite;
}

/* Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
}

.blob-1 {
    width: 24rem;
    height: 24rem;
    background-color: var(--brand-orange);
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
}

.blob-2 {
    width: 20rem;
    height: 20rem;
    background-color: #2563eb;
    bottom: 0;
    left: 0;
    transform: translate(-50%, 50%);
    opacity: 0.2;
}

/* --- STATS BAR --- */
.stats-bar {
    background-color: var(--brand-dark);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-montserrat);
    font-weight: 700;
    font-size: 1.875rem;
    color: white;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: start;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.section-title {
    font-family: var(--font-montserrat);
    font-weight: 700;
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.section-divider {
    height: 4px;
    width: 80px;
    background-color: var(--brand-orange);
    border-radius: 99px;
    margin-bottom: 1.5rem;
}

.about-text {
    color: var(--text-grey);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    padding: 0.5rem 1rem;
    background-color: var(--brand-grey);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #d1d5db;
}

.glass-card {
    background: rgba(42, 42, 42, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 1rem;
    position: relative;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-number {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 107, 0, 0.2);
    color: var(--brand-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* --- SERVICES / EXPERTISE --- */
.bg-grey {
    background-color: var(--brand-grey);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: var(--brand-black);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--brand-orange);
    transform: translateY(-5px);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--brand-dark);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-orange);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-title {
    font-family: var(--font-montserrat);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: white;
}

.service-card:hover .service-title {
    color: var(--brand-orange);
}

.service-desc {
    color: var(--text-grey);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.check-list li {
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.dot {
    width: 4px;
    height: 4px;
    background-color: var(--brand-orange);
    border-radius: 50%;
}

/* --- PORTFOLIO (SLIDER STYLES) --- */
.section-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.subtitle {
    color: var(--brand-orange);
    font-weight: 700;
    font-family: var(--font-poppins);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
}

/* Slider Container - ENSURES SINGLE ROW & HIDES OVERFLOW */
.portfolio-slider-container {
    overflow: hidden; /* Crucial: This hides the other cards */
    width: 100%;
    position: relative;
}

/* The Track that moves */
.portfolio-track {
    display: flex; /* Makes cards sit in a single row */
    flex-wrap: nowrap; /* Forces them not to wrap to the next line */
    gap: 2rem; /* Space between cards */
    transition: transform 0.5s ease-in-out; /* Smooth scrolling animation */
    width: 100%;
}

.project-card {
    background-color: var(--brand-grey);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease;
    
    /* MOBILE DEFAULT: 1 CARD VISIBLE */
    flex: 0 0 100%; 
    max-width: 100%;
}

/* DESKTOP: 2 CARDS VISIBLE */
@media (min-width: 768px) {
    .project-card {
        /* Logic: 50% width minus half of the gap (1rem) to fit 2 cards perfectly */
        flex: 0 0 calc(50% - 1rem); 
        max-width: calc(50% - 1rem);
    }
}

.project-img-area {
    height: 12rem;
    background-color: #1f2937;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-img-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 10, 10, 0.5);
    transition: background-color 0.3s ease;
}

.project-card:hover .project-img-overlay {
    background-color: rgba(10, 10, 10, 0.2);
}

.project-placeholder-text {
    position: relative;
    font-family: var(--font-montserrat);
    font-weight: 700;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.2);
}

.project-content {
    padding: 2rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0.25rem;
}

.project-badge {
    background-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.project-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.stat-val {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.stat-key {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Slider Buttons */
.slider-controls {
    display: flex;
    gap: 1rem;
}

.slider-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--brand-grey);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    border-color: var(--brand-orange);
    background: var(--brand-black);
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* --- CONTACT --- */
.contact-section {
    position: relative;
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #9ca3af;
}

.contact-link:hover {
    color: white;
}

.icon-box {
    width: 3rem;
    height: 3rem;
    background-color: var(--brand-grey);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-link:hover .icon-box {
    border-color: var(--brand-orange);
    background-color: var(--brand-black);
}

.icon-box svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--brand-orange);
}

/* Form */
.form-container {
    background-color: var(--brand-grey);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .form-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-poppins);
    margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    background-color: var(--brand-black);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white;
    font-family: var(--font-inter);
    transition: all 0.3s ease;
    appearance: none; /* remove default arrow for select */
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 1px var(--brand-orange);
}

/* Remove Arrows/Spinners from Number Input */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

.form-textarea {
    resize: vertical;
}

.select-wrapper {
    position: relative;
}

/* Custom arrow for select */
.select-wrapper::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0; 
    height: 0; 
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid white;
    pointer-events: none;
}

/* --- FOOTER --- */
.footer {
    background-color: black;
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-logo {
    font-family: var(--font-montserrat);
    font-weight: 700;
    font-size: 1.5rem;
}

.footer-text {
    color: #4b5563;
    font-size: 0.875rem;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8,0,1,1); }
    50% { transform: none; animation-timing-function: cubic-bezier(0,0,0.2,1); }
}