/* 
   Modern Glassmorphism Design System 
   Font: Outfit
*/

:root {
    --bg-color: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;

    --primary-color: #6366f1;
    /* Indigo */
    --secondary-color: #ec4899;
    /* Pink */
    --accent-color: #06b6d4;
    /* Cyan */

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --blur-amount: 12px;

    --font-main: 'Outfit', sans-serif;

    --container-width: 1200px;
    --transition-fast: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Ambient Background Glow */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: floating 10s infinite alternate ease-in-out;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: 0;
    right: -50px;
    animation-delay: -5s;
}

.glow-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    top: 40%;
    left: 40%;
    opacity: 0.2;
    animation-duration: 15s;
}

@keyframes floating {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 4rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem 0;
    transition: var(--transition-fast);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.logo .dot {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary.small {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 0.8rem 2rem;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    background: var(--glass-bg);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--glass-highlight);
    border-color: var(--text-secondary);
}

/* Hero Section */
.hero-section {
    padding-top: 150px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-block;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.stats-glass {
    display: flex;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    justify-content: space-around;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-item .count {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-item .label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

/* Hero Visual & Floating Cards */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.main-card {
    width: 350px;
    height: 380px;
    position: relative;
    z-index: 10;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.main-card:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.card-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
}

.circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f57;
}

.yellow {
    background: #febc2e;
}

.green {
    background: #28c840;
}

.card-body {
    padding: 1.5rem;
}

.code-block {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.keyword {
    color: #c084fc;
}

.func {
    color: #60a5fa;
}

.string {
    color: #86efac;
}

.return {
    color: #f472b6;
}

.graph-placeholder {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 100px;
}

.bar {
    width: 100%;
    background: var(--glass-highlight);
    border-radius: 4px;
    height: var(--h);
}

.bar.active {
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
}

.floating-card {
    position: absolute;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 20;
    animation: floating 6s infinite ease-in-out;
}

.floating-card i {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.floating-card span {
    font-weight: 600;
}

.card-1 {
    top: 50px;
    right: 20px;
    animation-delay: -2s;
}

.card-2 {
    bottom: 80px;
    left: 0px;
    animation-delay: -4s;
}

.floating-chicken {
    position: absolute;
    top: -40px;
    right: 40%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    animation: floating 7s infinite ease-in-out;
    animation-delay: -1s;
    z-index: 15;
}

.floating-chicken img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Features Section */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Tools Section */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    justify-content: center;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tool-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* Clock Styles */
.clock-display {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    width: 100%;
    border: 1px solid var(--glass-border);
}

.time {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    font-family: 'Courier New', monospace;
    /* Monospace for steady digits */
    letter-spacing: 2px;
}

.date {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Calculator Styles */
.calculator {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.calc-display {
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    text-align: right;
    border-bottom: 1px solid var(--glass-border);
}

.previous-operand {
    font-size: 1rem;
    color: var(--text-secondary);
    min-height: 1.5rem;
}

.current-operand {
    font-size: 2.5rem;
    color: var(--text-primary);
    font-weight: 600;
    word-wrap: break-word;
    word-break: break-all;
}

.calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 1px;
}

.btn-calc {
    height: 60px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-calc:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-calc.operator {
    color: var(--accent-color);
    font-weight: bold;
}

.btn-calc.equals {
    background: var(--primary-color);
    color: white;
}

.btn-calc.equals:hover {
    background: #4f46e5;
}

.span-2 {
    grid-column: span 2;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
}

.glass-panel:hover {
    background: var(--glass-highlight);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

/* Large Hero Config */
.alien-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
}

.large-panel {
    padding: 4rem;
    background: rgba(15, 23, 42, 0.7);
    border: 2px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 100px rgba(6, 182, 212, 0.1);
}

.large-image {
    width: 450px;
    height: 450px;
}

.large-badge {
    font-size: 1.2rem;
    padding: 0.8rem 1.5rem;
    margin-bottom: 2rem;
}

.creator-content.large-content h1 {
    font-size: 5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.large-origin {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.large-bio {
    font-size: 1.4rem;
    max-width: 600px;
    line-height: 1.6;
}

.large-stats {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.large-stats .stat-val {
    font-size: 3.5rem;
}

.large-btn {
    font-size: 1.2rem;
    padding: 1rem 3rem;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
}

.large-btn:hover {
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.6);
    transform: scale(1.05);
}

/* Creator Section (Shared/Refined) */
.creator-panel {
    display: flex;
    align-items: center;
    gap: 4rem;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(15, 23, 42, 0.6));
}

.creator-image-container {
    position: relative;
    width: 300px;
    height: 300px;
    flex-shrink: 0;
}

.creator-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
    position: relative;
    z-index: 2;
}

.planet-orbit {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: spin 10s linear infinite;
    z-index: 1;
}

.planet {
    position: absolute;
    top: 50%;
    left: -10px;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary-color);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.creator-content h2 {
    font-size: 3rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.origin {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.bio {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.alien-tech-stats {
    display: flex;
    gap: 3rem;
}

.tech-stat {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-lbl {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 968px) {
    .creator-panel {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .alien-tech-stats {
        justify-content: center;
    }
}

/* Footer */
.footer-glass {
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.4);
    padding: 3rem 0;
    margin-top: 5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: color 0.3s;
}

.social-icon:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 968px) {
    h1 {
        font-size: 3rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .stats-glass {
        margin: 0 auto;
        max-width: 500px;
    }

    .hero-visual {
        display: none;
    }

    /* Hide complicated visual on mobile for simplicity or adjust */
}

@media (max-width: 768px) {

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        color: var(--text-primary);
    }

    h1 {
        font-size: 2.5rem;
    }
}

/* Modal Overlay Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    /* Flex to center content */
    opacity: 1;
}

.modal-content {
    position: relative;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.image-wrapper {
    position: relative;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.5);
    display: inline-block;
    max-width: 80%;
    max-height: 80vh;
}

.image-wrapper img {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-content h2 {
    margin-top: 1.5rem;
    color: var(--text-primary);
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.close-modal {
    position: absolute;
    top: -50px;
    right: -50px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    transition: rotate 0.3s ease;
}

.close-modal:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

/* Responsive adjustment for close button */
@media (max-width: 768px) {
    .close-modal {
        top: -40px;
        right: 0;
    }
}