/* ==========================
CSS VARIABLES
========================== */

:root {
    --primary: #4f8cff;
    --primary-dark: #2f6ce0;
    
    
    --bg: #ffffff;
    --bg-secondary: #f5f7fb;
    
    --text: #1e293b;
    --text-light: #64748b;
    
    --border: #dbe4f0;
    
    --shadow:
        0 10px 30px rgba(0,0,0,0.08);
    
    --radius: 14px;
    
    --transition: 0.3s ease;
    
    --container: 1200px;
    
    
    }
    
    /* ==========================
    DARK MODE
    ========================== */
    
    body.dark-mode {
    --bg: #111827;
    --bg-secondary: #1f2937;
    
    
    --text: #f8fafc;
    --text-light: #cbd5e1;
    
    --border: #334155;
    
    
    }
    
    /* ==========================
    RESET
    ========================== */
    
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      }
    
    html {
    scroll-behavior: smooth;
    }
    
    body {
    font-family:
    Inter,
    Arial,
    sans-serif;
    
    
    background: var(--bg);
    color: var(--text);
    
    transition:
        background .3s ease,
        color .3s ease;
    
    line-height: 1.7;
    
    
    }
    
    /* ==========================
    GLOBAL
    ========================== */
    
    .container {
    width: 90%;
    max-width: var(--container);
    margin: auto;
    }
    
    section {
    padding: 90px 0;
    }
    
    img {
    width: 100%;
    display: block;
    }
    
    h1,
    h2,
    h3 {
    margin-bottom: 1rem;
    }
    
    p {
    color: var(--text-light);
    }
    
    /* ==========================
    NAVIGATION
    ========================== */
    
    .header {
    position: sticky;
    top: 0;
    z-index: 1000;
    
    
    background: var(--bg);
    
    border-bottom:
        1px solid var(--border);
    
    backdrop-filter: blur(10px);
    
    
    }
    
    .navbar {
    max-width: var(--container);
    
    
    margin: auto;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    padding:
        1rem
        2rem;
    
    
    }
    
    .logo {
    font-size: 1.3rem;
    font-weight: 700;
    }
    
    .nav-links {
    list-style: none;
    
    
    display: flex;
    gap: 2rem;
    
    
    }
    
    .nav-links a {
    text-decoration: none;
    color: var(--text);
    
    
    font-weight: 500;
    
    transition:
        color var(--transition);
    
    
    }
    
    .nav-links a:hover,
    .nav-links a.active {
    color: var(--primary);
    }
    
    #themeToggle {
    border: none;
    cursor: pointer;
    
    
    background: transparent;
    
    font-size: 1.1rem;
    
    
    }
    
    /* ==========================
    HERO
    ========================== */
    
    .hero {
    min-height: 85vh;
    
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    text-align: center;
    
    background:
        linear-gradient(
            180deg,
            var(--bg),
            var(--bg-secondary)
        );
    
    
    }
    
    .hero-content {
    max-width: 750px;
    }
    
    .hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    }
    
    .hero h2 {
    color: var(--primary);
    font-size: 1.4rem;
    }
    
    .hero p {
    margin:
    1.5rem auto;
    
    
    max-width: 600px;
    
    
    }
    
    .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    }
    
    /* ==========================
    BUTTONS
    ========================== */
    
    .btn {
    padding:
    0.9rem
    1.7rem;
    
    
    border-radius: 999px;
    
    text-decoration: none;
    
    font-weight: 600;
    
    transition:
        transform .3s ease,
        background .3s ease;
    
    
    }
    
    .btn:hover {
    transform:
    translateY(-3px);
    }
    
    .primary {
    background: var(--primary);
    color: white;
    }
    
    .primary:hover {
    background:
    var(--primary-dark);
    }
    
    .secondary {
    border:
    2px solid var(--primary);
    
    
    color: var(--primary);
    
    
    }
    
    /* ==========================
    FEATURED CAROUSEL
    ========================== */
    
    .featured {
    text-align: center;
    }
    
    .carousel {
    position: relative;
    max-width: 1000px;
    margin: auto;
    }
    
    .slide {
    display: none;
    }
    
    .slide.active {
    display: block;
    }
    
    .slide img {
    border-radius: var(--radius);
    
    
    box-shadow:
        var(--shadow);
    
    
    }
    
    .carousel-btn {
    position: absolute;
    
    
    top: 50%;
    transform: translateY(-50%);
    
    width: 50px;
    height: 50px;
    
    border: none;
    border-radius: 50%;
    
    cursor: pointer;
    
    background: white;
    
    box-shadow: var(--shadow);
    
    
    }
    
    .prev {
    left: -25px;
    }
    
    .next {
    right: -25px;
    }
    
    /* ==========================
    PAGE HEADER
    ========================== */
    
    .page-header {
    text-align: center;
    padding: 100px 0 60px;
    }
    
    /* ==========================
    FILTER BUTTONS
    ========================== */
    
    .portfolio-controls {
    text-align: center;
    }
    
    .filter-btn {
    border: none;
    
    
    padding:
        .8rem
        1.4rem;
    
    margin: .4rem;
    
    border-radius: 999px;
    
    cursor: pointer;
    
    background:
        var(--bg-secondary);
    
    transition:
        all .3s ease;
    
    
    }
    
    .filter-btn.active,
    .filter-btn:hover {
    background:
    var(--primary);
    
    
    color: white;
    
    
    }
    
    /* ==========================
    MASONRY GALLERY
    ========================== */
    
    .gallery-grid {
    
    
    columns: 3 280px;
    
    column-gap: 1rem;
    
    width: 90%;
    margin: auto;
    
    
    }
    
    .gallery-item {
    position: relative;
    
    
    break-inside: avoid;
    
    margin-bottom: 1rem;
    
    overflow: hidden;
    
    border-radius:
        var(--radius);
    
    cursor: pointer;
    
    
    }
    
    .gallery-item img {
    transition:
    transform .4s ease;
    }
    
    .gallery-item:hover img {
    transform:
    scale(1.05);
    }
    
    .overlay {
    position: absolute;
    
    
    inset: 0;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    color: white;
    
    opacity: 0;
    
    transition:
        opacity .3s ease;
    
    background:
        rgba(0,0,0,.45);
    
    
    }
    
    .gallery-item:hover .overlay {
    opacity: 1;
    }
    
    /* ==========================
    LIGHTBOX
    ========================== */
    
    .lightbox {
    position: fixed;
    
    
    inset: 0;
    
    display: none;
    
    align-items: center;
    justify-content: center;
    
    background:
        rgba(0,0,0,.85);
    
    z-index: 2000;
    
    
    }
    
    .lightbox.show {
    display: flex;
    }
    
    .lightbox img {
    max-width: 90%;
    max-height: 90%;
    }
    
    .lightbox-close {
    position: absolute;
    
    
    top: 25px;
    right: 40px;
    
    color: white;
    
    font-size: 2rem;
    
    cursor: pointer;
    
    
    }
    
    /* ==========================
    CONTACT
    ========================== */
    
    .contact-grid {
    display: grid;
    gap: 3rem;
    
    
    grid-template-columns:
        repeat(auto-fit,minmax(320px,1fr));
    
    
    }
    
    .contact-form-container,
    .contact-info {
    background:
    var(--bg-secondary);
    
    
    padding: 2rem;
    
    border-radius:
        var(--radius);
    
    
    }
    
    .form-group {
    margin-bottom: 1rem;
    }
    
    .form-group label {
    display: block;
    margin-bottom: .5rem;
    }
    
    .form-group input,
    .form-group textarea {
    width: 100%;
    
    
    padding: 1rem;
    
    border:
        1px solid var(--border);
    
    border-radius:
        var(--radius);
    
    background:
        var(--bg);
    
    color:
        var(--text);
    
    
    }
    
    .social-links {
    display: flex;
    flex-direction: column;
    
    
    gap: 1rem;
    
    margin-top: 1.5rem;
    
    
    }
    
    .social-links a {
    color:
    var(--primary);
    
    
    text-decoration: none;
    
    
    }
    
    .contact-card {
    margin-top: 2rem;
    }
    
    #formMessage {
    margin-top: 1rem;
    font-weight: 600;
    }
    
    /* ==========================
    FOOTER
    ========================== */
    
    footer {
    text-align: center;
    
    
    padding: 2rem;
    
    border-top:
        1px solid var(--border);
    
    
    }
    
    /* ==========================
    SCROLL BUTTON
    ========================== */
    
    #scrollTopBtn {
    
    
    position: fixed;
    
    bottom: 30px;
    right: 30px;
    
    width: 50px;
    height: 50px;
    
    border: none;
    
    border-radius: 50%;
    
    background:
        var(--primary);
    
    color: white;
    
    cursor: pointer;
    
    display: none;
    
    z-index: 1000;
    
    
    }
    
    #scrollTopBtn.show {
    display: block;
    }
    
    /* ==========================
    ANIMATIONS
    ========================== */
    
    .fade-in {
    opacity: 0;
    transform: translateY(30px);
    
    
    transition:
        opacity .8s ease,
        transform .8s ease;
    
    }
    
    .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    }
    
    /* ==========================
    RESPONSIVE
    ========================== */
    
    @media (max-width: 768px) {
    
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .carousel-btn {
        display: none;
    }
    
    .gallery-grid {
        columns: 1;
    }
    
    }
    