@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Oswald:wght@400;500;700&display=swap');

:root {
    --bg-dark: #0a0a0c;
    --brand-blue: #3b3bff; 
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body { 
    background-color: var(--bg-dark); 
    color: var(--text-light); 
    font-family: var(--font-body); 
    overflow-x: hidden; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, .nav-links a, .btn-outline { 
    font-family: var(--font-heading); 
    text-transform: uppercase; 
}

nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; 
    position: fixed; width: 100%; top: 0;
    background: rgba(10, 10, 12, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05); z-index: 100;
}

.logo-img { height: 55px; width: auto; display: block; transition: 0.3s; }
.logo-img:hover { transform: scale(1.05); }

.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a { color: var(--text-light); text-decoration: none; font-size: 1.1rem; font-weight: 500; letter-spacing: 1px; transition: color 0.3s; }
.nav-links a:hover { color: var(--brand-blue); }

.hamburger { display: none; cursor: pointer; z-index: 101; }
.hamburger div { width: 30px; height: 2px; background-color: var(--text-light); margin: 6px 0; transition: 0.3s; }

.blue-section-wrapper { background-color: var(--bg-dark); width: 100%; }
.wave-top, .wave-bottom { display: block; width: 100%; height: 8vw; min-height: 60px; }
.wave-top { margin-bottom: -1px; } 
.wave-bottom { margin-top: -1px; }

.footer-wrapper { width: 100%; background-color: var(--bg-dark); }
footer { padding: 60px 5% 80px; text-align: center; background-color: var(--brand-blue); color: var(--text-light); }
footer h2 { font-size: 2.5rem; margin-bottom: 25px; font-weight: 500; letter-spacing: 1px;}
.socials { display: flex; justify-content: center; gap: 40px; }
.socials a { color: rgba(255, 255, 255, 0.8); text-decoration: none; font-size: 1.1rem; transition: 0.3s; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 1px;}
.socials a:hover { color: var(--text-light); transform: translateY(-2px); display: inline-block;}

.hero { display: flex; flex-direction: column; justify-content: center; padding: 150px 5% 80px; position: relative; min-height: 90vh; }
.hero h1 { font-size: clamp(5rem, 15vw, 12rem); font-weight: 700; line-height: 0.9; margin-left: -5px; color: var(--text-light); letter-spacing: 2px; }
.hero h2 { font-size: clamp(1.5rem, 4vw, 3rem); font-weight: 500; color: var(--brand-blue); margin-top: 10px; letter-spacing: 2px; }
.hero p { max-width: 500px; margin-top: 30px; color: var(--text-gray); font-size: 1.1rem; line-height: 1.6; font-weight: 300; }

.skills-section { padding: 120px 5%; text-align: center; background-color: var(--brand-blue); }
.skills-section .section-title { color: var(--text-light); margin-bottom: 60px; font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: 1px;}
.skills-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; max-width: 800px; margin: 0 auto; }
.skill-tag { padding: 16px 32px; border-radius: 50px; font-size: 1.05rem; font-weight: 500; letter-spacing: 0.5px; background: rgba(10, 10, 12, 0.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-light); box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: all 0.3s ease; }
.skill-tag:hover { transform: translateY(-5px); background: rgba(10, 10, 12, 0.6); border-color: rgba(255, 255, 255, 0.3); }

.work-section { padding: 120px 5%; max-width: 1400px; margin: 0 auto; }
.section-title.dark { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 80px; }
.project-row { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 120px; align-items: center; }
.project-row:nth-child(even) .project-image-wrapper { order: 2; }

