/* ============================
   Global Theme
============================ */

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

:root {
    --bg-dark: #0e0f12;
    --bg-light: #ffffff;
    --accent: #0077ff;
    --text-light: #f5f5f5;
    --text-dark: #1b1b1b;
    --card-bg: rgba(255, 255, 255, 0.07);
    --card-border: rgba(255, 255, 255, 0.15);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    padding-bottom: 80px;
}

/* ============================
   NAVIGATION
============================ */

.site-header {
    background: rgba(20,20,20,0.9);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.nav-logo a {
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 400;
    transition: 0.2s;
}

.nav-links a:hover,
.nav-links .active {
    color: var(--accent);
}

/* ============================
   HERO SECTION
============================ */

.hero {
    padding: 90px 20px;
    text-align: center;
    color: white;
}

.hero-about {
    background: linear-gradient(135deg, #1a1a1a, #111);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.85;
}

/* ============================
   SECTIONS
============================ */

.section-wrapper {
    max-width: 1150px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--accent);
}

/* ============================
   ABOUT BLOCK
============================ */

.about-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.about-image img {
    width: 256px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.about-text h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.about-text p {
    margin-bottom: 15px;
    color: #d3d3d3;
}

/* ============================
   CARD GRID (Profiles Section)
============================ */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 25px;
}

.info-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(6px);
    transition: 0.25s ease;
    text-align: center;       /* matches project-card layout */
}

.info-card:hover {
    transform: translateY(-6px); /* match project-card hover */
    border-color: var(--accent);
}


.info-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent);
}


/* ============================
   SKILLS GRID
============================ */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.skill-box {
    background: #1a1a1a;
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1);
}

.skill-box h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
}

/* ============================
   FOOTER
============================ */

.site-footer {
    margin-top: 60px;
    padding: 20px;
    text-align: center;
    background: #111;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
}

.profile-logo {
    width: 100%;
    height: 200px;              /* better proportions for logos */
    object-fit: contain;        /* prevents distortion */
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    padding: 15px;
    margin-bottom: 15px;
    opacity: 1;                 /* fix washed-out look */
}


/* ============================
   PROJECTS GRID (Centered 3–2–3)
============================ */

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.project-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(6px);
    transition: 0.25s ease;
    width: 300px; /* PERFECT FOR CENTERED LAYOUT */
}

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

.project-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

/* Responsive behavior */
@media (max-width: 900px) {
    .projects-grid {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .projects-grid {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================
   BUTTONS
============================ */

.card-button {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.card-button:hover {
    background: #1e90ff;
    transform: translateY(-2px);
}

.card-button.disabled {
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

/* ============================
   CONTACT PAGE
============================= */

.contact-card {
    max-width: 600px;
    margin: 40px auto;
    padding: 35px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
    text-align: center;
}

.contact-card h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.contact-sub {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 30px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.contact-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: 0.25s ease;
}

.contact-button:hover {
    background: #2d8cff;
    transform: translateY(-3px);
    box-shadow: 0 0 12px rgba(30,144,255,0.5);
}

.contact-button.alt {
    background: #1e90ff;
}

.contact-button.alt:hover {
    background: #3aa0ff;
}


/* =============================
   ABOUT PAGE LAYOUT
============================== */

#about-info {
    max-width: 1100px;
    margin: 60px auto;
    padding: 40px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
}

#about-info h1,
#about-info h2 {
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 700;
}

#about-info p,
#about-info li {
    color: var(--text-light);
    opacity: 0.92;
    font-size: 1.05rem;
    line-height: 1.55;
}

#about-info ul {
    margin-left: 20px;
    margin-bottom: 25px;
}

/* Wrapper holds text + photo column */
.about-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 420px;
}

/* Make About page inline links blue instead of orange */
#about-info a {
    color: var(--accent) !important;
    font-weight: 600;
    text-decoration: none;
}

#about-info a:hover {
    text-decoration: underline;
}


/* =============================
   PHOTO GROUP — FINAL VERSION
   (stacked vertically, uniform)
============================== */

.about-photo-group {
    display: flex;
    flex-direction: column;   /* vertical stack */
    gap: 25px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(8px);
    width: 260px;             /* final chosen width */
    flex-shrink: 0;
}

.side-photo {
    text-align: center;
}

.side-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;      /* forces uniform height ratio */
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.photo-caption {
    margin-top: 8px;
    font-size: 0.95rem;
    opacity: 0.9;
}


