@font-face {
    font-family: 'Quicksand';
    src: url('font/Quicksand/Quicksand-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('font/Poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('font/Poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('font/Poppins/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('font/Poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {

    --primary: #006eb6;

    --primary-op: rgba(0, 110, 182, 0.1);

    --accent: #f3e7a2;

    --bg-primary: #f8f9fa;

    --bg-secondary: #ffffff;

    --text-primary: #1a1a1a;

    --text-secondary: #555555;

    --glass-bg: rgba(255, 255, 255, 0.7);

    --glass-border: rgba(255, 255, 255, 0.5);

    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);

    --nav-height: 80px;

    --transition: all 0.3s ease;



    /* Font - Bytt 'Quicksand' med 'Poppins' for å teste ut hvilken som ser best ut */
    --font-main: 'Quicksand', sans-serif;

}



[data-theme="dark"] {

    --bg-primary: #0f172a;

    --bg-secondary: #1e293b;

    --text-primary: #f8fafc;

    --text-secondary: #cbd5e1;

    --glass-bg: rgba(30, 41, 59, 0.6);

    --glass-border: rgba(255, 255, 255, 0.08);

    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

}



[data-theme="dark"] .highlight,

[data-theme="dark"] .accent-text,

[data-theme="dark"] .nav-links a.active,

[data-theme="dark"] .nav-links a:hover {

    color: var(--accent);

}



[data-theme="dark"] .nav-links a::after {

    background-color: var(--accent);

}



[data-theme="dark"] .btn-primary {

    background-color: var(--primary);

    border-color: var(--primary);

    color: white;

}



[data-theme="dark"] .btn-primary:hover {

    background-color: transparent;

    color: var(--primary);

    /* Keep primary here or switch to accent? Primary is okay on button hover if it has a border */

    border-color: var(--primary);

}



* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



html {

    scroll-behavior: smooth;

    scroll-padding-top: 80px;

    /* Match nav height closely */

}



/* section { scroll-margin-top removed to avoid double gap } */



body {

    font-family: var(--font-main);

    background-color: var(--bg-primary);

    color: var(--text-primary);

    line-height: 1.6;

    overflow-x: hidden;

    transition: background-color 0.3s, color 0.3s;

}



h1,

h2,

h3,

h4,

h5,

h6 {

    font-family: 'Poppins', sans-serif;

    font-weight: 600;

}



.nowrap {

    white-space: nowrap;

}



/* Background Blobs */

.blob-container {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100vh;

    z-index: -1;

    overflow: hidden;

    pointer-events: none;

}



.blob-container::after {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 150px;

    background: linear-gradient(to bottom, var(--bg-primary), transparent);

    z-index: 1;

}



.blob {

    position: absolute;

    border-radius: 50%;

    filter: blur(80px);

    opacity: 0.5;

    z-index: -1;

}



.blob-1 {

    top: -15%;

    left: -10%;

    width: 50vw;

    height: 50vw;

    background: var(--primary);

    animation: moveBlob1 25s ease-in-out infinite;

}



.blob-2 {

    bottom: -15%;

    right: -10%;

    width: 40vw;

    height: 40vw;

    background: var(--accent);

    animation: moveBlob2 20s ease-in-out infinite;

}



.blob-3 {

    top: 40%;

    left: 50%;

    width: 35vw;

    height: 35vw;

    background: linear-gradient(135deg, var(--primary), var(--accent));

    opacity: 0.3;

    animation: moveBlob3 30s ease-in-out infinite;

}



@keyframes moveBlob1 {



    0%,

    100% {

        transform: translate(0, 0) scale(1);

    }



    25% {

        transform: translate(80px, 60px) scale(1.05);

    }



    50% {

        transform: translate(120px, 100px) scale(1);

    }



    75% {

        transform: translate(40px, 80px) scale(0.95);

    }

}



@keyframes moveBlob2 {



    0%,

    100% {

        transform: translate(0, 0) scale(1);

    }



    25% {

        transform: translate(-60px, -80px) scale(0.95);

    }



    50% {

        transform: translate(-100px, -60px) scale(1.05);

    }



    75% {

        transform: translate(-40px, -100px) scale(1);

    }

}



@keyframes moveBlob3 {



    0%,

    100% {

        transform: translate(-50%, 0) scale(1);

    }



    33% {

        transform: translate(-60%, 50px) scale(1.1);

    }



    66% {

        transform: translate(-40%, -50px) scale(0.9);

    }

}



/* Layout */

.container {

    max-width: 1200px;

    margin: 0 auto;

    padding: 0 2rem;

}



/* Glassmorphism */

.glass {

    background: var(--glass-bg);

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

    border: 1px solid var(--glass-border);

    box-shadow: var(--glass-shadow);

    border-radius: 20px;

}



/* Navbar */

.navbar {

    position: fixed;

    top: 20px;

    left: 50%;

    transform: translateX(-50%);

    width: 90%;

    max-width: 1200px;

    min-height: var(--nav-height);

    z-index: 1000;

    border-radius: 16px;

    display: flex;

    justify-content: center;

    transition: var(--transition);

    /* Remove explicit height to allow expansion */

}



/* Navigation Container */

.nav-container {

    position: relative;

    width: 100%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    flex-wrap: wrap;

    /* Allow wrapping for mobile menu */

    padding: 0 2rem;

    /* Ensure no extra padding causes issues */

    min-height: var(--nav-height);

    /* Keep the top bar height consistent */

    align-content: flex-start;

}



/* Ensure top bar items have fixed height to match navbar height and don't jump */

.nav-container>.logo,

.nav-container>.nav-controls {

    height: var(--nav-height);

    display: flex;

    /* Ensure they remain flex containers */

    align-items: center;

}



/* Mobile Nav Expanding Header */

.mobile-nav-expand {

    position: static;

    width: 100%;

    max-height: 0;

    overflow: hidden;

    opacity: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: flex-start;

    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;

    padding: 0;

    background: transparent;

    border: none;

    box-shadow: none;

    pointer-events: none;

    order: 99;

    /* Push to bottom of flex container */

    margin-top: 0;

}



/* Expanded State */

.navbar.expanded .mobile-nav-expand {

    max-height: 400px;

    opacity: 1;

    pointer-events: auto;

    margin-top: 1rem;

    padding-bottom: 1rem;

}



.mobile-nav-links {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 1.5rem;

    width: 100%;

}



.mobile-nav-links a {

    font-size: 1.2rem;

    color: var(--text-primary);

    text-decoration: none;

    font-weight: 600;

    width: 100%;

    text-align: center;

    padding: 0.5rem;

    border-radius: 10px;

    transition: background 0.2s;

}



.mobile-nav-links a:hover {

    background: rgba(255, 255, 255, 0.1);

    color: var(--primary);

}



.logo {

    display: flex;

    align-items: center;

    gap: 10px;

    text-decoration: none;

    color: var(--text-primary);

    font-weight: 700;

    font-size: 1.5rem;

}



.accent-text {

    color: var(--primary);

}



.nav-links {

    display: flex;

    gap: 2rem;

}



.nav-links a {

    text-decoration: none;

    color: var(--text-primary);

    font-weight: 500;

    transition: var(--transition);

    position: relative;

}



.nav-links a::after {

    content: '';

    position: absolute;

    width: 0;

    height: 2px;

    bottom: -4px;

    left: 0;

    background-color: var(--primary);

    transition: width 0.3s;

}



.nav-links a:hover::after {

    width: 100%;

}



.nav-controls {

    display: flex;

    align-items: center;

    gap: 1.5rem;

}



.switches-wrapper {

    position: fixed;

    bottom: 30px;

    left: 30px;

    display: flex;

    flex-direction: column;

    gap: 12px;

    align-items: center;

    z-index: 2000;

    /* Above everything */

    background: var(--glass-bg);

    padding: 12px;

    border-radius: 25px;

    border: 1px solid var(--glass-border);

    backdrop-filter: blur(15px);

    -webkit-backdrop-filter: blur(15px);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

    transition: transform 0.3s ease, opacity 0.3s ease;

}



.switches-wrapper:hover {

    transform: translateY(-5px);

}



/* Toggle Switches */

.switch-container {

    position: relative;

    display: flex;

    align-items: center;

    width: 74px;

    height: 36px;

    background: rgba(255, 255, 255, 0.1);

    border-radius: 30px;

    cursor: pointer;

    border: 1px solid var(--text-secondary);

    transition: var(--transition);

    user-select: none;

    padding: 0;

    /* Important: reset padding for manual calc */

    box-sizing: border-box;

}



.switch-slider {

    position: absolute;

    top: 3px;

    left: 4px;

    width: 28px;

    height: 28px;

    background: var(--primary);

    border-radius: 50%;

    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), background-color 0.3s;

    z-index: 1;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);

}



