
/* =====================================
   VISHESH SHAILESH MEHTA - PERSONAL WEBSITE
   Main Design Styles
===================================== */


/* 1. Basic Settings */

:root {
    --bg-dark: #08111f;
    --bg-card: #111e30;
    --text-main: #f1f5f9;
    --text-muted: #a7b4c5;
    --accent: #38bdf8;
    --accent-hover: #0ea5e9;
    --border: rgba(255, 255, 255, 0.10);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
}

.container {
    width: min(1120px, 90%);
    margin: auto;
}


/* 2. Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(8, 17, 31, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    min-height: 76px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
}

.logo-mark {
    background: var(--accent);
    color: #08111f;
    padding: 7px 11px;
    border-radius: 8px;
    font-size: 15px;
}

.logo-name {
    font-size: 16px;
}

.main-nav {
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--accent);
}


/* 3. Homepage Hero */

.hero {
    min-height: calc(100vh - 76px);
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    padding: 30px 0;

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(14, 165, 233, 0.16),
            transparent 35%
        );
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    align-items: start;
    gap: 60px;
}

.hero-layout:has(.hero-photo[hidden]) {
    grid-template-columns: 1fr;
}

.hero-content {
    min-width: 0;
}

.eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.15;
    max-width: none;
    margin-bottom: 24px;
}

.hero h1 span {
    display: inline;
    color: var(--accent);
}

.hero h2 {
    font-size: clamp(19px, 3vw, 26px);
    font-weight: 500;
    color: #d3dfed;
    margin-bottom: 18px;
}

.hero-description {
    max-width: 620px;
    color: var(--text-muted);
    font-size: 17px;
    margin-bottom: 35px;
}


/* 4. Optional Profile Photograph */

.hero-photo {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.hero-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Keep disabled photograph completely hidden */

.hero-photo[hidden] {
    display: none;
}


/* 5. Buttons */

.primary-button {
    display: inline-block;
    padding: 13px 25px;
    background: var(--accent);
    color: #08111f;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.primary-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}


/* 6. Content Sections */

.content-section {
    min-height: calc(100vh - 76px);
    box-sizing: border-box;
    padding: 20px 0;
    scroll-margin-top: 20px;
    border-top: none;
}

.content-section h2 {
    font-size: 34px;
    margin-bottom: 25px;
}

.content-section p {
    color: var(--text-muted);
    max-width: 760px;
    font-size: 16px;
}


/* Project Cards */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.3s, border-color 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.project-card h3 {
    color: var(--text-main);
    font-size: 21px;
    margin-bottom: 10px;
}

.project-category {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.project-card .project-description {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 18px;
}

.project-image {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 18px;
}

.project-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.project-link:hover {
    color: var(--accent-hover);
}


/* Contact Links */

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.contact-links a {
    display: inline-block;
    padding: 11px 22px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--accent);
    background: var(--bg-card);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.contact-links a:hover {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.contact-links a[hidden] {
    display: none;
}


/* 7. Education Card */

.info-card {
    margin-top: 25px;
    max-width: 600px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: transform 0.3s, border-color 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.info-card h3 {
    font-size: 21px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.info-card p {
    margin-top: 5px;
}


/* 8. Footer */

.site-footer {
    padding: 30px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.site-footer p {
    color: var(--text-muted);
    font-size: 13px;
}


/* 9. Mobile Responsive Design */

@media (max-width: 768px) {

    /* Header */

    .site-header .container {
        padding: 15px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .main-nav {
        width: 100%;
        gap: 17px;
        flex-wrap: wrap;
    }

    .main-nav a {
        font-size: 13px;
    }


    /* Homepage Hero */

    .hero {
        min-height: 520px;
        padding: 75px 0;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero-photo {
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-description {
        font-size: 15px;
    }


    /* Content Sections */

    .content-section {
        padding: 65px 0;
    }

    .content-section h2 {
        font-size: 28px;
    }


    /* Header Logo */

    .logo-name {
        font-size: 14px;
    }
}
