/* ============== ROOT ============== */

/* FÄRGER GLOBALT*/
:root {
    --bg: #000000;
    --bg-light: #f7f2f3;

    --contact-form: rgba(255, 255, 255, 0.4);

    --text: #ececec;
    --text-dark: #1a1a1a;

    --pink: #ff00c8;
    --orange: #FF7A00;
    --blue: #4DA3FF;
    --purple: #9F4DFF;
    --dark-blue: #1428A0;

    --console-bg: #000;
    --console-border: #333;
    --glow: #1428A0;
    
}


/* ===== GLOBAL WRAPPER =======*/
.page-wrapper {
    max-width: 100%; 
    margin: 0 auto;
    flex: 1;
}

/* AVSTÅND MELLAN SEKTIONER – RESPONSIVE */
section {
    display: flex;
    flex-direction: column;
    padding-top: clamp(2.5rem, 4vw, 5rem);
    padding-bottom: clamp(2rem, 4vw, 5rem);
    scroll-margin-top: clamp(3rem, 6vh, 5rem);
}

@media (max-width: 768px) {
    section {
        padding-bottom: 40vh;
    }
}


/* ACCENT I CARD */
.ui-card-accent {
    width: 100%;
    height: 1px;
    border-radius: 20px;
    background: linear-gradient(90deg,
        var(--dark-blue),
        var(--blue)
    );
    box-shadow:
        0 0 6px var(--glow),
        0 0 12px rgba(255,255,255,0.25);
    opacity: 0.35;
}


/* ============== TEXT - FONT ============== */
h1 {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(2.2rem, 5vw, 5rem);
    word-break: normal;
    font-weight: 900;
    text-align: center;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

h2 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    font-size: clamp(2rem, 5vw, 3rem); 
    text-align: left;
}

h3 {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 3vw, 1.4rem);
}
p {
    font-family: "Poppins", sans-serif;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    line-height: 1.6;
}

a, li, span {
    font-family: "Poppins", sans-serif;
    font-size: clamp(0.6rem, 1.4vw, 1rem);
    line-height: 1.6;
}

.hero h1,
.hero h3,
.hero p {
    opacity: 0;
    transform: translateY(6px);
    animation: heroSlide 0.3s ease-out forwards;
    text-align: left;
}

@keyframes heroSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============== BODY ============== */

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Poppins", sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
/* Skipp link för tab / WCAG osynlig*/
.skip-link {
    position: absolute;
    top: -40px;
    left: 1rem;
    background: var(--glow);
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.25s ease;
    opacity: 0; 
    pointer-events: none;
}

.skip-link:focus {
    top: 1rem;
    opacity: 1;            
    pointer-events: auto;  
}


/* ============== NAVBAR ============== */

/* NAVBAR WRAPPER */
.navbar {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    will-change: top;
}


/* NAVBAR CONTENT */
.navbar nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    position: relative;
    z-index: 10000;
}

@media (max-width: 768px) {
    .navbar nav {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

    .weather-box {
        justify-self: start;
    }

    .hamburger {
        justify-self: center;
    }

    .nav-controls {
        justify-self: end;
    }
}


/* VÄDER */
.weather {
    opacity: 0.9;
    font-size: clamp(0.7rem, 0.8vw, 0.8rem);
    align-self: start;
}

/* Väder - location */
.weather-box {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 0.1rem; 
}


.weather-location {
    font-size: clamp(0.6rem, 0.8vw, 0.8rem);
    opacity: 0.8;
    letter-spacing: 0.5px;
}

/* HAMBURGER MENY*/
.hamburger {
    background: none;
    border: none;
    font-size: clamp(0.8rem, 1.4vw, 1.3rem);
    cursor: pointer;
    color: var(--text);
}

/* MENY – gömd på mobil */
.nav-links {
    display: none;
}

@media (min-width: 1025px) {
    .nav-links {
        gap: 3.2rem; 
    }
}

.mobile-menu {
    text-align: right;
}

.nav-links a,
.mobile-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 400;
    transition: 0.2s ease;
}

/* DESKTOP */
.nav-links a {
    font-size: clamp(0.8rem, 1.4vw, 1rem);
}

/* MOBILMENY */
.mobile-menu a {
    font-size: 0.9rem;
    padding: 0.5rem 0;
    text-align: right;
}


/* CV-länk */
.nav-links a[href*="cv-ninnie-dahlstrom"],
.mobile-menu a[href*="cv-ninnie-dahlstrom"] {
    color: var(--blue);
    font-weight: 500;
}



/* Portfolio-länk alltid orange */
.nav-links a[href*="portfolio"],
.mobile-menu a[href*="portfolio"] {
    color: var(--dark-blue);
    font-weight: 500;
}

/* HOVER PÅ ALLA LÄNKAR */
.nav-links a:hover,
.mobile-menu a:hover {
    color: var(--glow);
    text-decoration: none;
}

/* IKONER / SPRÅK */
.nav-controls {
    display: flex;
    align-items: center;
    gap: clamp(0.3rem, 0.8vw, 0.6rem);
}


.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center; 
}

