/* 
   GDA - Stylesheet
   Theme: Black and White, exception greys.
   Typography: Outfit (Headings), Inter (Body)
*/

:root {
    /* Color Palette */
    --color-black: #050505;
    --color-white: #ffffff;
    
    /* Greys Scale */
    --color-grey-50: #fafafa;
    --color-grey-100: #f4f4f5;
    --color-grey-200: #e4e4e7;
    --color-grey-300: #d4d4d8;
    --color-grey-400: #a1a1aa;
    --color-grey-500: #71717a;
    --color-grey-600: #52525b;
    --color-grey-800: #27272a;
    --color-grey-900: #18181b;

    /* Theme Tokens */
    --bg-primary: var(--color-white);
    --bg-secondary: var(--color-grey-50);
    --bg-inverted: var(--color-black);
    
    --text-primary: var(--color-black);
    --text-secondary: var(--color-grey-600);
    --text-inverted: var(--color-white);
    
    --border-color: var(--color-grey-200);
    --border-color-dark: var(--color-grey-800);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

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

.center-text {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.title-line {
    width: 60px;
    height: 3px;
    background-color: var(--color-black);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--color-grey-800);
    border-color: var(--color-grey-800);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: rgba(255,255,255,0.4);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-white);
    transform: translateY(-2px);
}

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

.btn-light:hover {
    background-color: var(--color-grey-100);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Link ARrow */
.link-arrow {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-top: 1.5rem;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--color-black);
    padding-bottom: 0.25rem;
}

.link-arrow span {
    margin-left: 0.5rem;
    transition: transform var(--transition-fast);
}

.link-arrow:hover span {
    transform: translateX(4px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-normal);
    background-color: transparent;
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.navbar:not(.scrolled) .nav-item {
    color: var(--text-inverted);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 80px;
    max-width: 280px;
    object-fit: contain;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.02);
}

.navbar:not(.scrolled) .logo {
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-item {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width var(--transition-fast);
}

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

/* Dropdown */
.dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--color-white);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: 1000;
    padding: 0.5rem 0;
    border-radius: 4px;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: background-color var(--transition-fast);
}
.dropdown-menu li a:hover {
    background-color: var(--color-grey-100);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    height: 2px;
    width: 100%;
    background-color: var(--color-black);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.navbar:not(.scrolled) .menu-toggle .bar {
    background-color: var(--color-white);
}

.navbar.scrolled .menu-toggle .bar {
    background-color: var(--color-black);
}


/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--color-black);
    overflow: hidden;
    padding-top: 5rem;
}

/* Subtle gradient background effect acting as the white/grey/black abstract visual */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, var(--color-grey-800) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, var(--color-grey-900) 0%, transparent 50%);
    opacity: 0.7;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    color: var(--color-white);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.2s;
}

.hero-title span {
    color: var(--color-grey-400);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    color: var(--color-grey-300);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.4s;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.6s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections padding */
section {
    padding: 6rem 0;
}

/* About Section */
.about {
    background-color: var(--bg-primary);
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.about-visual {
    position: relative;
    height: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, var(--color-grey-100) 0%, var(--color-white) 100%);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    transform: rotate(15deg);
}

.glass-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    z-index: 2;
    top: 20%;
    left: 10%;
    transform: translateY(0);
    transition: transform var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-5px);
}

.secondary-card {
    top: auto;
    bottom: 20%;
    left: auto;
    right: 10%;
    background: var(--color-black);
    color: var(--color-white);
    border: 1px solid var(--color-grey-800);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

/* Services Section */
.services {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 4rem;
}

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

.service-card {
    background-color: var(--color-white);
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-black);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.06);
    border-color: transparent;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    background-color: var(--color-grey-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-black);
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    background-color: var(--color-black);
    color: var(--color-white);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Webmail CTA */
.webmail-cta {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.webmail-cta::before {
    content: '';
    position: absolute;
    right: -10%;
    top: -50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-grey-800) 0%, transparent 60%);
    opacity: 0.5;
}

.webmail-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.webmail-content h2 {
    color: var(--color-white);
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.webmail-content p {
    color: var(--color-grey-400);
    font-size: 1.125rem;
    max-width: 500px;
}

/* Footer */
.footer {
    background-color: var(--bg-primary);
    padding-top: 5rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 90px;
    margin-bottom: 1.5rem;
    filter: grayscale(100%) contrast(1.2);
}

.footer-tagline {
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-heading {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: var(--text-secondary);
}

.footer-links ul li a:hover {
    color: var(--color-black);
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--color-grey-500);
    font-size: 0.875rem;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    .section-grid {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        min-height: 350px;
        order: -1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
    
    .webmail-container {
        flex-direction: column;
        text-align: center;
    }
    
    .webmail-content p {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right var(--transition-normal);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-item {
        color: var(--color-black) !important;
        font-size: 1.25rem;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background-color: transparent;
        opacity: 0;
        visibility: hidden;
        height: 0;
        transform: none;
        padding: 0;
        overflow: hidden;
        transition: all var(--transition-normal);
    }
    .dropdown:hover .dropdown-menu,
    .dropdown:focus-within .dropdown-menu {
        opacity: 1;
        visibility: visible;
        height: auto;
        padding-top: 1rem;
    }
    .dropdown-menu li a {
        padding: 0.5rem 0;
        text-align: center;
        font-size: 1.125rem;
        color: var(--color-grey-800);
    }
    
    .menu-toggle.open .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--color-black);
    }
    
    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.open .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--color-black);
    }

    .hero-title {
        font-size: 2.15rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    section {
        padding: 4rem 0;
    }
}
