/* --- RESET & VARIABLES --- */
:root {
    --bg-color: #050505;
    --bg-darker: transparent; 
    --card-bg: rgba(10, 10, 10, 0.6); 
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent: #ffffff;
    --border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: #050505; 
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* --- GRID BACKGROUND --- */
#grid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* --- TECH PATTERN --- */
.tech-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.8 6.485 48.384 7.9l-7.9-7.9h2.83zM16.686 0L10.2 6.485 11.616 7.9l7.9-7.9h-2.83zM22.344 0L13.858 8.485 15.272 9.9l7.9-7.9h-2.83zM32 0l-6 6 1.414 1.414L34.828 0H32zM37.656 0l8.485 8.485-1.414 1.414L34.828 0h2.828zM56.485 3.515l3.515 3.514H60v-2.828l-2.828-2.829-1.415 1.415zM3.515 3.515L0 7.029V4.2L2.828 1.37 4.93 3.515zM0 56.485l3.515-3.515 1.415 1.415L2.828 58.63V60H0v-3.515zM60 56.485l-3.515-3.515-1.415 1.415 2.828 4.242V60h-2.828l1.414-1.415zM60 27.172l-2.828-2.829-1.415 1.415L57.172 30H60v-2.828zM0 27.172l2.828-2.829 1.415 1.415L2.828 30H0v-2.828z' fill='%23ffffff' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.headline { font-size: 32px; margin-bottom: 20px; }

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Ensure no section has a solid background blocking the grid */
.bg-darker { 
    background-color: transparent;
}

/* --- BUTTONS --- */
.btn-primary, .btn-submit, .btn-nav.glow-effect:hover {
    background: var(--text-main);
    color: #000;
    padding: 15px 30px;
    border-radius: 6px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.glow-effect:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid var(--border);
    padding: 15px 30px;
    border-radius: 6px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.btn-secondary:hover {
    border-color: var(--text-main);
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
}

/* NEW NAV BUTTON STYLE (Small White Pill) */
.btn-nav-cta {
    background: var(--text-main);
    color: #000;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-nav-cta:hover {
    background: #e0e0e0;
    color: #000; /* Force black text */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* --- NAVBAR (Glass) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.3); /* Much more transparent */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -1px;
}

.dot { color: var(--text-muted); }

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a:hover { color: var(--text-main); }
/* Only active link gets white */
.nav-links a.active { color: var(--text-main); } 

/* --- HERO (Transparent) --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background: transparent;
}

.hero h1 {
    font-size: 72px;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to bottom right, #ffffff 30%, #999999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 600px;
}

.hero-btns { display: flex; gap: 20px; }

/* --- SECTIONS --- */
.section { padding: 120px 0; }

.section-title {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 60px;
    border-left: 2px solid var(--text-main);
    padding-left: 15px;
    display: inline-block;
}

/* --- ABOUT US --- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split-text p { font-size: 16px; margin-bottom: 20px; }

.about-list { margin-top: 30px; }
.about-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    font-weight: 500;
}
.about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 1px;
    background: var(--text-main);
}

.split-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-drawing {
    width: 100%;
    max-width: 400px;
    opacity: 0.8;
    animation: rotateSlow 60s linear infinite;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- CARDS (Expertise & Process) --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Shared styles for both Expertise and Process cards to match aesthetic */
.card, .process-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    backdrop-filter: blur(10px);
}

/* Hover Glow Effect for both */
.card::before, .process-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.06), transparent 40%);
    z-index: 1; opacity: 0; transition: opacity 0.4s;
}

.card:hover, .process-card:hover {
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px -10px rgba(0,0,0,0.5);
}
.card:hover::before, .process-card:hover::before { opacity: 1; }

.card-icon { margin-bottom: 25px; color: var(--text-muted); transition: var(--transition); }
.card-icon svg { width: 40px; height: 40px; }
.card:hover .card-icon { color: var(--text-main); filter: drop-shadow(0 0 10px rgba(255,255,255,0.4)); }

