:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --font-family: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3 {
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.highlight {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 8rem 0;
    display: flex;
    align-items: center;
    min-height: 90vh;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text .subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-text .bio {
    font-size: 1.125rem;
    max-width: 500px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Cards */
.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

/* Contact */
.contact-text {
    text-align: center;
    font-size: 1.25rem;
}

.email-link {
    display: block;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding: 4rem 0;
        text-align: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-image {
        order: -1;
    }

    .hero-text .bio {
        margin: 0 auto 1.5rem;
    }

    .email-link {
        font-size: 1.5rem;
    }
}

/* Carousel */
.carousel {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
}

.carousel-item img {
    width: 100%;
    display: block;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.3s ease;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-control.prev {
    left: 0;
}

.carousel-control.next {
    right: 0;
}

/* LinkedIn Box */
.linkedin-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.linkedin-box {
    display: inline-block;
    background-color: #0077b5;
    /* LinkedIn Blue */
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: var(--shadow);
}

.linkedin-box:hover {
    background-color: #005582;
    transform: translateY(-2px);
}

/* Timeline / Experience */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid white;
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.timeline-content h3 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.timeline-content .company {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-content .location {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.timeline-content .skills {
    font-size: 0.9rem;
    color: var(--text-color);
    background: white;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

/* Education */
.education-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.education-logo img {
    width: 80px;
    height: auto;
}

.education-content h3 {
    margin-bottom: 0.5rem;
}

.education-content .degree {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.education-content .date {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.education-content .details {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.education-content .skills {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .education-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Gemini Glow Effect */
@keyframes gemini-pulse {
    0% {
        box-shadow: 0 0 10px rgba(37, 99, 235, 0.3), 0 0 20px rgba(6, 182, 212, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.6), 0 0 40px rgba(6, 182, 212, 0.4);
    }

    100% {
        box-shadow: 0 0 10px rgba(37, 99, 235, 0.3), 0 0 20px rgba(6, 182, 212, 0.2);
    }
}

.gemini-glow {
    animation: gemini-pulse 3s infinite ease-in-out;
    border: 1px solid rgba(37, 99, 235, 0.3);
    /* Subtle blue border */
    border-radius: 1rem;
    /* Ensure consistent rounding */
    /* background: white; Removed to prevent overriding element backgrounds */
}

/* Ensure timeline has background since we removed it from glow */
.timeline {
    background: var(--card-bg);
}