/* IKONER / SPRÅK */
.mode-icon {
    font-size: clamp(0.8rem, 1.2vw, 1.2rem);
    line-height: 1;
    display: inline-block;
    transition: 0.25s ease;
}


/* DOLD SELECT */
.hidden-select {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.navbar.scrolled {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.18),
                0 0 18px rgba(0, 122, 255, 0.08);
}


/* MOBIL DROPDOWN */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    padding: 1rem;
}

/* BREAKPOINTS */
@media (min-width: 768px) {
    .hamburger {
        display: none;
    }

    .nav-links {
        display: flex;
        justify-content: center;
        gap: 2rem;
        flex: 1;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .navbar nav {
        padding: 1.2rem 3rem;
    }

    .nav-links {
        gap: 3rem;
    }
}

/* ============== HERO ============== */

/* HERO */
.hero {
    width: clamp(85%, 62vw, 1600px);
    margin: 0 auto;
    text-align: center;
    padding: 0;
    height: 95dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-4vh);
    overflow-x: hidden; 
}

.hero-card {
    display: flex;
    width: 100%;
    flex-direction: row-reverse;
    grid-column: 1 / -1;
    justify-self: center;
    align-items: flex-end;
    gap: 3rem;
    padding: 2rem 2rem;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    margin-bottom: 1.5rem;
    
}

.hero-text {
    flex: 2.3; 
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    justify-content: center; 
    padding-bottom: 0.2rem;
}

.hero-image-wrapper {
    flex: 1; 
    max-width: 100%;
    padding-bottom: 0.2rem;
    margin-right: 1.5rem;
    position: relative;
    align-self: center;
    position: relative;
    display: inline-block;
}


@media (max-width: 768px) {

    .hero {
        height: auto;
        transform: none;
        padding-top: 2rem;
        padding-bottom: 40vh;
    }

    .hero-card {
        flex-direction: column;
        justify-content: center;   
        align-items: center;       
        text-align: center;
        gap: 1.5rem;
    }

    .portrait {
        margin: 0 auto;
    }

    .hero-text {
        text-align: center;
        width: 100%;
    }

        .hero h1 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        line-height: 1.1;
        margin-bottom: 0.4rem;
    }

    .hero h1,
    .hero h3,
    .hero p {
        text-align: center;
    }
    .hero-image-wrapper {
    margin-right: 0;
    margin-top: 0.5rem;
}
}


.hero h1 {
    margin-bottom: 0.3rem; 
}

.hero h3 {
    margin-top: 0.2rem;
    margin-bottom: 0.4rem;
}

.hero p {
    margin-top: 0;        
    line-height: 1.4;      
    font-size: clamp(0.65rem, 1.6vw, 1.1rem);    
}

/* HERO - KNAPPAR*/
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    
}

.btn.orb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    overflow: hidden;
    padding: 0;
    transition:
        width 0.3s ease,
        height 0.3s ease,
        padding 0.3s ease,
        border-radius 0.35s ease,
        box-shadow 0.3s ease;
    position: relative;
}


.btn.orb span {
    opacity: 1;
    font-size: clamp(0.65rem, 1vw, 0.8rem);
    font-weight: 500;
    transition: opacity 0.25s ease;
    color: var(--text);
    visibility: hidden;
}


@media (max-width: 768px) {
    .btn.orb span {
    visibility: visible;
}

}

.btn.orb:hover {
    width: clamp(5rem, 12vw, 6.5rem);
    height: clamp(2rem, 3vw, 2.4rem);
    padding: 0 0.4rem;
    transform: scale(1.01);
    border-radius: 20px;
}


.btn.orb:hover span {
    opacity: 1;
    visibility: visible;
}


/* IKONER - download & Map */
.btn-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
    margin-right: 4px;
    vertical-align: middle;
    transition: 0.25s ease;
    filter: brightness(0) invert(1) !important;
}

.btn.orb,
.btn.orb:visited,
.btn.orb:active,
.btn.orb:focus {
    text-decoration: none;
}

.btn.orb.pink {
    background: var(--dark-blue);
    box-shadow: 0 0 4px var(--dark-blue);
    border: 1px;
}

.btn.orb.orange {
    background: var(--blue);
    box-shadow: 0 0 4px var(--blue);
}

.btn.orb.pink:hover {
    box-shadow: 0 0 5px var(--glow);
}

.btn.orb.orange:hover {
    box-shadow: 0 0 5px var(--glow);
}

@media (max-width: 768px) {
    .btn.orb {
        width: auto;
        height: auto;
        padding: 0.4rem 0.9rem;
        border-radius: 40px;
        display: inline-flex;
        align-items: center; 
    }

    .btn.orb span {
        opacity: 1;
        font-size: clamp(0.6rem, 2vw, 0.7rem);
        white-space: nowrap;
    }

    .btn.orb.pink {
    background: var(--console-bg);
    box-shadow: 0 0 2px var(--blue);
    border: 1px;
}

.btn.orb.orange {
    background: var(--console-bg);
    box-shadow: 0 0 2px var(--blue);
}

.btn.orb.pink:hover {
    box-shadow: 0 0 4px var(--glow);
}

.btn.orb.orange:hover {
    box-shadow: 0 0 4px var(--glow);
}
}