.project-image-wrapper { display: block; width: 100%; aspect-ratio: 4/3; background: #16161a; border-radius: 12px; overflow: hidden; transition: all 0.4s ease; border: 1px solid rgba(255,255,255,0.05); position: relative; z-index: 1; text-decoration: none; }
.project-row:hover .project-image-wrapper { transform: scale(1.02); box-shadow: 0 20px 50px rgba(59, 59, 255, 0.25); border-color: rgba(59,59,255,0.5); z-index: 2; }

.project-date { display: block; font-family: var(--font-heading); color: var(--brand-blue); font-size: 1rem; letter-spacing: 2px; margin-bottom: 8px; }
.project-info h3 { font-size: clamp(2rem, 3vw, 2.8rem); margin-bottom: 15px; font-weight: 500; letter-spacing: 1px; }
.project-info p { color: var(--text-gray); margin-bottom: 35px; font-size: 1.1rem; max-width: 90%; font-weight: 300; line-height: 1.7; }
.btn-outline { display: inline-block; padding: 12px 35px; border: 2px solid var(--brand-blue); color: var(--text-light); text-decoration: none; font-size: 1.1rem; letter-spacing: 1px; border-radius: 50px; transition: all 0.3s; background: rgba(59,59,255,0.05); }
.btn-outline:hover { background: var(--brand-blue); color: white; transform: translateY(-3px); }

.project-hero { padding: 150px 5% 50px; text-align: center; }
.project-hero h1 { font-size: clamp(3.5rem, 8vw, 7rem); line-height: 1.1; margin-bottom: 10px; color: var(--text-light); }
.project-hero-subtitle { font-size: clamp(1.2rem, 3vw, 1.8rem); color: var(--brand-blue); font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 2px; }
.project-meta-bar { display: flex; justify-content: center; gap: 80px; flex-wrap: wrap; max-width: 900px; margin: 50px auto; padding: 30px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; }
.meta-item { text-align: center; }
.meta-item span { display: block; font-family: var(--font-body); font-size: 0.85rem; color: var(--text-gray); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.meta-item p { font-family: var(--font-heading); font-size: 1.3rem; color: var(--text-light); margin: 0; letter-spacing: 1px; }

.project-hero-image { width: 90%; max-width: 1400px; margin: 0 auto 100px; aspect-ratio: 21/9; background: #16161a; border-radius: 16px; box-shadow: 0 30px 60px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.05); overflow: hidden; }
.project-content { max-width: 800px; margin: 0 auto; padding: 0 5% 100px; }
.project-text-block { margin-bottom: 80px; }
.project-text-block h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--brand-blue); margin-bottom: 25px; }
.project-text-block p { font-size: 1.15rem; line-height: 1.8; color: var(--text-gray); margin-bottom: 20px; font-weight: 300; }
.project-image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 80px; }
.project-image-grid div { width: 100%; aspect-ratio: 4/3; background: #16161a; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); overflow: hidden; }
.project-image-full { width: 100%; aspect-ratio: 16/9; background: #16161a; border-radius: 12px; margin-bottom: 80px; border: 1px solid rgba(255,255,255,0.05); overflow: hidden; }
.next-project { text-align: center; padding: 80px 5%; border-top: 1px solid rgba(255,255,255,0.05); margin-bottom: 40px; }
.next-project p { color: var(--text-gray); font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; font-size: 1.1rem; }
.next-project a { text-decoration: none; display: inline-block; }
.next-project h2 { font-size: clamp(3rem, 6vw, 5rem); color: var(--text-light); transition: 0.3s; }
.next-project a:hover h2 { color: var(--brand-blue); transform: scale(1.02); }

.about-section { padding: 150px 5% 100px; max-width: 1200px; margin: 0 auto; }
.about-section h1 { font-size: clamp(4rem, 10vw, 6rem); margin-bottom: 80px; text-align: center; }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 100px; align-items: center; }

.about-left-column { display: flex; flex-direction: column; align-items: stretch; }
.name-photo-container { display: flex; flex-direction: column; align-items: center; }

.name-above-head { 
    color: var(--brand-blue); 
    font-family: var(--font-heading); 
    font-size: clamp(3rem, 6vw, 4.5rem); 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    margin-bottom: 40px;
    line-height: 1; 
    text-align: center;
    width: 100%;
}

.about-img-wrapper { position: relative; width: 100%; }
.about-image { width: 100%; aspect-ratio: 4/5; background: #16161a; border-radius: 12px; position: relative; z-index: 2; object-fit: cover; border: 1px solid rgba(255,255,255,0.05); display: block; }
.about-img-wrapper::after { content: ''; position: absolute; top: 30px; left: -30px; width: 100%; height: 100%; border: 2px solid var(--brand-blue); border-radius: 12px; z-index: 1; transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); }
.about-img-wrapper:hover::after { top: 15px; left: -15px; }
.about-subtitle { font-family: var(--font-heading); color: var(--brand-blue); font-size: 1.5rem; letter-spacing: 2px; margin-bottom: 15px; text-transform: uppercase; }

.about-lead { font-size: 1.4rem !important; color: var(--text-light) !important; font-weight: 400 !important; margin-bottom: 30px !important; line-height: 1.6 !important; }
.about-text p { font-size: 1.1rem; line-height: 1.8; color: var(--text-gray); margin-bottom: 20px; font-weight: 300; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 40px 0; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); padding: 30px 0; }
.fact-item h4 { font-family: var(--font-heading); color: var(--text-light); font-size: 1.2rem; margin-bottom: 8px; letter-spacing: 1px;}
.fact-item p { margin: 0 !important; font-size: 1rem !important; color: var(--text-gray); font-weight: 400 !important;}