/* =============================
   RESPONSIVE BEHAVIOR
============================== */

@media (max-width: 900px) {
    .about-flex {
        flex-direction: column;
        align-items: center;
    }

    .about-photo-group {
        flex-direction: row;    /* photos side-by-side on smaller screens */
        width: auto;
    }

    .side-photo img {
        width: 160px;
        aspect-ratio: 3 / 4;
    }
}

@media (max-width: 600px) {
    .about-photo-group {
        flex-direction: column; /* stack again on very small devices */
        align-items: center;
    }
}
/* ============================
   DESCRIPTION SECTIONS (TEXT + IMAGE)
============================ */

.desc-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 45px;
    padding: 0;
    background: none;
    border: none;
}

/* Text left, image right */
.desc-left {
    flex-direction: row;
}

/* Text right, image left */
.desc-right {
    flex-direction: row-reverse;
}

.desc-text {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--text-light);
    opacity: 0.92;
}

/* IMAGE BLOCK */
.desc-img {
    width: 300px;
    text-align: center;
}

/* Image style */
.desc-img img {
    width: 100%;
    max-width: 260px;
    height: auto;
    object-fit: cover;
    border-radius: 30%; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

/* Caption */
.photo-caption {
    margin-top: 8px;
    font-size: 0.9rem;
    opacity: 0.85;
    text-align: center;
}



/* Responsive: stack on mobile */
@media (max-width: 800px) {
    .desc-section {
        flex-direction: column !important;
        text-align: center;
    }

    .desc-img {
        margin-top: 15px;
    }
}


/* ============================================================
   PROJECT PAGE BANNER IMAGE
   ============================================================ */
.project-banner {
    width: 55%;
    display: flex;
    justify-content: center;
    margin: 0 auto 35px auto;
}

.project-banner img {
    width: 75%;
    max-width: 900px;
    height: auto;
    display: block;
    border-radius: var(--radius);
    object-fit: cover;
}

.project-banner-caption {
    text-align: center;
    margin-top: 10px;
    font-size: 1rem;
    opacity: 0.85;
}



/* ============================================================
   PROJECT PAGE TYPOGRAPHY (ISOLATED)
   ============================================================ */

.project-page h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: #F56600; /* Clemson Orange */
}

.project-page h2 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 15px;
    color: #F56600;
}

.project-page h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 8px;
    color: #F56600;
}

.project-page p {
    font-size: 1.05rem;
    opacity: 0.92;
    line-height: 1.55;
    margin-bottom: 14px;
}



/* ============================================================
   PROJECT PAGE — DESCRIPTION SECTIONS (TEXT + IMAGE)
   ============================================================ */

.project-desc-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 45px;
    padding: 0;
    background: none;
    border: none;
}

/* Layout orientation */
.project-desc-left {
    flex-direction: row;
}

.project-desc-right {
    flex-direction: row-reverse;
}

/* Text block */
.project-desc-text {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--text-light);
    opacity: 0.92;
}

/* Base image behavior */
.project-desc-img img {
    width: 100%;
    max-width: 500px;
    min-width: 300px;   /* ← ADD THIS */
    height: auto;
    object-fit: cover;
}

/* Image group defaults to row unless two exist */
.project-desc-img-group {
    display: flex;
    flex-direction: column;   /* Vertical stack by default */
    gap: 18px;
}

/* If only ONE image, center it and don’t stack */
.project-desc-img-group:has(> .project-desc-img:only-child) {
    flex-direction: row;
    align-items: center;
    justify-content: center;
}


/* Image styling overrides specific to projects */
.project-desc-img img {
    width: 100%;
    max-width: 500px;
    min-width: 300px;   /* ← ADD THIS */
    height: auto;
    object-fit: cover;

    /* Project-specific: clean technical look */
    border-radius: 0px !important;
    box-shadow: none !important;
}



/* ============================================================
   RESPONSIVE BEHAVIOR — STACK ON MOBILE
   ============================================================ */
@media (max-width: 800px) {
    .project-desc-section {
        flex-direction: column !important;
        text-align: center;
    }

    .project-desc-img {
        width: 100%;
        max-width: 500px;
        min-width: 300px;   /* ← ADD THIS */
        margin-top: 15px;
    }
}

.white-divider {
    border: none;
    border-top: 2px solid white; /* pure white line */
    margin: 40px 0;              /* adjust spacing */
    opacity: 1;                  /* keep it fully visible */
}

a, a:visited {
    color: white !important;
}