/* ==========================================================================
   ARK85 Website Styles
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('Inter_Tight/InterTight-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 900;
  font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Custom Properties */
:root {
    /* Dark theme (Homepage) */
    --primary-bg-dark: #030712;
    --secondary-bg-dark: #2a2f3e;
    --accent-color: #46ecd5;
    --text-primary-dark: #ffffff;
    --text-secondary-dark: #a0a9c0;
    --text-muted-dark: #6b7280;
    --button-bg: #ffffff;
    --button-text-dark: #030712;
    --hover-accent: #3dd6c4;
    --header-bg-dark: rgba(3, 7, 18, 0.8);
    
    /* Light theme (Subpages) */
    --primary-bg-light: #ffffff;
    --secondary-bg-light: #f8fafc;
    --text-primary-light: #1a202c;
    --text-secondary-light: #4a5568;
    --text-muted-light: #718096;
    --border-color-light: #e2e8f0;
    --header-bg-light: rgba(255, 255, 255, 0.8);
    --button-text-light: #ffffff;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 60px;
}

/* Dark theme body (Homepage) */
body.dark {
    background: var(--primary-bg-dark);
    color: var(--text-primary-dark);
}

/* Light theme body (Subpages) */
body.light {
    background: var(--primary-bg-light);
    color: var(--text-primary-light);
}