.switch-container span,

.switch-container svg {

    flex: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    z-index: 2;

    height: 100%;

    font-size: 0.85rem;

    font-weight: 700;

    color: var(--text-secondary);

    transition: color 0.3s;

    pointer-events: none;

}



.switch-container svg {

    width: 16px;

    /* slightly smaller icon for visual balance inside 28px circle */

    height: 16px;

}



/* Active State Styles */

/* Theme Toggle Logic */

/* Translation distance = (ContainerWidth - 2*Border) / 2 = 36px */

[data-theme="dark"] .theme-switch .switch-slider {

    transform: translateX(36px);

    background: var(--accent);

}



[data-theme="dark"] .theme-switch .moon-icon {

    color: var(--bg-secondary);

    /* Dark silhouette for better contrast on yellow */

}



[data-theme="light"] .theme-switch .sun-icon {

    color: white;

}



/* Language Toggle Logic */

.lang-switch.active-right .switch-slider {

    transform: translateX(36px);

}



.lang-switch span.active {

    color: white;

}



[data-theme="dark"] .lang-switch span.active {

    color: var(--bg-primary);

}



.mobile-menu-btn {

    display: none;

    flex-direction: column;

    gap: 6px;

    cursor: pointer;

}



.mobile-menu-btn span {

    display: block;

    width: 25px;

    height: 3px;

    background-color: var(--text-primary);

    transition: var(--transition);

}



/* Removed old mobile menu CSS */



/* Hero Section */

.hero {

    min-height: 100vh;

    padding-top: 120px;

    display: flex;

    align-items: center;

    position: relative;

}



.hero-container {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 4rem;

    align-items: center;

}



