/* ===================================
   GOOGLE FONTS
=================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

/* ===================================
   ROOT
=================================== */

:root {
    --primary: #6C83FF;
    --primary-dark: #5167E8;

    --background: #050505;
    --surface: #0D0D0D;
    --surface-light: #171717;

    --text: #F4F4F4;
    --text-light: #B8B8B8;

    --border: #222;

    --transition: .35s ease;

    --radius: 4px;

    --max-width: 1300px;
}

/* ===================================
   RESET
=================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.8;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: auto;
}

/* ===================================
   TYPOGRAPHY
=================================== */

h1,
h2,
h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: 2px;
}

h1 {
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: .95;
    margin-bottom: 30px;
}

h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 60px;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 30px;
    text-align: center;
    font-size: 1.05rem;
}

/* ===================================
   BUTTONS
=================================== */

.btn-primary,
.btn-secondary,
.btn-nav {
    display: inline-block;
    padding: 14px 36px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .9rem;
    transition: var(--transition);
    border: 1px solid var(--primary);
    text-align: center;
    border-radius: 30px;
}

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

.btn-primary:hover {
    background: transparent;
    color: white;
}

.btn-secondary {
    background: transparent;
    color: white;
}

.btn-secondary:hover {
    background: var(--primary);
}

.btn-nav {
    background: transparent;
    color: white;
}

.btn-nav:hover {
    background: var(--primary);
}

/* ===================================
   HEADER & NAVBAR
=================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(5, 5, 5, .92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid #161616;
}

.navbar {
    width: 90%;
    max-width: var(--max-width);
    height: 90px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 180px;
}

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

.nav-links a {
    color: #DDD;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .85rem;
    transition: .3s;
    position: relative;
}

.nav-links a:not(.btn-nav)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: .3s;
}

.nav-links a:hover {
    color: white;
}

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

/* Mobile Toggle Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text);
    transition: var(--transition);
}

/* ===================================
   HERO
=================================== */

.hero {
    min-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 20px 80px;
    position: relative;
    overflow: hidden;
    background: 
        linear-gradient(rgba(5, 5, 5, 0.40), rgba(5, 5, 5, 0.55)),
        url("../images/hero.png");
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(108, 131, 255, 0.2), transparent 60%);
    pointer-events: none;
}

.hero-content {
    width: 100%;
    max-width: var(--max-width);
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Right-aligns content under the graphic on desktop */
    justify-content: flex-end;
    padding-top: 600px;    /* Pushes content down lower in the hero space */
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 40px;
    margin-left: 15%;
}

/* ===================================
   ABOUT SECTION
=================================== */

.about {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.about p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-light);
    max-width: 750px;
    margin: 0 auto;
}

/* ===================================
   SECTIONS & CARDS
=================================== */

section {
    padding: 100px 0;
}

section h2 {
    position: relative;
    display: table;
    margin: 0 auto 60px;
    padding-bottom: 22px;
}

section h2::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 90px;
    height: 2px;
    background: var(--primary);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card,
.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 40px;
    transition: var(--transition);
    text-align: center;
    border-radius: 12px; /* Smooth rounded corners for cards */
    overflow: hidden;
}

.service-card:hover,
.feature:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
}

.service-card h3,
.feature h3 {
    color: white;
}

.service-card p,
.feature p {
    margin-bottom: 0;
}

/* ===================================
   CTA & FOOTER
=================================== */

.cta {
    text-align: center;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #161616;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

footer p {
    margin-bottom: 0;
    font-size: .9rem;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    font-size: .85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: var(--primary);
}

/* ===================================
   RESPONSIVE MEDIA QUERIES
=================================== */

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 90px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background: rgba(5, 5, 5, .98);
        flex-direction: column;
        justify-content: center;
        gap: 35px;
        transition: right .35s ease-in-out;
    }

    .nav-links.active {
        right: 0;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
    }

    section {
        padding: 70px 0;
    }

    footer .container {
        flex-direction: column;
    }
}
@media (max-width: 768px) {
    /* Mobile Hero Image Swap */
    .hero {
        background: 
            linear-gradient(rgba(5, 5, 5, 0.35), rgba(5, 5, 5, 0.50)),
            url("../images/mobile-hero.png"); /* Your new mobile hero image */
        background-size: cover;
        background-position: center 30%;
    }

    .hero-content {
        align-items: center; /* Recenter buttons for phone screens */
        padding-top: 220px;  /* Pushes buttons lower down on mobile */
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;    
        margin: 60px auto 0; /* Pushes buttons lower */
        justify-content: center;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
    }
}

/* ===================================
   CONTACT PAGE CARD BUTTONS
=================================== */

.services .service-card .btn-secondary {
    background: var(--primary);    /* Solid filled color (not transparent) */
    color: #FFFFFF;               /* Initial text color */
    border-color: var(--primary);
    margin-top: 15px;
    font-weight: 600;
}

.services .service-card .btn-secondary:hover {
    background: #FFFFFF;          /* Button fill changes on hover */
    color: var(--background);     /* Dark text on hover */
    border-color: #FFFFFF;
}

/* ===================================
   CONTACT PAGE HERO (DESKTOP TWEAKS)
=================================== */

.hero-contact {
    min-height: 60vh;           /* Reduces excess blank space on desktop */
    padding: 160px 20px 60px;   /* Fits comfortably below the fixed header */
    background: var(--background); /* Clean dark background without the image overlay */
}

.hero-contact .hero-content {
    align-items: center;        /* Centers heading, paragraph & email card on desktop */
    text-align: center;
    padding-top: 0;             /* Overrides the 260px desktop offset from the homepage */
    max-width: 650px;
    margin: 0 auto;
}

.hero-contact h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 15px;
}

.hero-contact p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 35px;
}

/* Email Card Refinement */
.email-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    transition: var(--transition);
}

.email-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.email-card h3 {
    margin-bottom: 8px;
    color: #FFFFFF;
}

.email-card p {
    margin-bottom: 0;
    color: var(--primary);      /* Highlights the email address */
    font-weight: 500;
}