/* HERO - PORTRÄTT BILD*/
.portrait {
    width: clamp(7rem, 20vw, 20rem);
    height: auto;
    object-fit: cover;
    border-radius: 14rem;

    /* Mjukare kant */
    border: 0.1px solid color-mix(in srgb, var(--glow) 40%, transparent);

    /* Samsung-style glow */
    box-shadow:
        0 0 14px color-mix(in srgb, var(--glow) 40%, transparent),
        0 0 28px color-mix(in srgb, var(--glow) 30%, transparent),
        0 0 42px color-mix(in srgb, var(--glow) 20%, transparent);

    /* Mjuk AMOLED drop-shadow */
    filter: drop-shadow(0 0 12px color-mix(in srgb, var(--glow) 30%, transparent))
            brightness(1.22);

    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.portrait:hover {
    box-shadow:
        0 0 8px color-mix(in srgb, var(--glow) 45%, transparent),
        0 0 16px color-mix(in srgb, var(--glow) 30%, transparent),
        0 0 22px color-mix(in srgb, var(--glow) 20%, transparent);

    transform: scale(1.01);
}

.color-icon input[type="color"] {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.color-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    border: none;
    border-radius: 50%;
    padding: 0.4rem;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--blue);
    opacity: 0;
    pointer-events: auto;
    transition: 0.25s ease;
    transform: scale(1.1);
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .color-icon {
        bottom: 1.2rem;  
        right: 1.2rem;   
        transform: scale(1.05); 
    }
}


.hero-image-wrapper:hover .color-icon {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1.1);
}

.social-media-hero {
    display: flex;
    align-items: center;   
    gap: 0.5rem;
    margin-top: 2rem;  
    box-sizing: border-box;
}

/* Social media Ikoner */
.social-media-hero  img {
    width: clamp(7px, 4vw, 20px);
    height: clamp(7px, 4vw, 20px);
    opacity: 0.75;
    object-fit: contain;
    transition: 0.3s ease;
    filter: drop-shadow(0 0 0 transparent);
    border-radius: 10px;
    justify-content: flex-end;
}

.social-media-hero  a img {
    transition: 0.25s ease;
}

.social-media-hero  a:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 6px var(--glow));
}


/* Se till att GitHub följer dark/light-reglerna */
.social-media-hero  img.github {
    width: clamp(16px, 4vw, 22px);
    height: clamp(16px, 4vw, 20x);
    display: none;
}

.skills-hero {
  color: var(--pink);
  font-weight: 600;
  font-size: 1.2rem;
  white-space: nowrap;
  overflow: hidden;
  font-family: "JetBrains Mono", monospace;
  padding-top: 0.1rem;
      opacity: 1; /* Viktigt */
    text-shadow: none; /* Tar bort suddighet */
}

@keyframes blink {
  50% { border-color: transparent; }
}


@media (max-width: 768px) {

    .social-media-hero {
        gap: 0.3rem;
        margin: 0.1rem auto 0 auto;
    }

    .social-media-hero img {
        opacity: 0.85;
        transition: 0.25s ease;
    }

}




/* ============== ABOUT ============== */
.sectionabout {
    width: clamp(80%, 70vw, 1100px);
    margin: 0 auto;  
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    line-height: 1.6;
    opacity: 0.85;
    min-height: 100vh;
}

.sectionabout .accent {
    color: var(--glow);
    text-shadow: 0 0 6px var(--glow);
    font-weight: 900;
}

.about-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: stretch; 
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .about-wrapper {
        grid-template-columns: 1fr; 
    }
}

.about-card {
    flex: 2;
    padding: clamp(1rem, 3vw, 2rem);
    border-radius: 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    line-height: 1.6;
    opacity: 0.9;
    box-sizing: border-box;
    max-width: 100%;
    padding: clamp(2rem, 3vw, 2rem); 
}

.about-education {
    flex: 1;
    padding: clamp(2rem, 3vw, 2rem);
    border-radius: 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    line-height: 1.6;
    opacity: 0.9;
    padding-bottom: 2rem;
    box-sizing: border-box;
    max-width: 100%;
}

@media (max-width: 768px) {
    .about-card,
    .about-education {
        margin-bottom: 0.5rem;
    }
}


.edu-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-top: 1rem; 
    border-left: 1px solid var(--glow);
    padding-left: 1rem;
    
}

.edu-item strong {
    font-size: clamp(0.8rem, 1.4vw, 1.1rem);
    font-weight: 600;
    color: var(--text);
}

.edu-school {
    font-size: clamp(0.75rem, 1.2vw, 0.95rem);
    opacity: 0.85;
}

.edu-year {
    font-size: clamp(0.7rem, 1.1vw, 0.9rem);
    opacity: 0.6;
}

.about-education h3 {
    text-align: left;
    font-weight: 600;
    color: var(--purple);
    letter-spacing: 0.5px;
    margin-top: 1rem;
}

.about-card p {
    margin-top: 1rem; 
}

@media (max-width: 768px) {
    .about-card p,
    .sectionabout p {
        margin-bottom: 1.2rem;
    }
}


