/* CSS Variables for Industrial-Modern Theme */
:root {
    --bg-black: #000000;
    --bg-charcoal: #121212;
    --bg-slate: #1A1C1E;
    --text-main: #E0E0E0;
    --text-muted: #A0A0A0;
    --accent-gold: #D4AF37; 
    --accent-purple: #6A0DAD; 
    --font-heading: 'Syncopate', sans-serif; 
    --font-body: 'Inter', sans-serif; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-black);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 6rem 0;
}

/* NEW: Main Brand Title */
.main-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* Very large and responsive */
    letter-spacing: 4px;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: #FFFFFF;
    text-shadow: 
        0px 4px 10px rgba(0, 0, 0, 0.8),   /* Inner dark core for contrast */
        0px 0px 35px rgba(0, 0, 0, 0.6),   /* Wide, dispersed dark cloud */
        0px 0px 60px rgba(212, 175, 55, 0.15); /* Optional: A very faint, vivid gold atmospheric haze */
}

/* 1. Header */
.stealth-bar {
    background-color: var(--bg-black);
    height: 40px; 
    width: 100%;
    position: absolute; /* CHANGED: Was 'fixed' */
    top: 0;
    z-index: 100;
}

/* 2. Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* 1. Add a dark fallback color in case the image never loads */
    background-color: var(--bg-charcoal);
    
    /* 2. Split into explicit background-image property */
    /* Added './' to explicitly tell the browser to look in the exact same folder */
    background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url('images/abstract_digital_2.jpg');
    
    /* 3. Keep the sizing and positioning rules */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    text-align: center;
    padding-top: 40px; 
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 2rem;
}

.headline {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    letter-spacing: 2px;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--accent-gold); /* Optional: Made this gold to spice it up, change to #FFFFFF if you prefer! */
    text-shadow: 
        0px 2px 4px rgba(0, 0, 0, 0.9),   /* Tight, almost black shadow for sharp contrast */
        0px 4px 18px rgba(0, 0, 0, 0.75); /* Wider, softer spread to lift it off the background */
}





.sub-headline {
    font-size: 1.3rem;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 3rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.6);	/* UPDATED: Adjusted to match the headline's subtle shadow perfectly */
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: transparent;
    color: #FFFFFF;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    letter-spacing: 1.5px;
    border: 1px solid #FFFFFF;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #FFFFFF;
    color: var(--bg-black);
}

/* Layout: 3-Column Grid */
.grid-3-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

/* --- 2.5 Featured Work Section --- */
.portfolio-grid {
    display: grid;
    /* Creates flexible columns that adapt to screen size */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 300px; /* Base height for all images */
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--bg-charcoal);
    cursor: pointer;
}

/* Asymmetrical Layout for Desktop */
@media (min-width: 768px) {
    .portfolio-item.wide { 
        grid-column: span 2; 
    }
    .portfolio-item.tall { 
        grid-row: span 2; 
    }
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* The Dark Gradient Overlay */
.portfolio-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Hover Interactions */
.portfolio-item:hover img {
    transform: scale(1.05); /* Smooth zoom */
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1; /* Fade in the gradient */
}

/* Text Animations */
.portfolio-overlay h3 {
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    transform: translateY(20px); /* Start slightly pushed down */
    transition: transform 0.4s ease;
}

.portfolio-overlay span {
    color: var(--accent-gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transform: translateY(20px); /* Start slightly pushed down */
    transition: transform 0.4s ease;
    transition-delay: 0.05s; /* Creates a staggered slide-up effect */
}

/* Slide the text up when the card is hovered */
.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay span {
    transform: translateY(0);
}


/* Typography & Cards */
.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.card {
    background-color: #160D24;
    padding: 2.5rem;
    border: 1px solid var(--accent-gold);
 /*  old transition: transform 0.3s ease, border-color 0.3s ease; */
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
	transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
/*    border-color: rgba(255, 255, 255, 0.15); */
	box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15); /* Soft gold glow */
    border: 1px solid rgba(212, 175, 55, 1); /* Ensures the gold is fully opaque */
}

.icon-wrapper {
    width: 40px;
    height: 40px;
    margin-bottom: 1.5rem;
    color: var(--accent-gold); 
}

.icon-wrapper svg {
    width: 100%;
    height: 100%;
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Boost the hover glow ONLY for the Service Cards to counteract the lighter background */
.service-card:hover {
    /* Increased the opacity from 0.15 to 0.4, and made the blur slightly larger (30px) */
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4); 
}

/* Backgrounds */
.dark-slate-bg {
    background-color: var(--bg-slate);
}

.charcoal-bg {
    background-color: var(--bg-charcoal);
}

/* 5. Contact Section */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-sub {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: opacity 0.3s ease;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    padding: 0.75rem 0;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-gold);
}

.form-group select {
    appearance: none;
    cursor: pointer;
}

.form-group select option {
    background-color: var(--bg-charcoal);
    color: #fff;
}

.submit-button {
    background-color: #FFFFFF;
    color: var(--bg-black);
    border: none;
    padding: 1rem;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: var(--accent-gold);
}

/* Form Success Message Styles */
.hidden {
    display: none !important;
}

.success-message {
    text-align: center;
    padding: 3rem 2rem;
    background-color: rgba(212, 175, 55, 0.05); /* Very subtle gold tint */
    border: 1px solid rgba(212, 175, 55, 0.3); /* Gold border */
    animation: fadeIn 0.6s ease-out forwards;
}

.success-message h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.success-message p {
    color: var(--text-main);
    font-size: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 6. Footer Section */
.main-footer {
    background-color: var(--bg-black);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.back-to-top {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-to-top:hover {
    color: #FFFFFF;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}



/* 1. Make the Featured Work sub-headline gold */
#work .sub-headline {
    color: var(--accent-gold);
    /* Remove the dark text shadow since it's on a dark background now */
    text-shadow: none; 
}

/* 2. Apply the Clean/Techy Font to all H3s (Services, Benefits, Portfolio) */
.card h3, 
.portfolio-overlay h3 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600; 
    font-size: 1.35rem; /* Slightly larger to let the technical details shine */
    letter-spacing: 1.5px;
    text-transform: uppercase; /* Forces that uniform, engineered look */
}