.hero-content h1 {

    font-size: clamp(2.2rem, 8vw, 4rem);

    line-height: 1.1;

    margin-bottom: 1.5rem;

}



.highlight {

    color: var(--primary);

    position: relative;

    display: inline-block;

}



.hero-content p {

    font-size: 1.25rem;

    color: var(--text-secondary);

    margin-bottom: 2.5rem;

    max-width: 500px;

}



.hero-buttons {

    display: flex;

    gap: 1rem;

}



.btn {

    padding: 0.8rem 2rem;

    border-radius: 50px;

    font-weight: 600;

    text-decoration: none;

    transition: var(--transition);

    cursor: pointer;

}



.btn-primary {

    background-color: var(--primary);

    color: white;

    border: 2px solid var(--primary);

}



.btn-primary:hover {

    background-color: transparent;

    color: var(--primary);

}



.btn-secondary {

    background-color: transparent;

    color: var(--text-primary);

    border: 2px solid var(--text-primary);

}



.btn-secondary:hover {

    background-color: var(--text-primary);

    color: var(--bg-primary);

}



.hero-visual {

    position: relative;

    height: 400px;

    display: flex;

    justify-content: center;

    align-items: center;

}



.visual-circle {

    width: 350px;

    height: 350px;

    border-radius: 50%;

    background: linear-gradient(135deg, var(--primary), var(--accent));

    opacity: 0.8;

    position: absolute;

    z-index: -1;

}



.floating-card {

    position: absolute;

    padding: 1.5rem;

    display: flex;

    align-items: center;

    gap: 1rem;

    width: auto;

    min-width: 180px;

    padding-right: 2rem;

    animation: float 6s ease-in-out infinite;

}



.card-1 {

    top: 20%;

    left: 0;

    animation-delay: 0s;

}



.card-2 {

    bottom: 20%;

    right: 0;

    animation-delay: 2s;

}



.card-icon {

    font-size: 2rem;

}



.card-text {

    font-weight: 600;

}



@keyframes float {



    0%,

    100% {

        transform: translateY(0);

    }



    50% {

        transform: translateY(-20px);

    }

}



/* About Section */

.about {

    padding: 6rem 0;

}



.about-container {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 4rem;

    align-items: center;

}



.about-image {

    display: flex;

    justify-content: center;

}



.img-wrapper {

    width: 100%;

    max-width: 320px;

    /* Reduced from 400px (20% smaller) */

    aspect-ratio: 1;

    border-radius: 50%;

    /* Make it circular */

    /* overflow: hidden; - Removed to preserve 3D space */

    padding: 0;

    /* Removing padding for seamless circle */

}



/* Profile Image Flip Animation */

.img-wrapper {

    perspective: 1000px;

}



.profile-flipper {

    position: relative;

    width: 100%;

    height: 100%;

    text-align: center;

    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);

    transform-style: preserve-3d;

}



.profile-img {

    position: absolute;

    width: 100%;

    height: 100%;

    top: 0;

    left: 0;

    object-fit: cover;

    border-radius: 50%;

    -webkit-backface-visibility: hidden;

    backface-visibility: hidden;

}



/* Dark Mode Image (Front Face) */

.profile-dark {

    z-index: 2;

    transform: rotateY(0deg);

}



/* Light Mode Image (Back Face) */

.profile-light {

    transform: rotateY(180deg);

}



/* Trigger Flip on Light Mode */

[data-theme="light"] .profile-flipper {

    transform: rotateY(180deg);

}



.about-content h2 {

    font-size: 2.5rem;

    margin-bottom: 1.5rem;

}



.about-text p {

    color: var(--text-secondary);

    margin-bottom: 1rem;

    font-size: 1.1rem;

}



.about-stats {

    display: inline-flex;

    gap: 3rem;

    margin-top: 2rem;

    padding: 1.5rem 2.5rem;

}



.stat-item {

    display: flex;

    flex-direction: column;

    align-items: center;

}



.stat-number {

    font-size: 2rem;

    font-weight: 700;

    color: var(--primary);

    line-height: 1;

}



.stat-label {

    font-size: 0.9rem;

    color: var(--text-secondary);

    margin-top: 5px;

}



@media (max-width: 768px) {

    .img-wrapper {

        max-width: 240px;

    }



    .about-content {

        margin-top: -40px;

        position: relative;

        z-index: 2;

    }



    .about-container {

        grid-template-columns: 1fr;

        text-align: left;

    }



    .about-stats {

        width: 100%;

        justify-content: space-around;

        gap: 1rem;

    }

}



/* Services */

.services {

    padding: 6rem 0;

}



.section-header {

    text-align: center;

    margin-bottom: 4rem;

}



.section-header h2 {

    font-size: 2.5rem;

    margin-bottom: 1rem;

    /* Fix for text rendering glitches */

    letter-spacing: normal;

    word-spacing: normal;

    font-kerning: normal;

    font-variant-ligatures: none;

    width: 100%;

}



.services-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

    gap: 2rem;

}



.service-card {

    padding: 2.5rem;

    text-align: center;

    transition: transform 0.3s;

}



.service-card:hover {

    transform: translateY(-10px);

}



/* 3D Icon Container */