/* FÄRGADE ORD i texten */
.key-purple {
    color: var(--purple) !important;
    font-weight: 600;
    font-size: clamp(1em, 1.1em, 1.25em);
}
.key-orange {
    color: var(--orange) !important;
    font-weight: 600;
    font-size: clamp(1em, 1.1em, 1.25em);
}
.key-pink {
    color: var(--pink) !important;
    font-weight: 600;
    font-size: clamp(1em, 1.1em, 1.25em);
}
.key-blue {
    color: var(--blue) !important;
    font-weight: 600;
    font-size: clamp(1em, 1.1em, 1.225em);

}



/* ============== SKILLS ============== */
.skills-section {
    margin: 0 auto;
    width: clamp(80%, 70vw, 1100px);
    line-height: 1.5;
    opacity: 0.9;
    min-height: 100vh;
}

.skills-section .accent {
    color: var(--glow);
    text-shadow:
    0 0 6px var(--glow);
    font-weight: 900;
}
.skills-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    width: 90%;
}
.skills-card {
    box-sizing: border-box;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    width: 100%;
    padding: clamp(1.8rem, 4vw, 3rem) clamp(1.2rem, 3vw, 2.2rem);
    border-radius: 1.1rem;
    backdrop-filter: blur(12px);
    line-height: 1.65;
    opacity: 0.9;
}

/* Ikoner - Container */
.skills-list.icons {
    list-style: none;
    padding: 0;
    margin: 1rem auto 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: clamp(0.8rem, 2vw, 1.5rem); 
    justify-content: center;
    text-align: center;
    align-items: center;
}

/* Kortet - RESPONSIV  */
.skills-list.icons li {
    width: clamp(90px, 12vw, 120px);  
    height: clamp(90px, 12vw, 120px);  
    aspect-ratio: 1 / 1;              
    padding: 0.5rem;                  
    border-radius: 16px;
    box-sizing: border-box;
    background: rgba(145, 145, 145, 0.041);
    border: 1px solid rgba(100, 100, 100, 0.28);
    backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 0 20px rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}


@keyframes iconPop {
    0% { opacity: 0; transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1); }
}


.skills-list.icons li:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 10px var(--glow);
}

.skills-list.icons i {
    font-size: clamp(24px, 3vw, 38px);
    margin-bottom: 0.3rem;
    opacity: 0.95;
    transition: 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skills-card p {
    text-align: center;
    opacity: 0.7;
    padding-bottom: 1rem;
}

/* TEXTEN UNDER IKONEN  */
.skills-list.icons span {
    font-size: clamp(0.68rem, 1vw, 0.8rem); 
    opacity: 0.75;
    font-weight: 500;
    margin-top: 0.1rem;
    word-break: break-word; 
    display: block;
    width: 100%;
}

.github-icon {
    font-size: clamp(26px, 3.5vw, 44px);
    transition: 0.25s ease;
    filter: invert(0);
}


/* ============== PORTFOLIO ============== */
.sectionproject {
    text-align: center;              
    width: clamp(80%, 70vw, 1100px);
    margin: 0 auto;    
    font-size: clamp(0.9rem, 2vw, 1.1rem); 
    line-height: 1.6;                
    opacity: 0.9;                   
    position: relative;              
    z-index: 10;                  
    min-height: 100vh;
}

/* PORTFOLIO GRID */
.projects-card {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    justify-content: center; 
}


.portfolio-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    width: 90%;
}

.sectionproject .accent {
    color: var(--glow);              
    text-shadow:
    0 0 6px var(--glow);
    font-weight: 900;
}

/* PORTFOLIO CARD */
.project-card {
    box-sizing: border-box;
    width: 100%; 
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    text-align: left;
    transition: 0.25s ease;
    cursor: pointer;
    box-shadow:
        0 0 6px rgba(0,0,0,0.25),
        0 0 12px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    padding: clamp(2rem, 2vw, 6rem);
}

.project-card:hover {
    transform: translateY(-4px) scale(1.015) rotateX(1deg) rotateY(1deg);
    box-shadow: 0 0 12px var(--glow);
}

/* BBAKGRUND MAP IKONERNA*/
.project-icon {
    width: clamp(28px, 3vw, 40px);
    height: clamp(28px, 3vw, 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--dark-blue), var(--blue));
    box-shadow:
        0 0 6px var(--glow),
        0 0 2px var(--blue);
    border-radius: 20px;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

/* MAP ICON */
.folder-icon {
    filter: brightness(0) invert(1);
    width: 14px;
    height: 14px;
}

/* TITEL */
.folder-title {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 700;
    min-height: 20px; 
    margin-bottom: 0.3rem; 
    letter-spacing: 0.2px;
}


/* TEXT*/
.project-card p {
    opacity: 0.8;
    font-size: clamp(0.8rem, 1.3vw, 1rem);
    min-height: 50px; 
}

.image-project {
    width: 100%;
    object-fit: cover;
    border-radius: 14px;
    margin-top: auto;
}



/* PROJEKTEN KLICKBARA */
.project-click {
    margin-top: 1rem;      
    opacity: 0.6 !important;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem !important;
    letter-spacing: 0.3px;
    padding: 0;
    transition:
        opacity 0.35s ease,
        color 0.35s ease,
        text-shadow 0.35s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: right center; 
    margin-top: 1rem;

}





