:root {
    --accent-color: #00d4ff;
    --text-dim: rgba(255, 255, 255, 0.7);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    
    --body-bg1: url('../images/midnightBackgroundDigitalizedDesktop.png');
    --body-bg2: url('../images/midnightBackgroundDigitalizedTablet.png');
    --body-bg3: url('../images/midnightBackgroundDigitalizedMobile.png');

    --subtitle: #00d4ff;
    --subtitle1: #00d4ff;
    --subtitle2: #ffffff;
    --text-color: #ffffff;
    --text-color1: #ffffff;
    --section-blur-bg: rgba(11, 13, 23, 0.6);
}

body.light-theme {
    --body-bg1: url('../images/morningBackgroundDigitalizedDesktop.png');
    --body-bg2: url('../images/morningBackgroundDigitalizedTablet.png');
    --body-bg3: url('../images/morningBackgroundDigitalizedMobile.png');
    --text-color: #00d4ff; 
    --text-color1: #ffffff;
    --text-dim: rgba(30, 41, 59, 0.7);
    --section-blur-bg: rgba(255, 255, 255, 0.4);
    
    --subtitle: #00d4ff;
    --subtitle1: #000000;
    --subtitle2: #000000;
    --accent-color: #002f38; 
}

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

body, 
.hero-container, 
.card, 
.skill-item, 
.skills-display,
.description,
header {
    transition: background-color 0.5s ease, 
                background-image 0.5s ease, 
                color 0.5s ease, 
                border-color 0.5s ease, 
                box-shadow 0.5s ease;
}



::-webkit-scrollbar {
	width: 12px;
}

::-webkit-scrollbar-track {
	background: var(--scrollbar-bg);
}

::-webkit-scrollbar-thumb {
	background: var(--scrollbar-thumb);
	border-radius: 10px;
	border: 3px solid var(--scrollbar-bg);
}

::-webkit-scrollbar-thumb:hover {
	background: var(--scrollbar-hover);
}

body {
    background-image: var(--body-bg1);
    color: var(--text-color);
    
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    
    transition: background-image 0.5s ease-in-out, color 0.4s ease;
    
    min-height: 100vh;
    margin: 0;
}

.main-nav{
    margin-right: 0;
}

header{
    padding: 0;
}


.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem;
    padding-top: 5rem; 
}

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

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 2rem;
}

/* Typography Scaling */
.title-group { margin-bottom: 2rem; }

.main-title {
    margin-top: -1em;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -2px;
    margin-bottom: 0.8rem;
    color: var(--text-color1);
}

.last-name {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-color1);
}

.sub-title {
    font-size: clamp(0.85rem, 2vw, 1.2rem);
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--subtitle);
    font-weight: 300;
}

.description {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    max-width: 520px;
    color: var(--text-color1);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

.description.text-fade {
    opacity: 0;
}

.quote {
    font-style: italic;
    border-left: 2px solid var(--subtitle);
    padding-left: 1.5rem;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    color: var(--subtitle);
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

.description.text-fade {
    opacity: 0;
}


.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-color1);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.cta-link:hover { 
    color: var(--subtitle);
    scale: 1.2; }

/* Image Handling */
.visual-content { 
    display: flex;
    justify-content: flex-end;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
}

.hero-image {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
    object-fit: contain;
}

.featured-projects {
    position: relative; 
    padding: 8rem 5vw;
    overflow: hidden; 
}

.featured-projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--section-blur-bg);
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    z-index: 1; 
}

.featured-projects .container {
    position: relative;
    z-index: 2; 
}

.section-label {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--subtitle1);
    margin-bottom: 3rem;
    text-align: center;
}



.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr; 
    gap: 2rem;
    width: 100%;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(20px);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-image {
    width: 100%;
    height: 220px;
    background: #1a1d2e; 
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 2rem;
}

.project-tag {
    font-size: 0.75rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

.project-info h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--nav-link);
}