.icon-box {

    margin-bottom: 2rem;

    height: 120px;

    display: flex;

    justify-content: center;

    align-items: center;

    perspective: 800px;

    /* Closer perspective for more 3D drama */

}



.icon-3d-scene {

    width: 60px;

    height: 60px;

    position: relative;

    transform-style: preserve-3d;

    animation: rotateIcon 10s linear infinite;

}



.service-card:hover .icon-3d-scene {

    animation-duration: 3s;

    /* Fast spin on hover */

}



@keyframes rotateIcon {

    from {

        transform: rotateY(0deg) rotateX(10deg);

    }



    to {

        transform: rotateY(360deg) rotateX(10deg);

    }

}



/* Common Glass Style for 3D Elements */

.glass-shape {

    position: absolute;

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.3);

    backdrop-filter: blur(5px);

    box-shadow: 0 0 15px rgba(0, 110, 182, 0.2);

    transform-style: preserve-3d;

}



/* --- 1. Web Design: 3D Palette --- */

.palette-board {

    width: 80px;

    height: 60px;

    border-radius: 50% 50% 50% 10%;

    transform: translateZ(0);

    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(243, 231, 162, 0.1));

    border-color: rgba(243, 231, 162, 0.5);

    left: -10px;

}



.palette-blob {

    width: 12px;

    height: 12px;

    border-radius: 50%;

    position: absolute;

    transform: translateZ(15px);

    /* Float above board */

    box-shadow: 0 0 10px currentColor;

}



.palette-brush {

    width: 80px;

    height: 8px;

    background: linear-gradient(90deg, #8e44ad, #3498db);

    position: absolute;

    top: 20px;

    left: 10px;

    transform: translateZ(30px) rotate(-45deg);

    border-radius: 4px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);

}



/* --- 2. Development: 3D Laptop --- */

.laptop-base {

    width: 70px;

    height: 50px;

    position: absolute;

    top: 20px;

    left: -5px;

    transform: rotateX(90deg) translateZ(-25px);

    background: rgba(0, 110, 182, 0.2);

    border: 1px solid rgba(0, 110, 182, 0.5);

    border-radius: 4px;

    box-shadow: inset 0 0 20px rgba(0, 110, 182, 0.2);

}



.laptop-screen {

    width: 70px;

    height: 50px;

    position: absolute;

    top: -20px;

    left: -5px;

    transform: translateZ(25px);

    /* Bring to pivot point */

    transform-origin: bottom;

    background: rgba(0, 0, 0, 0.4);

    border: 1px solid rgba(255, 255, 255, 0.4);

    border-radius: 4px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 4px;

    padding: 8px;

}



.code-line {

    height: 4px;

    border-radius: 2px;

    width: 80%;

    background: rgba(46, 204, 113, 0.8);

    box-shadow: 0 0 5px rgba(46, 204, 113, 0.5);

}



.code-line:nth-child(2) {

    width: 60%;

    background: rgba(52, 152, 219, 0.8);

    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);

}



.code-line:nth-child(3) {

    width: 50%;

    background: rgba(231, 76, 60, 0.8);

    box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);

}



/* --- 3. SEO: 3D Rocket --- */

.rocket-body {

    width: 30px;

    height: 70px;

    border-radius: 50% 50% 10% 10%;

    background: linear-gradient(180deg, rgba(231, 76, 60, 0.8), rgba(192, 57, 43, 0.8));

    position: absolute;

    left: 15px;

    top: -20px;

    transform: translateZ(0);

    box-shadow: 0 0 20px rgba(231, 76, 60, 0.4);

    border: 1px solid rgba(255, 255, 255, 0.3);

}



.rocket-window {

    width: 14px;

    height: 14px;

    border-radius: 50%;

    background: #ecf0f1;

    position: absolute;

    top: 15px;

    left: 8px;

    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);

}



.rocket-fin {

    width: 20px;

    height: 30px;

    background: rgba(231, 76, 60, 0.9);

    position: absolute;

    bottom: 5px;

    border: 1px solid rgba(255, 255, 255, 0.2);

}



.fin-left {

    left: -10px;

    transform: rotateY(90deg);

}



.fin-right {

    right: -10px;

    transform: rotateY(90deg);

}





.rocket-fire {

    width: 20px;

    height: 20px;

    background: linear-gradient(#f1c40f, transparent);

    position: absolute;

    bottom: -15px;

    left: 20px;

    border-radius: 50%;

    filter: blur(2px);

    animation: flicker 0.2s infinite alternate;

}



@keyframes flicker {

    from {

        opacity: 0.8;

        transform: scale(1);

    }



    to {

        opacity: 0.5;

        transform: scale(0.9);

    }

}



.service-card h3 {

    margin-bottom: 1rem;

    font-size: 1.5rem;

}



/* Portfolio */

.portfolio {

    padding: 6rem 0;

}



.portfolio-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

    gap: 2rem;

}



.project-card {

    position: relative;

    height: 300px;

    /* Fixed height for uniformity */

    overflow: hidden;

    cursor: pointer;

    border-radius: 20px;

    /* Match .glass card styling */

    display: block;

    text-decoration: none;

    color: inherit;

    transition: transform 0.3s ease;

}



.project-card:hover {

    transform: scale(1.02);

}



/* Background Image with Blur */