/* MODAL WRAPPER - PROJECTS*/

/* OVERLAY */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.484);
    backdrop-filter: blur(4px);
    display: none; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: flex-start;
    padding-top: 7rem;
}

@media (max-width: 600px) {
    .project-modal {
        align-items: flex-start;
        padding-top: 5rem; 
    }
}


/* CARD  */
.project-modal-content {
    width: min(90%, 750px);
    max-height: 80dvh; 
    overflow-y: auto;
    padding: clamp(0.8rem, 3vw, 1.2rem);
    box-sizing: border-box;
    border-radius: 20px;
    background: rgba(20, 20, 20, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}


#projectTitle {
    font-size: clamp(1.4rem, 2.2vw, 1.6rem);
    font-weight: 700;
    color: var(--text);
    margin-top: -0.2rem; 
}

#projectDescription, 
#demoLink {
    font-size: clamp(0.65rem, 1.2vw, 1rem);
    line-height: 1.6;
    padding-bottom: 0.5rem;
}


/* CLOSE BUTTON */
.close-modal {
    position: absolute;                 
    top: 10px;                            
    right: 12px;                          
    background: none;                     
    border: none;                         
    color: var(--text);                   
    font-size: 1rem;                    
    cursor: pointer;                   
}

.close-modal:hover {
    color: var(--glow); 
    text-shadow:
    0 0 6px var(--glow);

}

/* BUTTONS - Github & Readme */
.project-links {
    margin-top: 0.8rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.project-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: clamp(0.4rem, 1.2vw, 0.6rem) clamp(0.8rem, 2vw, 1.2rem);
    border-radius: 8px;
    background: rgba(39, 39, 39, 0.801);   
    color: var(--text);                   
    border: 1px solid rgba(36, 36, 36, 0.15);
    text-decoration: none;
    font-weight: 600;                
    transition: 0.25s ease;
}

.project-links a img {
    width: 20px;
    height: 20px;
    object-fit: contain; 
}

.project-links a:hover {
    transform: scale(1.08);
    box-shadow: 0 0 6px var(--glow);
}

/* GITHUB DARK/LIGHT MODE IKONER */
.icon-img.dark,
.icon-img.light {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: none;
}

/* DARK ICON - DARK MODE */
body:not(.light) .icon-img.dark {
    display: inline-block;                
}

/* SKIILLS ICONS */
.card-tech {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.card-tech i {
    font-size: 1.5rem;
    opacity: 0.9;
    transition: 0.25s ease;
    padding-top: 0.6rem;
}

.modal-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 14px 0 14px 0;
    
}

/* FEATURES TEXT */
#features {
    text-align: left;
    padding-left: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 0.6rem; 
    line-height: 1.35;  
}

#features li {
    margin-bottom: 0.25rem;
    opacity: 0.85;
    list-style: none;
    position: relative;
    padding-left: 0.8rem; 
}

#features li::before {
    content: "•";
    color: var(--glow);
    position: absolute;
    left: 0;
    font-size: 0.6rem; 
    line-height: 1;
    top: 0.2rem;
    text-shadow:
        0 0 4px var(--glow);
}


/* ============== REFERENCES ============== */

.section-references {
    width: clamp(80%, 70vw, 1100px);
    margin: 0 auto;
    text-align: left;
    min-height: 100dvh;
}

/* WRAPPER */
.references-slider {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.references-wrapper {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.references-track {
    display: flex;
    gap: 0;
    overflow-x: auto;        
    overflow-y: hidden;     
    scroll-snap-type: x mandatory;  
    scroll-behavior: smooth; 
    padding-bottom: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* CARD */
.reference-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 90%;
    max-width: 90%;
    box-sizing: border-box;
    margin-bottom: 1rem;
    scroll-snap-align: center;
    padding: clamp(1rem, 2.5vw, 1.6rem);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    border-radius: 2rem;
    opacity: 0.9;
    transition: 0.25s ease;
    box-sizing: border-box;
}


/* SCROLL BAR */
.references-track::-webkit-scrollbar {
    height: 4px; 

}

.references-track::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05); 
    border-radius: 10px;
}

.references-track::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--dark-blue), var(--blue));
    border-radius: 10px;
    box-shadow: 0 0 8px var(--glow);
}


.references-track::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, var(--dark-blue), var(--blue));

}
/* FIREFOX SCROLL */
.references-track {
    scrollbar-width: thin;
    scrollbar-color: var(--glow) rgba(255,255,255,0.05);
    align-items: stretch;
    gap: 0.8rem;
}


/* HOVER */
.reference-card:hover {
    transform: scale(0.97) translateY(-1px);
    box-shadow: 0 0 12px var(--glow);
}

/* ACCENT */
.section-references .accent {
    color: var(--glow);
    text-shadow:
        0 0 6px var(--glow);
    font-weight: 900;
}

/* TITEL */
.reference-title {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 600;
    margin-top: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text);
    opacity: 0.95;
    letter-spacing: 0.2px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 0.9rem;
}

/* TEXT */
.reference-text {
    flex-grow: 1;
    opacity: 0.8;
    line-height: 1.6;
    font-size: clamp(0.75rem, 1.3vw, 0.9rem);
}

