/* ==========================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================== */
:root {
    /* Colors - Black & White Theme */
    --color-bg-primary: #000000;
    --color-bg-secondary: #0a0a0a;
    --color-bg-tertiary: #1a1a1a;
    --color-surface: rgba(255, 255, 255, 0.05);
    --color-surface-hover: rgba(255, 255, 255, 0.1);

    --color-primary: #ffffff;
    --color-primary-glow: rgba(255, 255, 255, 0.3);
    --color-secondary: #808080;
    --color-secondary-glow: rgba(128, 128, 128, 0.3);

    --color-text-primary: #ffffff;
    --color-text-secondary: #b3b3b3;
    --color-text-tertiary: #808080;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 4rem;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px var(--color-primary-glow);
    --shadow-glow-secondary: 0 0 20px var(--color-secondary-glow);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* ==========================================
   STARFIELD BACKGROUND (FULL PAGE)
   ========================================== */
.starfield-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Dynamic Star Class */
.star {
    position: absolute;
    background: rgba(191, 191, 191, 0.75);
    border-radius: 50%;
    filter: blur(1px);
    will-change: transform;
    left: -9999px;
    /* Hide by default until JS sets random pos */
    animation-fill-mode: both;
    /* Default streak size, can be varied in JS if needed, or kept uniform */
    width: 200px;
    height: 1.5px;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Animation Keyframes for Stars */
@keyframes drift-left {
    from {
        transform: translateX(100vw);
    }

    to {
        transform: translateX(-100vw);
    }
}

@keyframes drift-right {
    from {
        transform: translateX(-100vw);
    }

    to {
        transform: translateX(100vw);
    }
}

@keyframes twinkle-small {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes twinkle-medium {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes twinkle-large {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
        box-shadow:
            412px 267px rgba(255, 255, 255, 0.8), 1389px 623px rgba(255, 255, 255, 0.8),
            867px 189px rgba(255, 255, 255, 0.8), 1123px 812px rgba(255, 255, 255, 0.8),
            1534px 378px rgba(255, 255, 255, 0.8), 478px 734px rgba(255, 255, 255, 0.8),
            1245px 556px rgba(255, 255, 255, 0.8), 756px 345px rgba(255, 255, 255, 0.8),
            1001px 912px rgba(255, 255, 255, 0.8), 1412px 201px rgba(255, 255, 255, 0.8),
            623px 567px rgba(255, 255, 255, 0.8), 1267px 734px rgba(255, 255, 255, 0.8),
            1556px 445px rgba(255, 255, 255, 0.8), 334px 890px rgba(255, 255, 255, 0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
        box-shadow:
            412px 267px rgba(255, 255, 255, 1) 0 0 10px, 1389px 623px rgba(255, 255, 255, 1) 0 0 10px,
            867px 189px rgba(255, 255, 255, 1) 0 0 10px, 1123px 812px rgba(255, 255, 255, 1) 0 0 10px,
            1534px 378px rgba(255, 255, 255, 1) 0 0 10px, 478px 734px rgba(255, 255, 255, 1) 0 0 10px,
            1245px 556px rgba(255, 255, 255, 1) 0 0 10px, 756px 345px rgba(255, 255, 255, 1) 0 0 10px,
            1001px 912px rgba(255, 255, 255, 1) 0 0 10px, 1412px 201px rgba(255, 255, 255, 1) 0 0 10px,
            623px 567px rgba(255, 255, 255, 1) 0 0 10px, 1267px 734px rgba(255, 255, 255, 1) 0 0 10px,
            1556px 445px rgba(255, 255, 255, 1) 0 0 10px, 334px 890px rgba(255, 255, 255, 1) 0 0 10px;
    }
}

/* Shooting stars container */
#shooting-stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.shooting-star {
    position: absolute;
    width: 4px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 1);
    filter: blur(0.5px);
    animation: shoot-horizontal linear;
}

.shooting-star::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: var(--trail-width, 150px);
    height: var(--trail-height, 2px);
    background: linear-gradient(to left, var(--trail-color, white), transparent);
    transform: translateY(-50%);
    filter: blur(1px);
}

@keyframes shoot-horizontal {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-100vw);
        opacity: 0;
    }
}