.project-bg {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    background-size: cover;

    background-position: center;

    filter: blur(8px);

    transform: scale(1.1);

    /* Prevent blur edges */

    transition: filter 0.4s ease, transform 0.4s ease;

    z-index: 1;

}



/* Overlay to lighten background in light mode */

.project-bg::after {

    content: '';

    position: absolute;

    inset: 0;

    background: rgba(255, 255, 255, 0.4);

    /* Light overlay for light mode */

    transition: background 0.3s ease;

}



/* Dark mode: darken background instead */

[data-theme="dark"] .project-bg::after {

    background: rgba(0, 0, 0, 0.5);

}



.project-card:hover .project-bg {

    filter: blur(0);

    transform: scale(1);

}



/* Centered Logo Container */

.project-logo {

    position: absolute;

    inset: 0;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: center;

    pointer-events: none;

    padding: 2rem;

    opacity: 1;

    transition: all 0.3s ease;

}



/* SVG Styling - use primary color in light mode */

.project-logo svg {

    max-width: 80%;

    max-height: 80%;

    width: auto;

    height: auto;

    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));

}



/* Logo fill colors - light mode: black */
/* Logo fill colors - light mode: black - REMOVED to allow specific logo colors */
/* .project-logo svg path {
    fill: #1a1a1a !important;
    stroke: #1a1a1a;
    stroke-width: 2px;
    transition: fill 0.3s ease, stroke 0.3s ease;
} */

/* Logo fill colors - dark mode: white - REMOVED to allow specific logo colors */
/* [data-theme="dark"] .project-logo svg path {
    fill: #ffffff !important;
    stroke: #ffffff;
} */



/* Moving Edge Glow Animation - Applied to 'path' elements in HTML */

.glow-edge {

    fill: currentColor;

    /* Use current fill */

    fill-opacity: 1;

    stroke: var(--accent);

    /* Glow color */

    stroke-width: 5px;

    stroke-dasharray: 10;

    /* Simulate dash/gap */

    stroke-dashoffset: 10;

    vector-effect: non-scaling-stroke;

    /* Ensure consistent stroke width */

    animation: edgeMove 20s linear infinite;

    /* Slower, smoother loop */

    stroke-linecap: round;

    opacity: 0.8;

}



@keyframes edgeMove {

    to {

        stroke-dashoffset: 2000;

        /* Move dash pattern */

    }

}



/* Text/Info - always visible at bottom */

.project-info {

    position: absolute;

    bottom: 0;

    left: 0;

    width: 100%;

    padding: 1.5rem;

    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7), transparent);

    color: var(--text-primary);

    z-index: 3;

}



/* Dark mode: use dark gradient and white text */

[data-theme="dark"] .project-info {

    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6), transparent);

    color: white;

}



.project-info h3 {

    margin: 0 0 0.5rem 0;

    font-size: 1.4rem;

}



/* Instagram CTA Box */

.instagram-cta {

    margin-top: 3rem;

    padding: 2.5rem;

    text-align: center;

    background: linear-gradient(135deg, var(--glass-bg), rgba(225, 48, 108, 0.08));

    border: 1px solid var(--glass-border);

}



.instagram-cta-content {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 1.5rem;

}



@media (min-width: 768px) {

    .instagram-cta-content {

        flex-direction: row;

        justify-content: center;

        text-align: left;

        gap: 2.5rem;

    }

}



.instagram-cta-text h3 {

    margin: 0 0 0.5rem 0;

    font-size: 1.4rem;

    color: var(--text-primary);

}



.instagram-cta-text p {

    margin: 0;

    color: var(--text-secondary);

    max-width: 400px;

}



.instagram-cta-button {

    display: inline-flex;

    align-items: center;

    gap: 0.75rem;

    padding: 0.875rem 1.75rem;

    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);

    color: white;

    text-decoration: none;

    border-radius: 50px;

    font-weight: 600;

    font-size: 1rem;

    transition: transform 0.3s ease, box-shadow 0.3s ease;

    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.3);

}



.instagram-cta-button:hover {

    transform: translateY(-3px) scale(1.02);

    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.4);

}



.instagram-cta-button svg {

    width: 24px;

    height: 24px;

    fill: white;

}



/* =================================

   PROJECT LOGO ANIMATIONS

   - Fade/scale-in on appear

   - Shimmer effect on container

   - Tilt on hover

================================= */



/* Container with perspective for 3D tilt */

.project-logo {

    perspective: 1000px;

    overflow: hidden;

}



/* Base logo animation class - fade in then subtle float */

.float-3d {

    transform-style: preserve-3d;

    animation: fadeScaleIn 1s ease-out forwards, subtleFloat 5s ease-in-out 1s infinite;

    opacity: 0;

    transform: scale(0.8);

}



@keyframes fadeScaleIn {

    to {

        opacity: 1;

        transform: scale(1);

    }

}



@keyframes subtleFloat {



    0%,

    100% {

        transform: translateY(0);

    }



    50% {

        transform: translateY(-6px);

    }

}



/* Offset animations so logos don't sync */

.project-card:nth-child(1) .float-3d {

    animation-delay: 0s, 0s;

}



.project-card:nth-child(2) .float-3d {

    animation-delay: 0s, 1.6s;

}



.project-card:nth-child(3) .float-3d {

    animation-delay: 0s, 3.2s;

}



