/* FAMILY.CO Design System */
:root {
    /* Brand Colors - HSL Format */
    --primary: 180 25% 94%; /* Lightest Teal */
    --primary-foreground: 220 11% 31%;
    
    --secondary: 232 50% 58%; /* Indigo Blue */
    --secondary-foreground: 0 0% 100%;
    
    --accent: 45 93% 47%; /* Golden Yellow */
    --accent-foreground: 0 0% 100%;
    
    --musk-rose: 340 35% 72%; /* Musk Rose Pink */
    --musk-rose-foreground: 0 0% 100%;
    
    --background: 0 0% 100%; /* Pure White */
    --foreground: 220 11% 31%; /* Dark Charcoal */

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, hsl(var(--primary)), hsl(220 13% 91%));
    
    /* Shadows */
    --shadow-elegant: 0 10px 30px -10px hsl(var(--primary) / 0.3);
    --shadow-soft: 0 4px 20px -4px hsl(220 11% 31% / 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--gradient-hero);
    color: hsl(var(--foreground));
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
.header {
    padding: 2rem 1rem;
    position: relative;
    z-index: 10;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.logo h2 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: hsl(var(--foreground));
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 10;
}

.hero-section {
    text-align: center;
    max-width: 4rem;
    margin: 0 auto;
    width: 100%;
    max-width: 1000px;
}

/* Tagline Container */
.tagline-container {
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.main-tagline {
    font-size: 2.5rem;
    font-weight: 300;
    color: hsl(var(--foreground));
    line-height: 1.2;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.accent {
    color: hsl(var(--accent));
    font-weight: 500;
}

/* Subtitle */
.subtitle {
    font-size: 1.25rem;
    color: hsl(var(--foreground) / 0.7);
    font-weight: 300;
    max-width: 32rem;
    margin: 0 auto 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

/* Buttons */
.buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.tech-button-container {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.9s forwards;
}

.btn {
    padding: 1rem 3rem;
    font-size: 1.125rem;
    font-weight: 500;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
    box-shadow: var(--shadow-soft);
    transform: translateY(0);
    opacity: 0;
    animation: scaleIn 0.6s ease-out forwards;
}

.btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-elegant);
}

.btn-architecture {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    animation-delay: 0.8s;
}

.btn-architecture:hover {
    background: hsl(var(--secondary) / 0.9);
}

.btn-influence {
    background: hsl(var(--musk-rose));
    color: hsl(var(--musk-rose-foreground));
    animation-delay: 1s;
}

.btn-influence:hover {
    background: hsl(var(--musk-rose) / 0.9);
}

.btn-tech {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: 1px solid hsl(var(--primary-foreground) / 0.2);
    opacity: 0.5;
    cursor: not-allowed;
    animation-delay: 1.2s;
}

.btn-tech:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
}

.coming-soon {
    margin-left: 0.5rem;
    font-size: 0.75rem;
}

/* Footer */
.footer {
    padding: 2rem 1rem;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: hsl(var(--foreground) / 0.6);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: hsl(var(--foreground) / 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: hsl(var(--accent));
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: hsl(var(--background));
    padding: 2rem;
    border-radius: 1rem;
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: hsl(var(--foreground) / 0.6);
}

.modal-close:hover {
    color: hsl(var(--foreground));
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.modal-content p {
    color: hsl(var(--foreground) / 0.7);
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Word Animation */
.word-animate {
    display: inline-block;
    opacity: 0;
    animation: slideInFromTop 0.6s ease-out forwards;
}


/* =======================
   Tagline Animation Styles
   ======================= */
.main-tagline {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.word-animate {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    animation: wordFadeIn 0.6s ease forwards;
}

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

/* Accent styling */
.accent {
    color: hsl(var(--accent));
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* =======================
   Modal Fade Styles
   ======================= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #fff;
    color: #111;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.4s ease;
}

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

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
}


/* Responsive Design */
@media (min-width: 640px) {
    .buttons-container {
        flex-direction: row;
    }
    
    .main-tagline {
        font-size: 3.5rem;
    }
    
    .tagline-container {
        height: 8rem;
    }
}

@media (min-width: 768px) {
    .main-tagline {
        font-size: 4rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }
    
    .tagline-container {
        height: 10rem;
    }
}

@media (min-width: 1024px) {
    .main-tagline {
        font-size: 5rem;
    }
    
    .tagline-container {
        height: 12rem;
    }
}

/* Hover effects for buttons */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}