.shooting-star-reverse {
    position: absolute;
    width: 4px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 1);
    filter: blur(0.5px);
    animation: shoot-reverse-horizontal linear;
}

.shooting-star-reverse::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: var(--trail-width, 150px);
    height: var(--trail-height, 2px);
    background: linear-gradient(to right, var(--trail-color, white), transparent);
    transform: translateY(-50%);
    filter: blur(1px);
}

@keyframes shoot-reverse-horizontal {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(100vw);
        opacity: 0;
    }
}



.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--spacing-4xl) 0;
}

.hero-title {
    font-size: clamp(var(--font-size-3xl), 6vw, var(--font-size-5xl));
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.title-line {
    display: block;
}

.title-accent {
    background: linear-gradient(135deg, #ffffff, #808080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(var(--font-size-lg), 2vw, var(--font-size-xl));
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto var(--spacing-2xl);
    animation: fadeInUp 0.8s ease 0.4s backwards;
}



.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-lg);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.cta-button.primary {
    background: var(--color-primary);
    color: var(--color-bg-primary);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.cta-button:hover {
    transform: translateY(-2px);
}

.cta-button.primary:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-text-primary);
}

.cta-button svg {
    transition: transform var(--transition-fast);
}

.cta-button:hover svg {
    transform: translateX(4px);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-2xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-line {
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   COMPANY BRANDING (HERO)
   ========================================== */
.company-brand-large {
    font-size: clamp(3.2rem, 8vw, 6.4rem);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: var(--spacing-xl);
    background: linear-gradient(180deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 0.8s ease backwards;
}

/* ==========================================
   SECTION STYLES (ABOUT & CONTACT)
   ========================================== */
section {
    padding: var(--spacing-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-4xl));
    font-weight: 700;
    color: var(--color-text-primary);
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.about-card {
    padding: var(--spacing-xl);
    background: var(--color-surface);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: all 50ms ease;
}

.about-card:hover {
    background: var(--color-surface-hover);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow:
        0 0 25px rgba(255, 255, 255, 0.15),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    color: var(--color-primary);
    transition: all var(--transition-base);
}

.about-card:hover .card-icon {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.card-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.card-description {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
    background: var(--color-bg-secondary);
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .contact-content {
        padding: 0 var(--spacing-md);
    }
}

.contact-text {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
    text-align: center;
    max-width: 100%;
    margin: 0;
}



/* ==========================================
   CONTACT FORM
   ========================================== */
.contact-form {
    width: 100%;
    background: var(--color-surface);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
}

/* Honeypot field - hidden from users */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--color-bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--color-primary);
    color: var(--color-bg-primary);
    font-size: var(--font-size-base);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.button-text {
    display: inline-block;
    transition: opacity var(--transition-fast);
}

.button-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-bg-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.submit-button.loading .button-text {
    opacity: 0;
}

.submit-button.loading .button-loader {
    display: block;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.form-status {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--color-bg-primary);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.footer-brand {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-sm);
}

.footer-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-text-primary);
}

.footer-legal {
    color: var(--color-text-tertiary);
    font-size: var(--font-size-sm);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
}

/* ==========================================
   RESPONSIVE IMPROVEMENTS
   ========================================== */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .scroll-indicator {
        display: none;
    }
}

/* ==========================================
   MOUSE EFFECTS
   ========================================== */
.mouse-spotlight {
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0.3) 30%,
            transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    animation: spotlight-pulse 2s ease-in-out infinite;
}

@keyframes spotlight-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.7;
    }
}

/* Hide spotlight on touch devices when not touching */
@media (hover: none) {
    .mouse-spotlight {
        opacity: 0.5;
    }
}

/* Smooth transition for magnetic elements */
.cta-button,
.submit-button,
.about-card {
    transition: transform 0.08s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Ensure magnetic effect doesn't interfere with hover states */
.cta-button:hover,
.submit-button:hover:not(:disabled),
.about-card:hover {
    transition: transform 0.08s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow var(--transition-base),
        background var(--transition-base),
        border-color var(--transition-base);
}

/* ==========================================
   ACCESSIBILITY: Reduced Motion
   ========================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .starfield-container,
    #shooting-stars-container,
    .mouse-spotlight {
        display: none !important;
    }
}