/* 
  Heliotrope Development LLC - Branding & Design System 
  Primary Color: #DF73FF (Heliotrope Purple)
  Style: Minimalist, high-tech, professional
*/

:root {
    --primary: #DF73FF;
    --primary-rgb: 223, 115, 255;
    --bg: #fbfbfd;
    --text: #1a1a1a;
    --text-muted: #666666;
    --section-bg: #f9f9fb;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 48px;
    overflow: hidden;
}

.brand-card {
    width: 320px;
    height: 480px;
    background-color: #DF73FF;
    border-radius: 24px;

    /* Flexbox forces content to the bottom-left */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 35px;
    /* Adjusts the 'safe zone' around the text */
    box-sizing: border-box;

    font-family: 'Inter', 'Helvetica', sans-serif;
    color: #000;
    text-align: left;
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(var(--primary-rgb), 0.2);
}

.brand-card h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.0;
    font-weight: 800;
    letter-spacing: -1.5px;
    text-align: left;
    overflow-wrap: break-word;
    /* Ensure clear wrapping */
    word-wrap: break-word;
}

.brand-card p {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
    /* Bolder for visibility */
    opacity: 1;
    /* Full visibility */
}

/* CSS Nav Brand - Lightweight & Fast */
.nav-brand-css {
    background-color: #DF73FF;
    border-radius: 8px;
    /* Slightly tighter radius for small bar */
    height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', 'Helvetica', sans-serif;
    color: #000;
    text-decoration: none;
    transition: var(--transition);
}

.nav-brand-css:hover {
    box-shadow: 0 4px 12px rgba(223, 115, 255, 0.4);
    transform: translateY(-1px);
}

.nav-brand-css .brand-name {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 12rem 0 6rem;
    /* Increased top padding to clear fixed nav */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(223, 115, 255, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative glow behind the logo instead of on the image itself */
.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.hero-brand-container {
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
    z-index: 10;
    position: relative;
    animation: cardFloat 6s ease-in-out infinite;
}



/* Hero Brand Glow Effect */
.hero-brand {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-brand:hover {
    box-shadow: 0 0 60px rgba(223, 115, 255, 0.5);
    transform: scale(1.02);
}

/* Specific overrides for the big hero logo */
.hero-brand h1 {
    font-size: 30px !important;
    /* Precise visual balance */
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.hero-brand p {
    font-size: 15.5px !important;
    /* Precise subtitle balance */
    margin-top: 10px;
}


/* .hero-brand:hover removed for JS control */

@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.highlight {
    color: var(--primary);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #ffffff;
    padding: 3rem;
    border-radius: 24px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.1);
}

.project-card h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    /* Stack vertically for very large icons */
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.icon-container {
    width: 240px;
    height: 240px;
    border-radius: 24px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Specific zoom for monsterPB to counteract internal image padding */
.monster-zoom {
    transform: scale(1.42) translateY(-4%);
    /* Adjust this value to perfectly match atmoWake visual weight and vertical center */
}

.project-card p {
    color: var(--text-muted);
    text-align: center;
}

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

.about-content {
    max-width: 800px;
}

.about p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Contact Section */
.contact-link {
    font-size: 2rem;
    font-weight: 700;
    color: #c43eff;
    /* Darker than #DF73FF for better contrast on white/light gray */
    border-bottom: 2px solid transparent;
}

.contact-link:hover {
    border-bottom-color: var(--primary);
}

/* Corporate Information Section */
.corporate {
    background: var(--bg);
}

.corporate-content {
    max-width: 800px;
}

/* Footer */
footer {
    padding: 6rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-content p {
    line-height: 1.8;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Collapsing standard links for clean mobile view */
    }



    /* Make the entire nav header clickable to scroll to contact or top?
       Actually, let's just create a reliable way to get to contact.
       The ::after pseudo-element is a quick hack. A better way is to un-hide just the contact link or inject a mobile menu.
       Given the constraints, let's unhide the Contact link but style it differently, or just add a 'Contact' button in HTML that shows only on mobile.
       Checking index.html structure... we can't easily add HTML without editing index.html.
       Let's stick to the user's specific request: "Back to top" or "minimal Menu".
       I'll enable the 'Contact' link specifically.
    */
    .nav-links {
        display: flex;
        gap: 1rem;
    }

    .nav-links a:not([href="#contact"]) {
        display: none;
    }

    .nav-links a[href="#contact"] {
        display: block;
        background: rgba(223, 115, 255, 0.1);
        padding: 0.5rem 1rem;
        border-radius: 20px;
        color: var(--primary);
        font-weight: 700;
    }

    section {
        padding: 5rem 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .brand-card {
        padding: 25px;
        /* Reduced padding for mobile */
    }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}