/* === Color Palette === */
:root {
    --primary: #b0fff6; 
    --secondary: #181828; 
    --accent: #5bbcfd; 
    --text: #e0e0e0;
    --card-bg: #23234b;
    --heading-white: #ffffff;
    --button-gradient: linear-gradient(90deg, #00bfae 0%, #3a3aff 100%); 
    --button-hover-bg: linear-gradient(90deg, #b0fff6 0%, #7ee6f7 100%); 
    --divider: #2d2d4d;
    --dark-bg: #181828; 
}

/* === Base Styles === */
body {
    margin: 0;
    background: var(--secondary);
    color: var(--text);
    /* font-family: 'Roboto Mono', monospace; */
    font-family: Tahoma;
    letter-spacing: 0.1em;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Global padding for sections */
section {
    padding: 2rem 5vw;
    max-width: 1200px;
    margin: 0 auto;
}

/* === Header & Navigation === */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 4vw;
    background: var(--dark-bg);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.logo {
    /* font-family: 'Roboto Slab'; */
    font-size: 1.8rem;
    color: var(--primary);
    letter-spacing: 2px;
}

.name {
    color: var(--text);
    text-decoration: none;
    font-family: 'Tahoma';
    font-weight: 1000;
    /* transition: all 0.3s ease; */
}

.name:hover {
    background-image: linear-gradient(120deg, var(--primary ), var(--text));
    background-clip: text;
    -webkit-background-clip: text; /* for Chrome/Safari */
    color: transparent;
    -webkit-text-fill-color: transparent; /* for Chrome/Safari */
}


nav a {
    color: var(--primary);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease-in-out;
    position: relative;
    padding-bottom: 5px;
}

nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease-in-out;
    position: absolute;
    left: 0;
    bottom: 0;
}

nav a:hover {
    color: var(--heading-white);
}

nav a:hover::after {
    width: 100%;
}

/* Hamburger styles */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 20;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Responsive Navbar */
@media (max-width: 800px) {
    #navbar {
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--dark-bg);
        flex-direction: column;
        align-items: flex-end;
        width: 100%;
        max-width: 300px;
        padding: 1.5rem 1.5rem 1.5rem 1rem;
        box-shadow: -2px 4px 20px rgba(0, 0, 0, 0.4);
        display: none;
        gap: 1rem;
        z-index: 15;
        transform: translateX(100%);
        transition: transform 0.4s ease-out;
    }

    nav#navbar.nav-open {
        display: flex;
        transform: translateX(0);
    }

    .nav-toggle {
        display: flex;
    }

    nav#navbar a {
        margin: 0.5rem 0;
        font-size: 1.1rem;
    }
}

/* === Loading Animation (if used) === */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.7s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-animation {
    width: 60px;
    height: 60px;
    border: 4px solid var(--primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Hero Section === */
.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 4vw;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(33, 38, 87, 0.712) 0%, transparent 70%);
    z-index: -1;
    animation: none;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
    flex-direction: column;
    min-height: 220px;
    padding: 40px 0;
}

.hero-image {
    position: relative;
}

.image-container {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease-in-out;
    border: 3px solid var(--primary);
}

.image-container:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

.image-container:hover .hero-photo {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(3, 111, 252, 0.219), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

.hero-text {
    flex: 1;
}

.name-container {
    margin-bottom: 1.5rem;
}

.hero-text h1 {
    /* font-family: 'Roboto Slab'; */
    font-size: 3rem;
    color: var(--heading-white);
    margin-bottom: 0.4rem;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.hero-text h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--button-gradient);
    transition: width 0.3s ease;
}

.hero-text h1:hover::after {
    width: 100%;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center tags on small screens */
    gap: 1rem;
    margin: 1rem 0;
}

/* New styles for .tag to match .highlight-card effect */
.tag {
    display: inline-block;
    padding: 0.4rem 0.8rem; /* Reduced from 0.6rem 1.2rem */
    background: var(--card-bg);
    color: var(--primary);
    border-radius: 8px; /* Reduced from 10px */
    font-size: 0.85rem; /* Reduced from 0.95rem */
    transition: all 0.4s ease-in-out;
    border: 1px solid rgba(176, 255, 246, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Reduced shadow */
    position: relative;
    overflow: hidden;
    font-weight: normal;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(176, 255, 246, 0.1), transparent);
    transform: translateX(-100%) skewX(-30deg);
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tag:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
    background: var(--card-bg); /* Keep card-bg as base */
}

.tag:hover::before {
    transform: translateX(100%) skewX(-30deg);
}

/* Career objective alignment */
.career-objective {
    margin: 1.5rem 0;
    text-align: left; /* Aligned to left */
    max-width: 700px;
    /* No margin auto here, as it's left-aligned now */
}

.career-objective p {
    color: var(--text);
    font-size: 1.15rem;
    line-height: 1.7;
    /* Removed margin: 0 auto; as it's now left-aligned */
}

.career-objective-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    color: var(--primary);
    /* font-family: 'Roboto Slab'; */
    font-weight: normal;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    justify-content: center; /* Center buttons on small screens */
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 6px;
    background: var(--button-gradient);
    color: var(--dark-bg);
    /* font-family: 'Roboto Slab'; */
    font-weight: normal;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    background: var(--button-hover-bg);
    color: var(--dark-bg);
}

.cta-button.secondary:hover {
    background: var(--primary);
    color: var(--dark-bg);
}