.project-info h3 {

    margin-bottom: 0.5rem;

}



.project-info p {

    color: var(--text-secondary);

    font-size: 0.9rem;

}



/* Testimonials Grid */

.testimonials-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

    gap: 2rem;

    margin-top: 2rem;

}



.testimonial-card {

    padding: 2.5rem;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    position: relative;

    transition: transform 0.3s ease, box-shadow 0.3s ease;

    height: 100%;

}





.quote-icon {

    font-size: 4rem;

    color: var(--primary);

    opacity: 0.3;

    line-height: 1;

    margin-bottom: 1rem;

    font-family: serif;

    transition: var(--transition);

}



[data-theme="dark"] .quote-icon {

    color: var(--accent);

    opacity: 0.6;

}



.testimonial-text {

    font-size: 1.1rem;

    font-style: italic;

    margin-bottom: 2rem;

    color: var(--text-primary);

    line-height: 1.6;

}



.client-info {

    display: flex;

    align-items: center;

    gap: 1rem;

    margin-top: auto;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

    padding-top: 1.5rem;

}



/* Dark mode border adj */

[data-theme="dark"] .client-info {

    border-top: 1px solid rgba(255, 255, 255, 0.08);

}



.client-avatar {

    width: 50px;

    height: 50px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    font-weight: 700;

    font-size: 1.2rem;

    flex-shrink: 0;

}



.client-details {

    display: flex;

    flex-direction: column;

}



.client-details strong {

    font-size: 1rem;

    color: var(--text-primary);

}



.client-details span {

    font-size: 0.85rem;

    color: var(--text-secondary);

}



/* Contact */

.contact-form {

    padding: 1rem;

}



.form-cta {

    font-size: 1.2rem;

    font-weight: 600;

    margin-bottom: 2rem;

    color: var(--text-primary);

    display: block;

    border-left: 3px solid var(--primary);

    padding-left: 1rem;

}



.contact {

    padding: 6rem 0;

}



.contact-wrapper {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 4rem;

    padding: 4rem;

}



.contact-info {

    min-width: 0;

    /* Prevent grid blowout */

}



.contact-info h2 {

    font-size: 2.5rem;

    margin-bottom: 1.5rem;

}



.contact-details {

    margin-top: 3rem;

}



.detail-item {

    display: flex;

    gap: 1rem;

    margin-bottom: 1rem;

    align-items: center;

    font-size: 1.1rem;

}



/* Multi-Step Form Wizard */

.form-progress {

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 3rem;

    gap: 0;

}



.progress-step {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 0.5rem;

    position: relative;

    z-index: 2;

}



.step-number {

    width: 44px;

    height: 44px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.05);

    border: 2px solid var(--text-secondary);

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;

    font-size: 1.1rem;

    color: var(--text-secondary);

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    position: relative;

}



.progress-step.active .step-number {

    background: var(--primary);

    border-color: var(--primary);

    color: white;

    transform: scale(1.1);

}



.progress-step.completed .step-number {

    background: #0088ff;

    border-color: #0088ff;

    color: white;

}



.progress-step.completed .step-number::before {

    content: '✓';

    position: absolute;

    top: -4px;

    right: -4px;

    width: 18px;

    height: 18px;

    background: #2ecc71;

    /* Success green badge */

    color: white;

    font-size: 0.75rem;

    font-weight: 900;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);

    z-index: 5;

    animation: badgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);

}



@keyframes badgePop {

    from {

        transform: scale(0);

    }



    to {

        transform: scale(1);

    }

}



.step-label {

    font-size: 0.85rem;

    color: var(--text-secondary);

    font-weight: 500;

    white-space: nowrap;

}



.progress-step.active .step-label {

    color: var(--primary);

    font-weight: 600;

}



.progress-line {

    width: 80px;

    height: 2px;

    background: transparent;

    margin: 0 -10px;

    margin-bottom: 30px;

    position: relative;

    z-index: 1;

    transition: background 0.3s ease;

}



.progress-line.completed {

    background: var(--primary);

}



/* Form Steps */

.form-step {

    display: none;

    opacity: 0;

    transform: translateX(20px);

    transition: opacity 0.3s ease, transform 0.3s ease;

}



.form-step.active {

    display: block;

    opacity: 1;

    transform: translateX(0);

    animation: slideIn 0.4s ease;

}



@keyframes slideIn {

    from {

        opacity: 0;

        transform: translateX(20px);

    }



    to {

        opacity: 1;

        transform: translateX(0);

    }

}



/* Form Navigation */

.form-navigation {

    display: flex;

    gap: 1rem;

    justify-content: flex-end;

    margin-top: 2rem;

}



.form-navigation .btn {

    min-width: 120px;

}



#form-status {

    margin-top: 1rem;

    text-align: center;

    font-weight: 500;

    min-height: 24px;

}



.form-group {

    margin-bottom: 1.5rem;

}



.form-group label {

    display: block;

    margin-bottom: 0.5rem;

    font-weight: 500;

    font-size: 1.1rem;

}



.form-group input,

.form-group textarea {

    width: 100%;

    padding: 1rem;

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid var(--text-secondary);

    border-radius: 8px;

    color: var(--text-primary);

    font-family: inherit;

    font-size: 1rem;

    transition: border-color 0.3s ease;

}



