:root {
    --primary-color: #0070f3;
    --primary-dark: #0050b3;
    --secondary-color: #6c757d;
    --light-bg: #ffffff;
    --dark-bg: #121212;
    --light-text: #333333;
    --dark-text: #e0e0e0;
    --light-card: #f8f9fa;
    --dark-card: #1e1e1e;
    --light-border: #e0e0e0;
    --dark-border: #333333;
    --success-color: #28a745;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    font-size: 16px;
    background-color: var(--light-bg);
    color: var(--light-text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

.container {
    width: 100%;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style-type: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h1 span {
    font-weight: 400;
}

h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    font-weight: 500;
}

h3 {
    font-size: 1.5rem;
    position: relative;
    margin-bottom: 1.5rem;
}

h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

/* Header */
/* Updated header styles */
header {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/banner.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--light-bg) 100%);
    z-index: 2;
}

.dark-mode .banner-overlay {
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0) 0%, var(--dark-bg) 100%);
}

.header-container {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
}

.header-content {
    position: relative;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-text {
    max-width: 60%;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dark-mode .header-text {
    background-color: rgba(18, 18, 18, 0.85);
}

.profile-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-color: white;
    flex-shrink: 0;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tagline {
    color: var(--secondary-color);
    max-width: 600px;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 2rem;
    }
    
    .header-text {
        max-width: 100%;
        margin-top: 1.5rem;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
    font-size: 1rem;
}

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

.primary-btn:hover {
    background-color: var(--primary-dark);
    text-decoration: none;
    color: white;
}

.secondary-btn {
    background-color: transparent;
    color: var(--light-text);
    border: 1px solid var(--light-border);
}

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

.secondary-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Navigation */
nav {
    background-color: var(--light-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.dark-mode nav {
    background-color: var(--dark-bg);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 600;
}

.last-name {
    color: var(--primary-color);
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle, .menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--light-text);
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.dark-mode .theme-toggle, .dark-mode .menu-toggle {
    color: var(--dark-text);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--light-text);
    position: relative;
    transition: all 0.3s ease;
}

.dark-mode .hamburger {
    background-color: var(--dark-text);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--light-text);
    transition: all 0.3s ease;
}

.dark-mode .hamburger::before, .dark-mode .hamburger::after {
    background-color: var(--dark-text);
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

.mobile-menu {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--light-bg);
}

.dark-mode .mobile-menu {
    background-color: var(--dark-bg);
}

.mobile-menu.open {
    max-height: 300px;
    display: block;
}

.mobile-menu ul {
    padding: 1rem 1.5rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.mobile-menu li {
    margin-bottom: 0.8rem;
}

.mobile-menu a {
    color: var(--light-text);
    transition: color 0.3s ease;
}

.dark-mode .mobile-menu a {
    color: var(--dark-text);
}

.mobile-menu a:hover {
    color: var(--primary-color);
}

/* Main Content */
main {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.section {
    margin-bottom: 4rem;
}

.section-title {
    display: inline-block;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.card {
    background-color: var(--light-card);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease;
}

.dark-mode .card {
    background-color: var(--dark-card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.contact-list li {
    margin-bottom: 0.8rem;
}

.contact-list i {
    width: 20px;
    margin-right: 8px;
    color: var(--primary-color);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tags span {
    background-color: rgba(0, 112, 243, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

/* Experience Section */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
}

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

.timeline-dot {
    position: absolute;
    left: -2.4rem;
    top: 0.25rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid var(--light-bg);
}

.dark-mode .timeline-dot {
    border-color: var(--dark-bg);
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.details-list {
    list-style-type: disc;
    margin-left: 1.2rem;
    margin-top: 0.5rem;
}

.details-list li {
    margin-bottom: 0.5rem;
}

/* Interests Section */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.details-list ul {
    list-style-type: disc; /* Ensures bullets appear */
    padding-left: 20px; /* Indents nested lists */
}

.details-list li {
    position: relative;
}

.interests-grid .card h4 i {
    margin-right: 8px;
    color: var(--primary-color);
}

.closing-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: var(--light-card);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--light-border);
    transition: background-color 0.3s ease;
}

.dark-mode footer {
    background-color: var(--dark-card);
    border-top: 1px solid var(--dark-border);
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--light-text);
    transition: color 0.3s ease;
}

.dark-mode .social-links a {
    color: var(--dark-text);
}

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

/* Responsive styles */
@media (max-width: 992px) {
    .header-content {
        grid-template-columns: 1fr;
    }
    
    .profile-image {
        grid-column: 1;
        grid-row: 1;
        width: 200px;
        height: 200px;
    }
    
    .header-text {
        grid-column: 1;
        grid-row: 2;
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .tagline {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .two-column,
    .skills-grid,
    .interests-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-dot {
        left: -1.9rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    header {
        height: 450px;
    }
}

@media (max-width: 480px) {
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .primary-btn, .secondary-btn {
        width: 100%;
    }
    
    header {
        height: 400px;
    }
}

/* Print styles (for PDF download) */
@media print {
    nav, .cta-buttons, footer, .banner {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        background: white !important;
        color: black !important;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .header-content {
        padding: 0;
    }
    
    main {
        padding: 0;
    }
    
    .section {
        margin-bottom: 2rem;
        page-break-inside: avoid;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}