/* Responsive Hero */
@media (min-width: 901px) { /* Adjust for larger screens */
    .hero-content {
        flex-direction: row;
        text-align: left;
    }
    .hero-tags {
        justify-content: flex-start; /* Align tags left */
    }
    .career-objective {
        text-align: left; /* Ensure left alignment */
    }
    .hero-cta {
        justify-content: flex-start; /* Align buttons left */
    }
}

@media (max-width: 900px) {
    .hero-content {
        gap: 2rem;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .image-container {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: 45vh;
        padding: 1.5rem 3vw;
    }
    .hero-text h1 {
        font-size: 2rem;
    }
    .image-container {
        width: 150px;
        height: 150px;
    }
    .tag {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    .career-objective p {
        font-size: 1rem;
    }
    .hero-cta {
        flex-direction: column; /* Stack buttons on very small screens */
        align-items: center;
    }
    .cta-button {
        width: 80%; /* Make buttons wider */
    }
}

/* Reduce hero section height */
.compact-hero {
    min-height: 180px;
    padding: 32px 0 16px 0;
    align-items: center;
}
.hero-content {
    min-height: 220px;
    padding: 40px 0;
}
@media (max-width: 700px) {
    .compact-hero {
        min-height: 120px;
        padding: 16px 0 8px 0;
    }
}

/* === Divider === */
.neon-divider {
    width: 80vw;
    height: 3px;
    margin: 1rem auto;
    background: var(--divider);
    border-radius: 2px;
}

/* === Section Titles === */
.section-title {
    /* font-family: 'Roboto Slab'; */
    font-size: 2.2rem;
    color: var(--heading-white);
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* === Highlights Grid === */
.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 0 2vw 3rem 2vw;
}

.highlight-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    font-size: 1rem;
    transition: all 0.4s ease-in-out;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(176, 255, 246, 0.2);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(176, 255, 246, 0.1), transparent);
    transform: translateX(-100%) skewX(-30deg);
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* .highlight-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
} */

.highlight-card:hover::before {
    transform: translateX(100%) skewX(-30deg);
}

.highlight-title {
    /* font-family: 'Roboto Slab'; */
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.highlight-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.highlight-card:hover .highlight-title::after {
    width: 100%;
}

.highlight-subtitle {
    /* font-family: 'Roboto Mono'; */
    font-size: 1.1rem;
    color: #7ee6f7;
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.9;
    position: relative;
    padding-left: 1rem;
}

.highlight-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--primary);
    border-radius: 2px;
    opacity: 0.6;
}

.highlight-desc {
    color: var(--text);
    line-height: 1.7;
    font-size: 1.05rem;
    opacity: 0.85;
    padding-left: 1rem;
    border-left: 1px solid rgba(176, 255, 246, 0.1);
}

/* === Footer === */
footer {
    text-align: center;
    padding: 1rem 0;
    background: var(--dark-bg);
    color: var(--primary);
    font-size: 1.1rem;
    letter-spacing: 1px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
}

/* === General Responsive Adjustments === */
@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }

    section {
        padding: 3rem 4vw;
    }

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

    .highlights {
        gap: 2rem;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .highlight-card {
        padding: 1.5rem;
    }

    .highlight-title {
        font-size: 1.2rem;
    }

    .highlight-desc {
        font-size: 0.95rem;
    }

    footer {
        padding: 1.5rem 0;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.8rem 3vw;
    }
    .logo {
        font-size: 1.5rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .highlights {
        grid-template-columns: 1fr;
    }
}

/* Card redesign */
.highlights.new-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}

.highlight-card.big-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #181c2f;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    padding: 0;
    width: 900px; /* Fixed width for all cards */
    min-height: 200px;
    margin: 0 auto 36px auto; /* Center cards with auto margins */
    overflow: hidden;
    transition: transform 0.2s;
}

/* .highlight-card.big-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
} */

.card-img-container {
    flex: 0 0 420px; /* wider image area */
    aspect-ratio: 16 / 9;
    background: #23284a;
    display: flex;
    align-items: stretch;
    justify-content: center;
    position: relative;
    min-height: 220px;
    max-height: 100%;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-content {
    flex: 1;
    padding: 48px 40px 48px 40px; /* more margin for text */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-proof-link {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    background: var(--button-gradient);
    color: #181c2f;
    font-weight: bold;
    padding: 7px 18px;
    border-radius: 18px;
    text-decoration: none;
    font-size: 0.98rem;
    box-shadow: 0 2px 8px rgba(0,255,230,0.10);
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    border: none;
    outline: none;
    cursor: pointer;
}
.card-proof-link::after {
    content: "↗";
    font-size: 1.1em;
    margin-left: 0.3em;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.card-proof-link:hover, .card-proof-link:focus {
    background: var(--button-hover-bg);
    color: #23284a;
    box-shadow: 0 8px 24px rgba(0,255,230,0.18);
    transform: translateY(-2px) scale(1.03);
}
.card-proof-link:hover::after, .card-proof-link:focus::after {
    opacity: 1;
}

@media (max-width: 1100px) {
    .highlight-card.big-card {
        width: 90vw;
    }
    .card-img-container {
        flex: 0 0 38vw;
        min-height: 160px;
    }
    .card-content {
        padding: 32px 18px 32px 18px;
    }
}

@media (max-width: 700px) {
    .highlight-card.big-card {
        flex-direction: column;
        width: 98vw;
        min-height: 0;
    }
    .card-img-container {
        width: 100%;
        flex: none;
        aspect-ratio: 16 / 9;
        min-height: 140px;
        max-height: 240px;
    }
    .card-content {
        padding: 20px 14px;
    }
}