.form-group input::placeholder,

.form-group textarea::placeholder {

    color: var(--text-secondary);

    opacity: 0.6;

}



.form-group input:focus,

.form-group textarea:focus {

    outline: none;

    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(0, 110, 182, 0.1);

}



/* Footer */

footer {

    padding: 4rem 0;

    border-top: 1px solid var(--glass-border);

    background: var(--glass-bg);

}



.footer-container {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 2rem;

}



.social-links {

    display: flex;

    gap: 2rem;

}



.social-links a {

    color: var(--text-primary);

    text-decoration: none;

    font-weight: 500;

}



.copyright {

    color: var(--text-secondary);

    font-size: 0.9rem;

}



/* Animations */

.fade-in-up {

    opacity: 0;

    transform: translateY(30px);

    transition: opacity 0.8s ease-out, transform 0.8s ease-out;

}



.fade-in-up.visible {

    opacity: 1;

    transform: translateY(0);

}



/* Desktop hover effects - only on larger screens */

@media (min-width: 769px) {



    .service-card:hover,

    .project-card:hover,

    .testimonial-card:hover {

        transform: translateY(-5px);

    }



    .service-card,

    .project-card,

    .testimonial-card {

        transition: transform 0.3s ease;

    }

}



/* Responsive */

@media (max-width: 1150px) {

    .hero {

        padding-top: 130px;

    }

}



@media (max-width: 768px) {

    .nav-links {

        display: none;

    }



    .mobile-menu-btn {

        display: flex;

    }



    .hero-container {

        grid-template-columns: 1fr;

        text-align: center;

    }



    .hero-buttons {

        justify-content: center;

    }







    .contact-wrapper {

        grid-template-columns: 1fr;

        padding: 2rem;

    }



    .navbar {

        width: 95%;

    }



    .nav-container {

        display: flex !important;

        justify-content: space-between !important;

        width: 100% !important;

        max-width: none !important;

        flex-wrap: wrap !important;

        /* Allow wrapping for expanding menu */

        padding: 0 1rem;

        align-items: center;

    }



    /* Removed order/basis hacks since we are using fixed positioning now */



    .switches-wrapper {

        bottom: 20px;

        left: 20px;

        padding: 8px;

        gap: 8px;

    }



    .switch-container {

        transform: scale(0.9);

        margin: 0;

    }



    .logo {

        font-size: 1.2rem;

        /* Avoid 2 lines by making logo smaller on mobile */

        flex-shrink: 0;

    }



    .nav-controls {

        gap: 0;

        margin-left: auto;

        /* Push controls and menu btn to the right */

    }



    .hero {

        padding-top: 140px;

        /* 10px more air from banner to title */

    }

}



/* Horizontal Scroll Snap (Apple-style) for Mobile/Tablet */

@media (max-width: 1024px) {



    .services-grid,

    .portfolio-grid,

    .testimonials-grid {

        display: flex;

        overflow-x: auto;

        scroll-snap-type: x mandatory;

        gap: 1.5rem;



        /* Full bleed scroll */

        margin: 0 -2rem;

        padding: 1rem 2rem 3rem 2rem;

        /* Bottom padding for shadow visibility */



        /* Hide scrollbar */

        scrollbar-width: none;

        /* Firefox */

        -ms-overflow-style: none;

        /* IE/Edge */

        -webkit-overflow-scrolling: touch;

    }



    .services-grid::-webkit-scrollbar,

    .portfolio-grid::-webkit-scrollbar,

    .testimonials-grid::-webkit-scrollbar {

        display: none;

    }



    .service-card,

    .project-card,

    .testimonial-card {

        flex: 0 0 85%;

        /* Show part of next card to encourage scroll */

        min-width: 280px;

        max-width: 400px;

        scroll-snap-align: center;

        margin-bottom: 0;

        /* Remove stack margin */

    }



    /* Ensure hover effects don't get cut off */

    .service-card:hover,

    .project-card:hover,

    .testimonial-card:hover {

        transform: translateY(-5px);

    }

}



/* Device Morph Animation Styles */

.device-morph-animation {

    width: 100%;

    height: 100%;

}



.device-container {

    animation: deviceFloat 4s ease-in-out infinite;

}



@keyframes deviceFloat {



    0%,

    100% {

        transform: translate(150px, 150px);

    }



    50% {

        transform: translate(150px, 140px);

    }

}



.hyperspace-stars {

    transform-origin: center;

}



.star {

    animation: starTravel 3s linear infinite;

    transform-origin: center;

}



/* Individual star delays and speeds for a more "playful" and random feel */

.star-1 {

    animation-duration: 2s;

    opacity: 0.8;

}



.star-2 {

    animation-duration: 4s;

    opacity: 0.4;

}



.star-3 {

    animation-duration: 2.5s;


    opacity: 0.6;

}



.star-4 {

    animation-duration: 5s;

    opacity: 0.3;

}



.star-5 {

    animation-duration: 1.5s;

    opacity: 0.9;

}



.star-6 {

    animation-duration: 3.5s;

    opacity: 0.5;

}



.star-7 {

    animation-duration: 2.2s;

    opacity: 0.7;

}



.star-8 {

    animation-duration: 4.5s;

    opacity: 0.4;

}