/* SIGNATURE */
.reference-signature {
    margin-top: 1rem;
    opacity: 0.85;
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    
}

.reference-signature strong {
    font-family: "Great Vibes", cursive;
    font-size: clamp(0.8rem, 1.5vw, 1.5rem);
    font-weight: 100;
}

.reference-card .reference-signature strong {
    color: var(--dark-blue);
}



/* ============== CONTACT ============== */
.sectioncontact {
    width: clamp(80%, 70vw, 1100px);
    margin: 0 auto;  
    text-align: center;
    font-size: clamp(0.65rem, 1.6vw, 0.85rem);
    line-height: 1.6;
    opacity: 0.9;
}

/* ACENT*/
.sectioncontact .accent {
    color: var(--glow);
    text-shadow:
    0 0 6px var(--glow);
    font-weight: 900;
}

/* CARD*/
.contact-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    padding: clamp(1rem, 3vw, 2rem);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    width: 90%;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.9;
}

.contact-wrapper {
    max-width: 1100px;
    width: 90%;
    margin: 0 auto;  
}


/* FORM*/
.contact-card form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(0.6rem, 2vw, 1rem);
    align-items: stretch; 
    box-sizing: border-box;
    padding: clamp(0.5rem, 2vw, 1.2rem);
    margin-top: 1rem;
}


.contact-card input,
.contact-card textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: clamp(0.5rem, 1.2vw, 0.8rem); 
    border-radius: 8px;
    border: none;
    outline: none;
    background: rgba(255,255,255,0.08);
    color: var(--text);
}

.contact-card input:focus,
.contact-card textarea:focus {
    outline: none;
    border: 1px solid var(--glow);
    background: rgba(255,255,255,0.18);
    box-shadow:
        0 0 4px var(--glow),
        inset 0 0 6px rgba(255,255,255,0.15);
    transition: 0.25s ease;
}

.contact-card textarea {
    min-height: clamp(2rem, 12vw, 8rem);
    margin-bottom: 1.3rem;
}

/* LABBEL + ICON */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    

}


textarea {
    font-family: inherit; 
}


/* LABEL */
.input-label {
    display: flex;
    align-items: left;
    gap: 0.55rem;
    font-size: clamp(0.7rem, 1.2vw, 0.9rem);
    color: var(--text);
    opacity: 0.85;
}

/* SVG ICON */
.input-icon {
    width: clamp(12px, 2vw, 14px);
    height: clamp(12px, 2vw, 14px);
    opacity: 0.85;
    transform: translateY(2px);
}

/* ICONS  */
.icon-rosa {
    filter: invert(73%) sepia(93%) saturate(7490%) hue-rotate(295deg) brightness(102%) contrast(101%);
}

.icon-orange {
    filter: invert(53%) sepia(94%) saturate(2470%) hue-rotate(1deg) brightness(103%) contrast(102%);
}
.icon-bla {
    filter: invert(57%) sepia(94%) saturate(2470%) hue-rotate(180deg) brightness(103%) contrast(102%);
}


/* BBUTTON */
.contact-card button {
    width: fit-content;
    padding: clamp(0.45rem, 1.2vw, 0.75rem) clamp(0.8rem, 2vw, 1.4rem);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: clamp(8px, 2vw, 12px);
    border: 1px solid transparent;
    background:
        linear-gradient(var(--text-dark), var(--text-dark)) padding-box,
        linear-gradient(90deg, var(--dark-blue), var(--blue)) border-box;
    color: var(--text);
    font-size: clamp(0.7rem, 1.4vw, 0.9rem);
    font-weight: 100;
    letter-spacing: clamp(0.8px, 0.4vw, 1.6px);
    cursor: pointer;
    box-shadow: none;
    transition: 0.25s ease, transform 0.2s ease;
}


.contact-card button:hover {
    transform: scale(1.04);
    box-shadow:
        0 0 8px var(--glow),
        0 0 12px var(--glow);
}

/* ICON */
.send-btn {
    width: clamp(0.7rem, 1.2vw, 1rem);
    height: clamp(0.7rem, 1.2vw, 1rem);
    margin-left: 0.35rem;
    filter: brightness(0) invert(1);
    vertical-align: -1px;
}

/* POPUP*/
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 320px;
    padding: 1.2rem 1.4rem;
    border-radius: 20px;
    background: rgba(20, 20, 20, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 0 10px var(--glow);
    color: var(--text);
    font-weight: 600;
    text-align: left;
    animation: popupPop 0.35s ease-out forwards;
    z-index: 99999;
}


/* ANIMATION */
@keyframes popupPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.92);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}


/* ============== FOOTER ============== */

footer {
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    text-align: center;
    color: var(--text);
    opacity: 0.9;
    display: flex;               
    flex-direction: column;     
    align-items: center;       

}

/* COPRIGHT */
.copy-symbol {
    color: var(--blue);
    text-shadow:
        0 0 4px var(--glow);
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    font-family: "Great Vibes", cursive;
    align-self: center;
    letter-spacing: 0.5px;
    animation: glowPulse 3s ease-in-out infinite;
    margin-right: 0.2rem;
}