.card h3, .process-card h3 { font-size: 20px; margin-bottom: 15px; position: relative; z-index: 2; }
.card p, .process-card p { font-size: 15px; color: var(--text-muted); position: relative; z-index: 2; transition: var(--transition); }
.card:hover p, .process-card:hover p { color: #bbbbbb; }

/* Specific Process Step Styling */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; /* Matched to grid-3 gap */
    margin-top: 40px;
}
.step-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px; font-weight: 700; color: var(--border);
    margin-bottom: 15px;
    transition: color 0.4s;
}
.process-card:hover .step-number { color: var(--text-main); }


/* --- MANIFESTO (No Border) --- */
.manifesto {
    padding: 150px 0;
    text-align: center;
    background: transparent;
    border-top: none;
}
.manifesto h2 { font-size: 56px; line-height: 1.1; }

/* --- CONTACT & FORM --- */
.contact-section { text-align: center; }
.contact-sub { margin-bottom: 50px; color: var(--text-muted); font-size: 18px; }

.form-box {
    max-width: 500px; margin: 0 auto; text-align: left;
    background: var(--card-bg); padding: 50px;
    border-radius: 16px; border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.input-group { margin-bottom: 25px; }

/* BASE INPUT STYLES (No Arrow) */
input, textarea {
    width: 100%; 
    padding: 15px; 
    background: rgba(5,5,5,0.8);
    border: 1px solid var(--border); 
    color: var(--text-main);
    border-radius: 8px; 
    font-family: inherit; 
    font-size: 16px;
    transition: var(--transition);
}

/* SELECT SPECIFIC STYLES (With Arrow) */
select {
    width: 100%; 
    padding: 15px; 
    background: rgba(5,5,5,0.8);
    border: 1px solid var(--border); 
    color: var(--text-main);
    border-radius: 8px; 
    font-family: inherit; 
    font-size: 16px;
    transition: var(--transition);
    appearance: none; 
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Custom dropdown arrow */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23888888%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-13%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2013l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.7%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
}

/* Fix for placeholder color in selects */
select:invalid, select option[value=""][disabled] {
    color: var(--text-muted);
}

/* Fix textarea resize */
textarea {
    resize: none;
}

input:focus, textarea:focus, select:focus { 
    outline: none; 
    border-color: var(--text-main); 
    box-shadow: 0 0 15px rgba(255,255,255,0.05); 
}

/* Style options within the dropdown */
select option {
    background-color: #0a0a0a;
    color: var(--text-main);
    padding: 10px;
}

.btn-submit { width: 100%; }
.or-text { text-align: center; margin-top: 25px; font-size: 14px; color: var(--text-muted); }
.or-text a { color: var(--text-main); text-decoration: underline; }

/* --- FOOTER (Glass) --- */
footer {
    padding: 80px 0; border-top: 1px solid var(--border);
    margin-top: 100px; 
    /* Extremely transparent background */
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
}
.footer-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-tag { font-size: 12px; color: var(--text-muted); margin-top: 5px; }

.footer-social {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}
.footer-social a {
    color: var(--text-muted);
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}
.footer-social a:hover {
    color: var(--text-main);
    transform: translateY(-2px);
}
.footer-right {
    text-align: right;
}
.footer-right p { font-size: 12px; color: var(--text-muted); }

/* --- ANIMATIONS --- */
.fade-in {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .hero h1 { font-size: 56px; }
    .nav-links { display: none; }
    .split-layout { grid-template-columns: 1fr; gap: 50px; }
    .tech-drawing { max-width: 300px; margin: 0 auto; }
    .manifesto h2 { font-size: 40px; }
    .navbar { padding: 20px 30px; }
    .container { padding: 0 25px; }
    .footer-content { flex-direction: column; text-align: center; align-items: center; }
    .footer-right { text-align: center; }
}