.project-info p {
    color: var(--nav-link);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-link {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s;
}

.project-link:hover {
    color: var(--subtitle1);
}

.menu-toggle {
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    flex-shrink: 0; 
}



@media (min-width: 1025px) {
    .hero-image{
        display: none;
    }
}
/* Tablet Viewport */
@media (max-width: 1024px) {

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card {
        display: flex;
        flex-direction: column;
        height: 100%; 
    }

    .project-card:nth-child(3) {
        grid-column: 1 / span 2; 
        justify-self: center; 
        width: calc(50% - 1rem); 
    }

    .main-title{
        font-size: clamp(3.2rem, 10vw, 4.8rem);
        color: var(--nav-link);
    }

    .last-name{
        color: transparent;
        -webkit-text-stroke: 1px var(--nav-link);
    }

    .sub-title{
        color: var(--nav-link)
    }

    .sub-title{
        font-size: 1.5rem;
        letter-spacing: 5px;
    }

    .project-link{
        color: var(--subtitle2);
    }

    .description{
        color: var(--nav-link);
    }

    .quote{
        color: var(--nav-link)
    }

    .hero-section {
        align-items: flex-start; 
        padding-top: 10vh; 
        min-height: 100vh;
        position: relative;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        width: 100%;
    }

    .text-content {
        order: 1; 
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .cta-link {
        position: fixed;
        bottom: 2rem;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        width: calc(100% - 3rem); 
        max-width: 500px;         
        display: flex;
        justify-content: center;
        padding: 1rem;          
        background: rgba(0, 212, 255, 0.1); 
        backdrop-filter: blur(10px); 
        border: 1px solid var(--accent-color);
        border-radius: 4px;      
        z-index: 100;
    }

    .description {
        font-size: 1.3rem;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.8;
    }

    .hero-image, .visual-content {
        display: none; 
    }

    body {
        background-image: var(--body-bg2);
        background-size: cover;
    }

    .quote {
        font-size: 1.1rem;
        border-left: none;
        border-top: 1.5px solid var(--accent-color);
        padding: 1rem 0 0 0;
        max-width: 400px;
        margin: 0 auto 2.5rem auto;
    }
}

@media (max-width: 800px) {
    .main-nav{
        width: 100%;
        margin-left: auto;
    }
}

@media (max-width: 720px) {
    .menu-toggle {
        position: fixed !important; 
        
        top: 25px !important;  
        right: 25px !important; 
        
        margin: 0 !important;
        transform: none !important;
        
        display: flex !important;
        z-index: 9999;
    }
}

@media (max-width: 580px) {
    header, .hero-section {
        overflow: visible; 
    }

    .menu-toggle {
        top: 1rem;
        right: 1rem;
        transform: scale(0.85); 
    }
}

/* Mobile Viewport */
@media (max-width: 650px) {
    .projects-grid {
        grid-template-columns: 1fr;
        justify-content: center;
    }

    .project-card {
        width: 100%; 
    }

    .project-card:nth-child(3) {
        grid-column: span 1; 
        height: auto;
        grid-column: auto;
        width: 100%;
    }
    
    .project-image {
        height: 200px; 
    }

    .hero-section {
        padding: 1.5rem;
        padding-top: 4rem;
        align-items: flex-start;
        position: relative; 
        min-height: 100vh;
    }

    .main-title {
        font-size: clamp(2.2rem, 12vw, 3rem);
    }

    .sub-title {
        letter-spacing: 2px;
        font-size: 1.2rem;
    }

    .cta-link {
        position: fixed; 
        bottom: 2rem;    
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        width: calc(100% - 3rem); 
        max-width: 400px; 
        display: flex; 
        justify-content: center;
        align-items: center;
        padding: 1.2rem;
        background: rgba(0, 212, 255, 0.15);
        backdrop-filter: blur(10px); 
        border: 1px solid var(--accent-color);
        border-radius: 8px;
        z-index: 100;
        scale: 1;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent; 
    }

    body {
        background-image: var(--body-bg3);
        background-size: cover;
    }

    .footer-meta{
        margin-top: -1.5em;
    }

    .description{
        margin-top: -1em;
        font-size: 0.9rem;
		color: white !important;
    }

    .quote{
        font-size: 0.8em;
        color: white !important;
    }
}
