:root {
    --navy: #071426;
    --slate: #2f3e4d;
    --ice: #d6e8fb;
    --accent-blue: #3b82f6;
    --accent-glow: #60a5fa;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #d6e8fb, #f0f6ff);
    color: var(--navy);
    line-height: 1.6;
}

.wrapper {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}

/* HEADER */

#name {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border: 2px solid var(--navy);
    background: var(--white);
    border-radius: 12px;
    transition: 0.3s;
    overflow: hidden;
}

#name:hover {
    background: var(--accent-blue);
}

#name a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 0;
}

.site-logo {
    height: 42px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* NAVIGATION */

.nav {
    margin-top: 30px;
    position: relative;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 0;
    margin: 0;
}

.nav-links li {
    padding: 8px 14px;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.nav-links li:hover {
    border-bottom: 2px solid var(--accent-blue);
}

.nav-links a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover,
.active-link {
    color: var(--accent-blue);
}

.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 5px;
    z-index: 2000;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--navy);
    border-radius: 2px;
    transition: 0.3s;
}

/* MOBILE NAV */

@media (max-width: 768px) {

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -260px;
        width: 260px;
        height: 100%;
        background: var(--white);
        flex-direction: column;
        padding-top: 80px;
        gap: 25px;
        box-shadow: -4px 0 25px rgba(0,0,0,0.2);
        transition: 0.3s ease;
        z-index: 1500;
    }

    .menu-toggle:checked ~ .nav-links {
        right: 0;
    }

    .menu-toggle:checked + .hamburger span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle:checked + .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked + .hamburger span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

}

/* PAGE TITLE */

.page-title {
    font-size: 36px;
    font-weight: 700;
    margin: 60px 0 30px;
    text-align: center;
}

/* MAIN CONTENT */

.content-row {
    display: flex;
    gap: 80px;
    align-items: center;
}

.side-image-wrapper {
    width: 260px;
    flex-shrink: 0;
}

.side-image {
    width: 100%;
    border-radius: 20px;
    border: 3px solid var(--slate);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* CONTACT BOX */

.side-name {
    text-align: center;
    margin-top: 15px;
    padding: 20px;
    border: 2px solid var(--navy);
    background: var(--white);
    border-radius: 16px;
}

.side-name p {
    margin: 12px 0;
    color: var(--slate);
    font-size: 15px;
}

.side-name a {
    display: inline-block;
    padding: 12px 20px;
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    transition: 0.3s;
}

.side-name a:hover {
    background: var(--navy);
    transform: translateY(-2px);
}

.main-content {
    flex: 1;
    max-width: 700px;
}

.main-content h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.main-content p {
    margin-bottom: 18px;
    color: var(--slate);
    font-size: 17px;
}

/* PORTFOLIO GRID */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.35s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0,0,0,0.2);
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(120deg, transparent, rgba(96,165,250,0.25));
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
}

.card:hover::after {
    opacity: 1;
}

.card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: 0.4s;
}

.card:hover img {
    transform: scale(1.05);
}

.card p {
    padding: 15px;
    font-size: 14px;
    color: var(--slate);
}

.card a {
    display: inline-block;
    margin: 15px;
    padding: 10px 16px;
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: 0.3s;
}

.card a:hover {
    background: var(--navy);
    transform: translateY(-2px);
}

/* LIGHTBOX */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    display: flex;
    gap: 30px;
    background: white;
    padding: 25px;
    border-radius: 16px;
    max-width: 1000px;
    width: 90%;
    align-items: center;
}

#lightbox-img {
    width: 50%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-text {
    width: 50%;
}

.lightbox-text p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--slate);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* CONTACT PAGE */

.contact-section {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    align-items: flex-start;
}

.contact-card,
.contact-form-wrapper {
    flex: 1;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-card h3 {
    font-size: 30px;
    margin-bottom: 20px;
}

.contact-card p {
    color: var(--slate);
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item h4 {
    margin-bottom: 8px;
    font-size: 18px;
}

.contact-item p {
    margin: 0;
}

.contact-item a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--navy);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #dbe4ee;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(59,130,246,0.2);
}

.contact-form button {
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: var(--accent-blue);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background: var(--navy);
    transform: translateY(-2px);
}

/* SCROLL ANIMATIONS */

.hidden-element {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.show-element {
    opacity: 1;
    transform: translateY(0);
}

/* MOBILE */

@media (max-width: 768px) {

    .content-row,
    .contact-section,
    .lightbox-content {
        flex-direction: column;
        text-align: center;
    }

    .side-image-wrapper {
        width: 70%;
    }

    #lightbox-img,
    .lightbox-text {
        width: 100%;
    }

    .site-logo {
        height: 36px;
    }

}

/* =========================================
   CONTENT SECTIONS
========================================= */

.hero-section {
    margin-top: 40px;
}

.content-section {
    margin-top: 100px;
}

.section-header {
    margin-bottom: 35px;
}

.section-tag {
    display: inline-block;

    margin-bottom: 12px;
    padding: 8px 14px;

    background: rgba(59,130,246,0.12);
    color: var(--accent-blue);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;

    border-radius: 999px;
}

.section-header h2 {
    margin: 0;

    font-size: 42px;
    line-height: 1.1;
}

/* =========================================
   HERO SECTION
========================================= */

.hero-title {
    margin: 0;

    font-size: 58px;
    line-height: 1.05;

    max-width: 900px;
}

.hero-text {
    max-width: 700px;

    margin-top: 25px;

    font-size: 20px;
    color: var(--slate);
}

/* =========================================
   SECTION CARD
========================================= */

.section-card {
    padding: 40px;

    background: var(--white);

    border-radius: 24px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* =========================================
   SKILLS GRID
========================================= */

.skills-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

    gap: 30px;
}

.skill-card {
    padding: 35px;

    background: var(--white);

    border-radius: 24px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);

    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-8px);

    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.skill-card h3 {
    margin-top: 0;
    margin-bottom: 15px;

    font-size: 24px;
}

/* =========================================
   MOBILE CONTENT SECTIONS
========================================= */

@media (max-width: 768px) {

    .content-section {
        margin-top: 70px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-text {
        font-size: 18px;
    }

}