@keyframes glowPulse {
    0%, 100% { text-shadow: 0 0 4px var(--glow); }
    50% { text-shadow: 0 0 8px var(--glow); }
}

/* ICON CONTAINER */
.footer-icons {
    display: flex;
    align-items: center;   
    gap: 0.5rem;
    margin-top: auto; 
}

/* ICON */
.footer-icons img {
    width: 20px;
    height: 20px;
    opacity: 0.75;
    object-fit: contain;
    transition: 0.3s ease;
    filter: drop-shadow(0 0 0 transparent);
    border-radius: 10px;
}

.footer-icons a img {
    transition: 0.25s ease;
}

.footer-icons a:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 6px var(--glow));
}


/* GITHUB ICON DARK/LIGHT MODE */
.footer-icons img.github {
    width: 22px;
    height: 22px;
    display: none;
}


.footer-credit {
    opacity: 0.8;
    letter-spacing: 0.5px;
    font-size: clamp(0.6rem, 1.2vw, 0.9rem);
}

.footer-credit .name {
    color: var(--blue);
    font-family: "Great Vibes", cursive;
    font-weight: 100;
    text-shadow: 0 0 1px var(--glow);
    font-size: clamp(0.8rem, 1.5vw, 1.5rem);
    margin-left: 0.3rem;
}

.github {
    display: none;
}

.instagram-footer{
    opacity: 0.95;
}

/* DIVIDER */
.footer-divider {
    width: 100%;
    height: 1px;
    margin: 5rem auto 1.2rem;
    background: linear-gradient(
    90deg,
    transparent,
    #1429a091,
    transparent
);
    opacity: 0.85;
}

footer a:focus-visible {
    outline: 2px solid var(--glow);
    outline-offset: 4px;
    border-radius: 6px;
}


/* ============== LIGHT MODE ============== */

body.light .portrait {
    border: 0.1px solid color-mix(in srgb, var(--glow) 65%, transparent);

    box-shadow:
        0 0 8px color-mix(in srgb, var(--glow) 75%, transparent),
        0 0 16px color-mix(in srgb, var(--glow) 65%, transparent),
        0 0 24px color-mix(in srgb, var(--glow) 55%, transparent);

    filter: drop-shadow(0 0 8px color-mix(in srgb, var(--glow) 75%, transparent))
            brightness(1.22);

    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

body.light .portrait:hover {
    box-shadow:
        0 0 10px color-mix(in srgb, var(--glow) 70%, transparent),
        0 0 20px color-mix(in srgb, var(--glow) 60%, transparent),
        0 0 30px color-mix(in srgb, var(--glow) 50%, transparent);

    transform: scale(1.01);
}


body.light {
    background: var(--bg-light);
    color: var(--text-dark);
}

/* TEXT */
body.light p,
body.light li,
body.light span {
    color: var(--text-dark);
    opacity: 0.95;
}

body.light strong,
body.light b {
    color: var(--text-dark);
    font-weight: 600;
}

/* Rubriker */
body.light h2 {
    color: var(--text-dark);
    opacity: 1;
    font-weight: 800;
}

body.light h3 {
    color: #333;
    opacity: 1;
    font-weight: 700;
}

/* GLOBAL */
body.light footer,
body.light .nav-links a,
body.light .mobile-menu a,
body.light .hero,
body.light .sectionabout,
body.light .skills-section,
body.light .sectionproject,
body.light .sectioncontact,
body.light .folder-title {
    color: var(--text-dark);
}

/* ACCENT*/
body.light .accent {
    color: var(--glow);
    text-shadow:
        0 0 4px var(--glow);
}
body.light .copy-symbol {
    color: var(--pink) !important;
    text-shadow:
        0 0 4px #ff00c8 !important;
}

/* NAVBAR */
body.light .navbar {
    background: rgba(255, 235, 240, 0.22);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(210, 200, 202, 0.45);
}
body.light .mobile-menu {
    background: rgba(255, 235, 240, 0.22);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(210, 200, 202, 0.45);
}

/* CV */
body.light .nav-links a[href*="cv-ninnie-dahlstrom"],
body.light .mobile-menu a[href*="cv-ninnie-dahlstrom"] {
    color: var(--pink) !important;
}

/* PORTFOLIO */
body.light .nav-links a[href*="portfolio"],
body.light .mobile-menu a[href*="portfolio"] {
    color: var(--orange);
    font-weight: 500;
}

/* HOVER NAVBAR */
body.light .nav-links a:hover,
body.light .mobile-menu a:hover {
    color: var(--glow);
}

/* HAMBURGER */
body.light #hamburgerBtn {
    color: var(--text-dark);
    opacity: 0.85;
}

body.light #hamburgerBtn:hover {
    color: var(--glow);
    opacity: 1;
}

body.light .btn.orb {
    background: var(--bg-light);
    border: 1px solid var(--glow);
    box-shadow: 0 0 2px var(--glow);
}

body.light .btn.orb:hover {
    box-shadow: 0 0 6px var(--glow);
    transform: scale(1.03);
}

body.light .btn.orb.pink {
    background: var(--pink);
    border: 1px solid var(--pink);
    box-shadow: 0 0 4px var(--pink);
}