.contact-section { padding: 150px 5% 80px; max-width: 1200px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.contact-info h1 { font-size: clamp(3.5rem, 8vw, 5rem); margin-bottom: 20px; line-height: 1; }
.contact-info p { font-size: 1.1rem; line-height: 1.8; color: var(--text-gray); margin-bottom: 40px; font-weight: 300; }
.contact-details a { display: block; color: var(--text-light); text-decoration: none; font-size: 1.2rem; margin-bottom: 15px; font-weight: 500; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.contact-details a:hover { color: var(--brand-blue); padding-left: 10px; }
.form-group { margin-bottom: 30px; }
.form-group label { display: block; font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 12px; letter-spacing: 1px; color: var(--text-light); }
.form-group input, .form-group textarea { width: 100%; padding: 18px 20px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255,255,255,0.1); color: var(--text-light); font-family: var(--font-body); font-size: 1.05rem; border-radius: 8px; transition: 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--brand-blue); background: rgba(59,59,255,0.05); }
.form-group textarea { min-height: 200px; resize: vertical; } 
.btn-submit { background: var(--brand-blue); color: var(--text-light); border: none; padding: 18px 40px; font-family: var(--font-heading); font-size: 1.2rem; letter-spacing: 1px; border-radius: 50px; cursor: pointer; transition: 0.3s; width: 100%; }
.btn-submit:hover { background: var(--text-light); color: var(--brand-blue); }

.clickable-img { cursor: zoom-in; transition: opacity 0.3s ease, transform 0.3s ease; }
.clickable-img:hover { opacity: 0.8; transform: scale(1.02); }

.modal {
    display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100vw; height: 100vh; 
    background-color: rgba(10, 10, 12, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    justify-content: center; align-items: center;
}

.modal-content {
    max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5); animation: zoomIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.close-modal {
    position: absolute; top: 20px; right: 40px; color: var(--text-gray); font-size: 45px;
    font-weight: bold; cursor: pointer; transition: 0.3s; font-family: var(--font-body); z-index: 10000;
}
.close-modal:hover { color: var(--brand-blue); transform: scale(1.1); }

/* --- MOBILE --- */
@media (max-width: 768px) {
    .nav-links { position: fixed; right: -100%; top: 0; flex-direction: column; background: rgba(10, 10, 12, 0.98); width: 100%; height: 100vh; justify-content: center; align-items: center; transition: 0.5s ease; }
    .nav-links.nav-active { right: 0; }
    .nav-links a { font-size: 1.5rem; margin-bottom: 20px; }
    .hamburger { display: block; }
    .toggle .line1 { transform: rotate(-45deg) translate(-6px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-6px, -6px); }
    
    .project-meta-bar { gap: 30px; }
    .project-hero-image { aspect-ratio: 16/9; }
    .project-image-grid { grid-template-columns: 1fr; }
    
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
    .about-img-wrapper::after { display: none; }
    .about-facts { grid-template-columns: 1fr; gap: 20px; } 

    .project-row { grid-template-columns: 1fr; gap: 40px; margin-bottom: 80px; }
    .project-row:nth-child(even) .project-image-wrapper { order: -1; }
    .project-info p { max-width: 100%; }

    .close-modal { top: 10px; right: 20px; font-size: 35px; }
    
    .name-above-head { font-size: 2.5rem; text-align: center; }
    

    .hero h1 { font-size: clamp(3.5rem, 15vw, 6rem); letter-spacing: 1px; margin-left: 0; }
    .hero h2 { font-size: clamp(1.5rem, 7vw, 2.5rem); }
    .project-hero h1 { font-size: clamp(3.2rem, 12vw, 5rem); }
    .about-section h1, .contact-info h1 { font-size: clamp(3.2rem, 12vw, 5rem); margin-bottom: 40px; }
    .skills-section .section-title, .section-title.dark { font-size: 2.5rem; }
}