/* index.css - Premium Styles for Pharus Studio */

/* Custom Fonts & Base Variables */
:root {
    --color-primary: #051625;        /* Midnight Charcoal */
    --color-primary-rgb: 5, 22, 37;
    --color-secondary: #006a61;      /* Seafoam Teal */
    --color-secondary-rgb: 0, 106, 97;
    --color-accent: #38bdf8;         /* Sky Blue Accent */
    --color-accent-rgb: 56, 189, 248;
    --color-background: #fcf9f8;     /* Off-White */
    --color-surface-subtle: #f9f9f9;
    --color-surface-accent: #e8e8ff;  /* Lavender-Grey */
    --color-on-surface: #1c1b1b;
    --color-text-muted: #5c6b79;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-background);
}
::-webkit-scrollbar-thumb {
    background: rgba(var(--color-primary-rgb), 0.2);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--color-primary-rgb), 0.5);
}

/* Custom Selection */
::selection {
    background-color: var(--color-surface-accent);
    color: var(--color-primary);
}

body {
    font-family: 'Hanken Grotesk', sans-serif;
    background-color: var(--color-background);
    color: var(--color-on-surface);
    overflow-x: hidden;
}

/* Custom Typography classes for Tailwind integration */
.font-display {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Premium Grid Background */
.grid-bg {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(var(--color-primary-rgb), 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(var(--color-primary-rgb), 0.03) 1px, transparent 1px);
    background-position: center top;
}



/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hover effects with structural lines */
.border-draw-hover {
    position: relative;
}
.border-draw-hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.border-draw-hover:hover::after {
    width: 100%;
}

/* Text Masking Reveal */
.char-container {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Image reveal container */
.img-reveal-container {
    position: relative;
    overflow: hidden;
}

.img-reveal-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    transform: translateY(0);
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

.img-reveal-container.revealed::after {
    transform: translateY(101%);
}

/* Parallax scroll frame */
.parallax-wrap {
    overflow: hidden;
    position: relative;
}

.parallax-img {
    height: 115%;
    width: 100%;
    object-fit: cover;
    transform: translateY(-7.5%);
}

/* Ambient glow blobs */
.glow-blob {
    filter: blur(120px);
    opacity: 0.6;
    mix-blend-mode: multiply;
    animation: drift 20s infinite alternate ease-in-out;
}

@keyframes drift {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    50% {
        transform: translate(40px, -60px) scale(1.2);
    }
    100% {
        transform: translate(-30px, 40px) scale(0.9);
    }
}

/* Service item draw details */
.service-list-item {
    border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.1);
    transition: border-bottom-color 0.3s;
}
.service-list-item:hover {
    border-bottom-color: rgba(var(--color-primary-rgb), 1);
}

/* Magnetic buttons */
.btn-magnetic {
    transition: transform 0.1s ease-out;
}

/* Logo transition on scroll */
.nav-logo {
    height: 4rem; /* Mobile default: 64px */
    transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
@media (min-width: 768px) {
    .nav-logo {
        height: 7rem; /* Desktop default: 112px, tall and very readable! */
    }
}

/* Shrink states when navigation scroll class (py-4) is active */
nav.py-4 .nav-logo {
    height: 2.5rem; /* Mobile scrolled: 40px */
}
@media (min-width: 768px) {
    nav.py-4 .nav-logo {
        height: 4rem; /* Desktop scrolled: 64px */
    }
}

/* Navigation Bar transition */
#main-nav {
    transition: padding 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                background-color 0.4s, 
                box-shadow 0.4s;
}

/* Typewriter blinking cursor */
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.typed-cursor {
    animation: cursorBlink 0.9s infinite;
    margin-left: 2px;
}