body.light .btn.orb.orange {
    background: var(--orange);
    border: 1px solid var(--orange);
    box-shadow: 0 0 4px var(--orange);
}

body.light .btn.orb:hover {
    box-shadow: 0 0 6px var(--glow);
    transform: scale(1.03);
}


@media (max-width: 768px) {
    body.light .btn.orb {
        background: transparent;
        border: 1px solid currentColor;
        box-shadow: none;
        padding: 0.35rem 0.6rem;
    }

    body.light .btn.orb.pink {
        background: var(--bg-light);
        color: var(--pink);
        border-color: var(--pink);
    }

    body.light .btn.orb.orange {
        background: var(--bg-light);
        color: var(--orange);
        border-color: var(--orange);
    }

    body.light .btn.orb:hover {
        box-shadow: 0 0 4px var(--glow);
    }
}

body.light .btn.orb span {
    color: var(--console-bg) !important;
}

body.light .btn-icon {
    filter: brightness(1) invert(0) !important;
}


/* CARDS */
body.light .about-card,
body.light .skills-card,
body.light .project-card,
body.light .reference-card,
body.light .contact-card,
body.light .about-education {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(218, 207, 207, 0.829);
    backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 8px 32px rgba(20, 40, 160, 0.04);
}

/* HOVER */
body.light .reference-card:hover,
body.light .project-card:hover {
    box-shadow: 0 0 12px var(--glow);
}

body.light .references-track::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--glow) 65%, white);
    border-radius: 10px;

    box-shadow:
        0 0 6px color-mix(in srgb, var(--glow) 55%, transparent),
        0 0 10px color-mix(in srgb, var(--glow) 35%, transparent);
}

body.light .references-track {
    scrollbar-color: color-mix(in srgb, var(--glow) 65%, white)
                     rgba(255,255,255,0.15);
}


/* ABOUT EDUCATION titel */
body.light .about-education h3 {
    color: var(--purple);
    opacity: 1;
    font-weight: 700;
}

body.light .edu-item {
    border-left: 2px solid #FF8BEA;
}


/* SKILLS  */
body.light .skills-list.icons li {
    background: rgba(255, 255, 255, 0.18); 
    border: 1px solid rgba(0, 0, 0, 0.12); 
    backdrop-filter: blur(10px) saturate(140%); 
    box-shadow: 0 0 10px rgba(0,0,0,0.06);
}

body.light .skills-list.icons i {
    filter: none !important;
    opacity: 1 !important;
}

body.light .skills-list.icons span {
    color: var(--text-dark);
}

body.light .skills-list.icons li:hover {
    box-shadow: 0 0 10px var(--glow);
    transform: translateY(-4px) scale(1.05);
}

/* GITHUB */
body.light .github-icon {
    filter: invert(1);
}

body.light .icon-img.light {
    display: inline-block;
}

/* ACCENT I CARD */
body.light .ui-card-accent {
    background: linear-gradient(90deg,
        var(--orange),
        var(--pink)
    );
    box-shadow:
        0 0 4px #ff00c8;
    opacity: 1;
}

body.light .reference-title {
    border-bottom: 1px solid rgba(172, 91, 117, 0.15);
}

/* PORTFOLIO MODAL */
body.light .project-modal-content {
    background: rgba(253, 242, 247, 0.904);
    border: 1px solid rgba(210, 195, 198, 0.35);
    color: var(--text-dark);
}


body.light .project-icon {
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow:
        0 0 6px var(--glow),
        0 0 2px var(--pink);
}


body.light .project-links a {
    background: rgba(240, 233, 234, 0.24);
    border: 1px solid rgba(158, 141, 144, 0.45);
    color: var(--text-dark);
}
body.light #projectTitle {
    color: var(--text-dark); 
}

body.light .close-modal {
    color: var(--text-dark);
}

body.light .close-modal:hover {
    color: var(--glow);
}

/* CONTACT */
body.light .contact-card input,
body.light .contact-card textarea {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(218, 207, 207, 0.829);
    color: var(--text-dark);
}

body.light .contact-card input:focus,
body.light .contact-card textarea:focus {
    border: 1px solid var(--glow);
    box-shadow:
        0 0 4px var(--glow),
        0 0 8px rgba(0,0,0,0.08);
}

body.light .contact-card button {
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--text-dark);
    background:
        linear-gradient(rgb(255, 253, 253), rgb(255, 253, 253)) padding-box,
        linear-gradient(90deg, var(--orange), var(--pink)) border-box;
}

body.light .send-btn {
    filter: brightness(1) invert(0);
}

body.light .modal-divider {
    background: rgba(0, 0, 0, 0.12); 
}

body.light .skills-hero {
    color: var(--orange);
    font-weight: 700;
}

body.light .reference-signature strong {
    color: var(--pink) !important;
    font-weight: 100;
}

body.light .footer-credit .name {
    color: var(--pink);
    text-shadow: 0 0 1px #ff00c8;
}

/* DIVIDER FOOTER */
body.light .footer-divider {
    background: linear-gradient(
    90deg,
    transparent,
    #FF4FD8,
    transparent
);
    opacity: 0.85;
} 