:root {
    --bg-dark: #0a0a0c;
    --card-bg: #151518;
    --accent: #00f2ff;
    --accent-dim: rgba(0, 242, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a5;
    --header-height: 80px;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.floating-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 1000;
    background: rgba(20, 20, 25, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    transition: var(--transition);
}

.floating-header nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.floating-header nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.floating-header nav ul li a:hover {
    color: var(--accent);
}

/* Sections */
.section {
    padding: 120px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
    text-align: center;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #666 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#stars-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(circle at center, #0d1117 0%, #050508 100%);
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(rgba(5, 5, 8, 0.4), rgba(5, 5, 8, 0.8)), url('hero_bg.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: translateZ(0);
}

#hero .content h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

#hero .content h1 span {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-dim);
}

#hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.1);
}

.service-card .icon {
    font-size: 3rem;
    font-weight: 800;
    opacity: 0.1;
    position: absolute;
    top: 20px;
    right: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent);
}

/* Scrollytelling Portfolio */
.scrolly-section {
    height: 350vh;
    /* Adjusted for faster transitions */
    position: relative;
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-list {
    width: 100%;
    height: 100%;
    position: relative;
}

.project-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 10%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: scale(0.9);
}

.project-item.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.project-info {
    max-width: 400px;
}

.project-info h3 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.project-link {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 30px;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid var(--accent);
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px var(--accent-dim);
}

.project-image {
    width: 50%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-item.active .project-image img,
.project-image:hover img {
    transform: scale(1.05);
}

/* Specific adjustment for SVG or contained images */
#project-1 .project-image img,
#project-2 .project-image img,
#project-3 .project-image img,
#project-4 .project-image img {
    object-fit: contain;
    padding: 40px;
}

/* Contact Section - Neon Icons */
.contact-icons-container {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.neon-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
}

.neon-icon svg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
    transition: var(--transition);
}

.neon-icon span {
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Mail Icon Hover - Blue Neon */
.mail-icon:hover {
    color: #fff;
}

.mail-icon:hover svg {
    color: var(--accent);
    filter: drop-shadow(0 0 10px var(--accent)) drop-shadow(0 0 25px var(--accent-dim));
    transform: translateY(-10px);
}

/* WhatsApp Icon Hover - Greenish/Cyan Neon */
.whatsapp-icon:hover {
    color: #fff;
}

.whatsapp-icon:hover svg {
    color: #25d366;
    /* Using WA green but could also use cyan for more sobriety */
    color: #00f2ff;
    /* Keeping the cyan accent for sobriety as requested */
    filter: drop-shadow(0 0 10px #00f2ff) drop-shadow(0 0 25px rgba(0, 242, 255, 0.4));
    transform: translateY(-10px);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .project-item {
        flex-direction: column-reverse;
        justify-content: center;
        gap: 30px;
        text-align: center;
    }

    .project-image {
        width: 100%;
    }

    .section-title {
        font-size: 2.5rem;
    }
}