/* Base Styles */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --primary-foreground: #ffffff;
    
    --background: #ffffff;
    --foreground: #0f172a;
    
    --card: #ffffff;
    --card-foreground: #0f172a;
    
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    
    --border: #e2e8f0;
    --input: #e2e8f0;
    
    --radius: 0.5rem;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --transition: all 0.3s ease;
}

.dark-mode {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --primary-foreground: #0f172a;
    
    --background: #0f172a;
    --foreground: #f8fafc;
    
    --color: white;
    
    --card: #1e293b;
    --card-foreground: #f8fafc;
    
    --muted: #1e293b;
    --muted-foreground: #94a3b8;
    
    --border: #334155;
    --input: #334155;
    
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

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

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

.hidden {
    display: none !important;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin: 5px;
}

.text-muted {
    color: var(--muted-foreground);
}

.mt-8 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: var(--transition);
    background-color: transparent;
}

.header.scrolled {
    background-color: var(--background);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.desktop-nav {
    display: none;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.nav-item:hover {
    background-color: var(--muted);
}

.nav-item.active {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.nav-item .icon {
    margin-right: 0.5rem;
}

.theme-toggle, .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    color: var(--color);
}

.theme-toggle:hover, .mobile-menu-btn:hover {
    background-color: var(--muted);
}

.mobile-menu {
    background-color: var(--background);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    transition: var(--transition);
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.mobile-nav-item:hover {
    background-color: var(--muted);
}

.mobile-nav-item.active {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.mobile-nav-item .icon {
    margin-right: 0.5rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 4rem;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8) 0%, rgba(59, 130, 246, 0.4) 100%);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
}

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

@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.hero-text {
    text-align: center;
}

@media (min-width: 768px) {
    .hero-text {
        text-align: left;
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .hero-details {
        flex-direction: row;
        justify-content: flex-start;
    }
}

.hero-detail {
    display: flex;
    align-items: center;
}

.hero-detail .icon {
    margin-right: 0.5rem;
}

.hero-detail-separator {
    display: none;
}

@media (min-width: 768px) {
    .hero-detail-separator {
        display: block;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

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

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--foreground);
    color: var(--foreground);
}

.btn-outline:hover {
    background-color: var(--card);
}

.btn-full {
    width: 100%;
}

.hero-card {
    display: none;
    background-color: var(--card);
    backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

@media (min-width: 768px) {
    .hero-card {
        display: block;
    }
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.expertise-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.expertise-list li {
    display: flex;
    align-items: flex-start;
    color: var(--foreground);
}

.expertise-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background-color: var(--muted);
    border-radius: 9999px;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--foreground);
    text-align: center;
}

.scroll-indicator button {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    font-size: 0.875rem;
}

.scroll-indicator span {
    margin-bottom: 0.5rem;
}

.scroll-indicator .icon {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

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

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 0.25rem;
    background-color: var(--primary);
    border-radius: 9999px;
}

.section-description {
    font-size: 1.125rem;
    max-width: 48rem;
    margin-bottom: 2rem;
}

/* Card Styles */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background-color: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 9999px;
    margin-right: 1rem;
}

.card-icon .icon {
    color: var(--primary);
    width: 1.5rem;
    height: 1.5rem;
}

.card-header-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .card-header-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.company, .period {
    display: flex;
    align-items: center;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.company .icon, .period .icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

/* List Styles */
.language-list {
    list-style: none;
}

.language-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.focus-list {
    list-style: none;
}

.focus-list li {
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
}

.focus-list .icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.75rem;
    color: var(--primary);
}

.bullet-list {
    list-style: none;
    padding-left: 1rem;
}

.bullet-list li {
    position: relative;
    padding: 0.25rem 0;
    padding-left: 1rem;
}

.bullet-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.check-list {
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    padding: 0.25rem 0;
}

.check-list .icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    color: var(--primary);
    flex-shrink: 0;
}

.grid-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .grid-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid-item {
    display: flex;
    align-items: center;
}

.grid-item .icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    color: var(--primary);
    flex-shrink: 0;
}

/* Timeline Styles */
.timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    margin-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 2rem;
    border-left: 1px solid var(--muted-foreground);
    opacity: 0.3;
}

.timeline-item:last-child {
    border-left: none;
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -0.5rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    border-radius: 9999px;
    background-color: var(--primary);
}

.timeline-item.active {
    opacity: 1;
}

/* Skill Card Styles */
.skill-card {
    height: 100%;
}

/* Certification Styles */
.cert-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cert-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cert-card {
    height: 100%;
}

.cert-year {
    display: flex;
    align-items: center;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.cert-year .icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

.special-award {
    display: flex;
    align-items: flex-start;
}

.special-award .icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    color: var(--primary);
    flex-shrink: 0;
}

.award-title {
    font-weight: 500;
}

.award-description {
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

/* Education Styles */
.education-item {
    border-left: 2px solid var(--primary);
    padding-left: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.education-title {
    font-weight: 500;
}

.education-description {
    color: var(--muted-foreground);
}

.language-skills {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.language-skill {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-name {
    font-weight: 500;
}

.language-level {
    display: flex;
    gap: 0.25rem;
}

.level-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 9999px;
    background-color: var(--muted-foreground);
    opacity: 0.3;
}

.level-dot.active {
    background-color: var(--primary);
    opacity: 1;
}

/* Contact Styles */
.contact-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-card .btn {
    margin-top: auto;
}

/* Footer Styles */
.footer {
    background-color: var(--muted);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .footer-info {
        text-align: left;
        margin-bottom: 0;
    }
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.footer-subtitle {
    color: var(--muted-foreground);
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: var(--card);
    color: var(--foreground);
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.copyright {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .copyright {
        margin-bottom: 0;
    }
}

.back-to-top {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.back-to-top:hover {
    color: var(--primary);
}

.back-to-top span {
    margin-right: 0.5rem;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.slide-up {
    animation: slideUp 0.8s ease-in-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-in-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* Theme overrides for hero section */
.hero-title,
.hero-subtitle,
.card-title,
.expertise-list li {
    color: var(--foreground);
}

/* Ensure hero details also respect the theme */
.hero-details {
    color: var(--foreground);
}

/* Media query for system preference - using variables instead of hardcoded colors */
@media (prefers-color-scheme: dark) {
    body:not(.light-mode) .hero-title,
    body:not(.light-mode) .hero-subtitle,
    body:not(.light-mode) .card-title,
    body:not(.light-mode) .expertise-list li,
    body:not(.light-mode) .hero-details {
        color: var(--foreground);
    }
}

@media (prefers-color-scheme: light) {
    body:not(.dark-mode) .hero-title,
    body:not(.dark-mode) .hero-subtitle,
    body:not(.dark-mode) .card-title,
    body:not(.dark-mode) .expertise-list li,
    body:not(.dark-mode) .hero-details {
        color: var(--foreground);
    }
}

/* Dark mode hero gradient */
.dark-mode .hero-gradient {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8) 0%, rgba(59, 130, 246, 0.4) 100%);
}

/* Light mode hero gradient */
.light-mode .hero-gradient {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8) 0%, rgba(59, 130, 246, 0.4) 100%);
    /* We keep the same gradient but adjust the overlay pattern for better visibility */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