/* Container */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Background gradient effects */
.container.dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top, rgba(70, 236, 213, 0.05) 0%, transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(70, 236, 213, 0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.container.light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top, rgba(70, 236, 213, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Header themes */
.header.dark {
    background: var(--header-bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.light {
    background: var(--header-bg-light);
    border-bottom: 1px solid var(--border-color-light);
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo img {
    height: 2.5rem;
    width: auto;
}

/* Logo color adjustments for light theme */
.light .logo img {
    filter: invert(1) brightness(0);
}

/* Contact Button */
.contact-button {
    display: none;
}

/* Main Content */
.main-content {
    flex: 1;
    position: relative;
    z-index: 5;
}

/* Homepage main content */
.main-content.homepage {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    padding: 3rem 1rem 2rem;
}

/* Subpage main content */
.main-content.subpage {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Hero Text */
.hero-text {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3.3rem, 13vw, 9.6rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 3rem;
    line-height: 0.9;
}

.hero-title .highlight {
    color: var(--accent-color);
}

/* Mobile Contact Button */
.mobile-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--button-bg);
    color: var(--button-text-dark);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    align-self: center;
    margin-top: auto;
    margin-bottom: 2rem;
}

.mobile-contact-button:hover {
    background: var(--accent-color);
    color: var(--primary-bg-dark);
    transform: translateY(-2px);
}

.mobile-contact-button:active {
    transform: translateY(0);
}

/* Page Content Styles */
.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 3rem;
}

.content-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.subsection-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.content-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Dark theme text colors */
.dark .page-title,
.dark .section-title,
.dark .subsection-title {
    color: var(--text-primary-dark);
}

.dark .content-text {
    color: var(--text-secondary-dark);
}

/* Light theme text colors */
.light .page-title,
.light .section-title,
.light .subsection-title {
    color: var(--text-primary-light);
}

.light .content-text {
    color: var(--text-secondary-light);
}

/* Contact Info Card */
.contact-info {
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid;
    margin: 2rem 0;
}

.dark .contact-info {
    background: var(--secondary-bg-dark);
    border-color: #374151;
}

.light .contact-info {
    background: var(--secondary-bg-light);
    border-color: var(--border-color-light);
}

.contact-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.dark .contact-info a:hover {
    color: var(--text-primary-dark);
}

.light .contact-info a:hover {
    color: var(--text-primary-light);
}

/* Data List */
.data-list {
    list-style: none;
    padding-left: 0;
}

.data-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid;
}

.dark .data-list li {
    border-color: #374151;
    color: var(--text-secondary-dark);
}

.light .data-list li {
    border-color: var(--border-color-light);
    color: var(--text-secondary-light);
}

.data-list li:last-child {
    border-bottom: none;
}

/* Footer */
.footer {
    position: relative;
    z-index: 10;
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer a {
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    padding: 0 1rem;
}

.footer a:first-child {
    padding-left: 1rem;
}

.footer a:last-child {
    padding-right: 1rem;
}

/* Footer theme colors */
.dark .footer a {
    color: var(--text-muted-dark);
}

.dark .footer a:hover {
    color: var(--accent-color);
}

.light .footer a {
    color: var(--text-muted-light);
}

.light .footer a:hover {
    color: var(--accent-color);
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content {
    animation: fadeInUp 0.8s ease-out;
}

.header {
    animation: fadeInUp 0.6s ease-out;
}

.footer {
    animation: fadeInUp 1s ease-out;
}

/* Mobile specific optimizations */
@media (min-width: 375px) {
    .hero-title {
        font-size: clamp(3.6rem, 12vw, 9.6rem);
    }
}

@media (max-width: 374px) {
    .hero-title {
        font-size: 3rem;
        line-height: 0.85;
    }
    
    .header {
        padding: 1rem;
    }
    
    .main-content.homepage {
        padding: 0.5rem 1rem 2rem;
    }
    
    .mobile-contact-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* Tablet styles */
@media (min-width: 768px) {
    body {
        padding-top: 80px;
    }

    .header {
        padding: 2rem;
    }

    .logo img {
        height: 3rem;
    }

    .hero-title {
        font-size: clamp(4.8rem, 9.6vw, 7.2rem);
    }

    .contact-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--button-bg);
        color: var(--button-text-dark);
        padding: 0.875rem 1.75rem;
        border-radius: 12px;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.875rem;
        transition: all 0.3s ease;
        border: none;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .contact-button:hover {
        background: var(--accent-color);
        color: var(--primary-bg-dark);
        transform: translateY(-2px);
    }

    .contact-button:active {
        transform: translateY(0);
    }

    .mobile-contact-button {
        display: none;
    }

    .main-content.homepage {
        padding: 4rem 2rem 3rem;
        justify-content: flex-start;
    }

    .main-content.subpage {
        padding: 3rem 2rem;
    }

    .footer a:first-child {
        padding-left: 2rem;
    }

    .footer a:last-child {
        padding-right: 2rem;
    }
}

/* Desktop styles */
@media (min-width: 1024px) {
    body {
        padding-top: 100px;
    }

    .header {
        padding: 3rem 4rem;
    }

    .logo img {
        height: 3.5rem;
    }

    .main-content.homepage {
        padding: 5rem 4rem 4rem;
        justify-content: flex-start;
    }

    .main-content.subpage {
        padding: 4rem;
    }

    .hero-title {
        margin-bottom: 3rem;
        font-size: clamp(6rem, 9.6vw, 9.6rem);
    }

    .footer {
        padding: 4rem 0;
    }

    .footer a:first-child {
        padding-left: 4rem;
    }

    .footer a:last-child {
        padding-right: 4rem;
    }
}

/* Large desktop styles */
@media (min-width: 1440px) {
    body {
        padding-top: 100px;
    }

    .header {
        padding: 3rem 6rem;
    }

    .main-content.homepage {
        padding: 5rem 6rem 6rem;
    }

    .main-content.subpage {
        padding: 4rem 6rem;
    }

    .hero-title {
        font-size: clamp(7.2rem, 10.8vw, 12rem);
    }

    .footer {
        padding: 4rem 0;
    }

    .footer a:first-child {
        padding-left: 6rem;
    }

    .footer a:last-child {
        padding-right: 6rem;
    }
}

/* Print styles */
@media print {
    .container::before,
    .container.dark::before,
    .container.light::before {
        display: none;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero-title .highlight {
        color: #000 !important;
    }
    
    .contact-button,
    .mobile-contact-button {
        display: none !important;
    }
}