@keyframes starTravel {

    0% {

        transform: translate(0, 0) scale(0);

        opacity: 0;

    }



    20% {

        opacity: 1;

    }



    100% {

        /* Move stars outward from the center and stretch them (streak) */

        transform: translate(var(--star-x, 20px), var(--star-y, 20px)) scaleX(3) scaleY(0.5);

        opacity: 0;

    }

}



/* Positioning for stars to travel from center and match the streaky rotation */

.star-1 {

    --star-x: -120px;

    --star-y: -120px;

    transform: rotate(45deg);

}



.star-2 {

    --star-x: 120px;

    --star-y: -100px;

    transform: rotate(-40deg);

}



.star-3 {

    --star-x: -100px;

    --star-y: 120px;

    transform: rotate(-45deg);

}



.star-4 {

    --star-x: 120px;

    --star-y: 130px;

    transform: rotate(40deg);

}



.star-5 {

    --star-x: 0px;

    --star-y: -150px;

    transform: rotate(90deg);

}



.star-6 {

    --star-x: -150px;

    --star-y: 0px;

    transform: rotate(0deg);

}



.star-7 {

    --star-x: 150px;

    --star-y: 0px;

    transform: rotate(180deg);

}



.star-8 {

    --star-x: 0px;

    --star-y: 150px;

    transform: rotate(270deg);

}



/* Pulse for the device pulse indicator */

.device-container circle {

    filter: drop-shadow(0 0 8px #ffffff);

    fill: #ffffff;

}



/* --- Restaurant Menu Style List --- */

.skills-menu-container {

    margin-top: 2rem;

    width: 100%;

}



.skills-menu {

    list-style: none;

    padding: 0;

    margin: 0;

    display: flex;

    flex-direction: column;

    gap: 0.5rem;

}



.menu-item {

    display: flex;

    align-items: flex-end;

    /* Align to bottom for dots */

    font-family: 'Outfit', sans-serif;

    color: var(--text-color);

    font-size: 1rem;

    opacity: 0.9;

    transition: all 0.3s ease;

}



.mobile-only-ticker-item {

    display: none;

}



.menu-item:hover {

    opacity: 1;

    transform: translateX(5px);

    color: var(--primary-color);

}



.menu-name {

    font-weight: 500;

    white-space: nowrap;

    margin-right: 5px;

}



.menu-dots {

    flex-grow: 1;

    border-bottom: 2px dotted rgba(255, 255, 255, 0.2);

    margin: 0 5px 4px 5px;

    /* Alignment for the dots */

}



/* Light mode adjustment */

body.light-mode .menu-dots {

    border-bottom: 2px dotted rgba(0, 0, 0, 0.2);

}



.menu-icon {

    font-weight: bold;

    color: var(--accent-gold);

    margin-left: 5px;

    font-size: 0.9em;

}



/* Responsive: stack nicely */

@media (max-width: 768px) {

    .skills-menu-container {

        width: 100%;

        overflow: hidden;

        /* Mask the edges for smooth fade */

        mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);

        -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);

        margin-top: 2rem;

    }



    .skills-menu {

        display: flex;

        flex-direction: row;

        width: max-content;

        gap: 0;

        animation: scroll 20s linear infinite;

        /* Pause on hover if desired */

    }



    /* Duplicate list items in JS or HTML for true loop */

    /* For now, assuming we might need to duplicate, but user just wants the look */

    /* Let's style the items for the ticker */



    .menu-item {

        flex-shrink: 0;

        padding: 0 1.5rem;

        align-items: center;

        width: auto;

    }



    .menu-item:hover {

        transform: none;

    }



    .menu-dots,

    .menu-icon {

        display: none;

    }



    .menu-name {

        font-size: 1.2rem;

        font-weight: 600;

        margin: 0;

    }



    /* Add a bullet or separator? */

    .menu-item::after {

        content: "•";

        margin-left: 1.5rem;

        opacity: 0.5;

        color: var(--accent);

    }



    .mobile-only-ticker-item {

        display: flex;

    }

}



@keyframes scroll {

    0% {

        transform: translateX(0);

    }



    100% {

        transform: translateX(-50%);

    }

}



/* Nav Icon Link (Instagram) */

.nav-icon-link {

    display: flex;

    align-items: center;

    justify-content: center;

    margin-left: 0.5rem;

    transition: var(--transition);

    text-decoration: none;

    /* Remove text underline behavior */

}



.nav-icon-link::after {

    display: none;

    /* No underline for icon */

}



.nav-icon-link svg {

    width: 20px;

    height: 20px;

    fill: var(--primary);

    /* Blue on Light Mode default */

    transition: var(--transition);

}



.nav-icon-link:hover svg {

    transform: scale(1.1);

}



/* Dark Mode Overrides */

[data-theme="dark"] .nav-icon-link svg {

    fill: var(--accent);

    /* Yellow on Dark Mode */

}



/* Mobile Fade Out for Switches */

@media (max-width: 768px) {

    .switches-wrapper.fade-out {

        opacity: 0;

        pointer-events: none;

    }

}



/* Homogenize Layout Padding on Mobile */

@media (max-width: 768px) {



    .about,

    .services,

    .portfolio,

    .contact {

        padding: 4rem 0 !important;

    }

}