:root {
    --bg: #0f172a;
    --surface: rgba(255, 255, 255, .04);
    --border: rgba(255, 255, 255, .08);
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent: #6366f1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.container {
    width: min(1100px, 92%);
    margin: auto;
}

html,
body {
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: var(--bg);
    color: var(--text);
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero {
    min-height: 100svh;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 6rem);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}


/* NAVBAR */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(20px);
    background: rgba(15, 23, 42, .85);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: auto;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
}

.logo span {
    color: var(--accent);
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px;
}

.hero-content {
    max-width: 800px;
}

.tag {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    margin-bottom: 25px;
}

.hero p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: .3s;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
}

.btn-secondary {
    border: 1px solid var(--border);
    color: white;
}

.btn-secondary:hover {
    background: var(--surface);
}


/* SECTION */
section {
    padding: 100px 20px;
}

.container {
    max-width: 1100px;
    margin: auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 35px;
}

/* CARD */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
}


/* ABOUT */
.about-text {
    color: var(--muted);
    line-height: 1.9;
}


/* SKILLS */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.skill-category h3 {
    margin-bottom: 18px;
}

.simple-skills {
    list-style: none;
}

.simple-skills li {
    padding: 12px 0;
    color: var(--muted);
    transition: .3s;
}

.simple-skills li::before {
    content: "→";
    color: var(--accent);
    margin-right: 12px;
    font-weight: bold;
}

.simple-skills li:hover {
    color: white;
    padding-left: 8px;
}

/* PROJECTS */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.project {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    transition: .3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project:hover {
    transform: translateY(-6px);
}

.project-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    margin-bottom: 18px;
    background: linear-gradient(135deg,
            rgba(99, 102, 241, .5),
            rgba(255, 255, 255, .05));
    border: 1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--muted);
    font-weight: 600;
    font-size: .95rem;
}

.project h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.project-tech span {
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    color: var(--muted);
    font-size: .8rem;
}

.project p {
    color: var(--muted);
    line-height: 1.7;
    flex-grow: 1;
}


/* PROJECT BUTTONS */
.project-links {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.project-btn {
    flex: 1;
    min-width: 120px;

    text-align: center;
    text-decoration: none;

    padding: 12px 16px;

    border-radius: 50px;
    font-size: .9rem;
    font-weight: 600;

    transition: .3s ease;
}

.project-btn.live {
    background: var(--accent);
    color: white;
}

.project-btn.live:hover {
    transform: translateY(-2px);
}

.project-btn.code {
    border: 1px solid var(--border);
    color: white;
}

.project-btn.code:hover {
    background: var(--surface);
}


/* CONTACT */
.contact {
    text-align: center;
}

.contact h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 20px;
}

.contact p {
    color: var(--muted);
    margin-bottom: 35px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.contact-card {
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 20px;
    transition: .3s ease;
}

.contact-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}

.contact-card span {
    font-size: 2rem;
    display: block;
    margin-bottom: 15px;
}

.contact-card h3 {
    color: var(--text);
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--muted);
    margin: 0;
    font-size: .95rem;
}


/* FOOTER */

/* Responsive Footer */
@media(max-width:768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin: auto;
    }

    .footer-links,
    .footer-social {
        align-items: center;
    }
}

/* Small Phones */
@media (max-width:480px) {
    .card {
        padding: 24px;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .project-links {
        flex-direction: column;
    }

    .project-btn {
        width: 100%;
    }
}

/* Mobile */
@media (max-width:768px) {
    .hero {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .projects {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links,
    .footer-social {
        align-items: center;
    }
}

/* Tablet */
@media (max-width:992px) {

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

}

/* Large Desktop */
@media (min-width:1400px) {
    .container {
        max-width: 1300px;
    }
}

/* MODERN RESPONSIVE FOOTER */
.footer {
    margin-top: 80px;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, .02),
            rgba(255, 255, 255, .04));
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-brand h3 {
    font-size: 2rem;
    font-weight: 800;
}

.footer-brand span {
    color: var(--accent);
}

.footer-brand p {
    color: var(--muted);
    line-height: 1.8;
    max-width: 450px;
}

.footer-links,
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text);
}

.footer-links a,
.footer-social a {
    color: var(--muted);
    text-decoration: none;
    transition: all .3s ease;
    width: fit-content;
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--accent);
    transform: translateX(6px);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 25px 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--muted);
    font-size: .95rem;
    letter-spacing: .3px;
}

.footer-social-icons {
    display: flex;
    gap: 14px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.footer-social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    color: white;
    transition: .3s ease;
}

.footer-social-icons a:hover {
    background: var(--accent);
    transform: translateY(-4px);
}



/* SMALL MOBILE */
@media (max-width:480px) {

    .footer-container {
        padding: 40px 16px;
        gap: 28px;
    }

    .footer-brand h3 {
        font-size: 1.7rem;
    }

    .footer-brand p {
        font-size: .95rem;
    }

    .footer-links h4,
    .footer-social h4 {
        font-size: 1rem;
    }

    .footer-bottom {
        padding: 18px 12px;
    }

    .footer-bottom p {
        font-size: .85rem;
        line-height: 1.6;
    }
}


/* MOBILE */
@media (max-width:768px) {

    .footer {
        margin-top: 60px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 35px;
        padding: 50px 20px;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-links,
    .footer-social {
        align-items: center;
    }

    .footer-links a,
    .footer-social a {
        width: auto;
    }

    .footer-links a:hover,
    .footer-social a:hover {
        transform: none;
    }

    .footer-social-icons {
        justify-content: center;
    }
}

/* TABLET */
@media (max-width:992px) {

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        align-items: center;
    }

    .footer-brand p {
        max-width: 600px;
    }
}

/* LARGE DESKTOP */
@media (min-width:1400px) {

    .footer-container {
        max-width: 1300px;
        gap: 80px;
    }

    .footer-brand h3 {
        font-size: 2.2rem;
    }
}