/* Inter Font */
@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/Inter.ttc') format('truetype'),
         url('assets/fonts/InterVariable.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/InterVariable-Italic.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: italic;
}

:root {
    /* Colors - Modern Professional Theme */
    --primary-color: #2c3e50;    /* Elegant Navy Blue */
    --secondary-color: #34495e;  /* Deep Blue Grey */
    --accent-color: #3498db;     /* Professional Blue */
    --text-color: #2c3e50;       /* Dark Blue Grey for Text */
    --light-bg: #f5f6fa;         /* Subtle Light Background */
    --white: #ffffff;
    --transition: all 0.3s ease;

    /* Dark Mode Colors - Sophisticated Dark Theme */
    --dark-primary: #1a202c;     /* Deep Dark Blue */
    --dark-secondary: #2d3748;   /* Rich Dark Grey */
    --dark-text: #e2e8f0;        /* Soft White Text */
    --dark-accent: #4299e1;      /* Bright Blue Accent */
    --dark-bg: #171923;          /* Deep Background */
    --dark-card-bg: #2d3748;     /* Card Background */

    /* Additional Accent Colors */
    --success-color: #2ecc71;    /* Professional Green */
    --warning-color: #f1c40f;    /* Elegant Yellow */
    --error-color: #e74c3c;      /* Refined Red */
    --info-color: #3498db;       /* Information Blue */
    --dark-muted: #94a3b8;      /* Cool Grey */

    /* Font Family */
    font-family: "Inter", sans-serif;

    /* Responsive Typography */
    --h1-size: clamp(2rem, 5vw, 3.5rem);
    --h2-size: clamp(1.8rem, 4vw, 2.5rem);
    --h3-size: clamp(1.2rem, 3vw, 1.8rem);
    --body-size: clamp(0.875rem, 2vw, 1rem);
}

/* Enable variable fonts if supported */
@supports (font-variation-settings: normal) {
    :root {
        font-family: "InterVariable", sans-serif;
        font-optical-sizing: auto;
    }
}

/* Dark Mode Styles */
[data-theme="dark"] {
    --primary-color: var(--dark-text);
    --text-color: var(--dark-text);
    --light-bg: var(--dark-secondary);
    --white: var(--dark-card-bg);
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1f35 100%);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
}

[data-theme="dark"] .skill-card,
[data-theme="dark"] .certificate-card,
[data-theme="dark"] .timeline-item,
[data-theme="dark"] .education-item,
[data-theme="dark"] .portfolio-info {
    background: var(--dark-card-bg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .skill-card:hover,
[data-theme="dark"] .certificate-card:hover,
[data-theme="dark"] .timeline-item:hover,
[data-theme="dark"] .education-item:hover {
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

[data-theme="dark"] .area {
    background: var(--dark-secondary);
}

[data-theme="dark"] .contact input,
[data-theme="dark"] .contact textarea {
    background: var(--dark-card-bg);
    border-color: var(--dark-secondary);
    color: var(--dark-text);
}

/* Theme Toggle Styles */
.theme-toggle {
    
    margin-right: 9rem;
}

#theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: var(--transition);
}

#theme-toggle-btn:hover {
    transform: scale(1.1);
}

[data-theme="dark"] #theme-toggle-btn {
    color: var(--dark-text);
}

#theme-toggle-btn .fa-sun {
    display: none;
}

[data-theme="dark"] #theme-toggle-btn .fa-moon {
    display: none;
}

[data-theme="dark"] #theme-toggle-btn .fa-sun {
    display: inline-block;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Global Responsive Container */
.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Base Typography */
h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 70px;
    width: auto;
    object-fit: contain;
}

[data-theme="dark"] .logo-image {
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 0;
}

/* Animated Burger Menu */
.burger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: fixed;
    right: 2rem;
    top: 2rem;
    z-index: 3000;
    background: none;
    border: none;
    padding: 0;
}

.burger .line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    left: 0;
}

.burger .line1 { 
    top: 0; 
}

.burger .line2 { 
    top: 50%; 
    transform: translateY(-50%); 
}

.burger .line3 { 
    bottom: 0; 
}

/* X Animation */
.burger.active .line1 {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.burger.active .line2 {
    opacity: 0;
}

.burger.active .line3 {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) rotate(-45deg);
}

/* Ensure X is visible on both light and dark themes */
.mobile-nav.active ~ .burger .line {
    background: var(--primary-color);
}

[data-theme="dark"] .mobile-nav.active ~ .burger .line {
    background: var(--white);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-nav.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

[data-theme="dark"] .mobile-nav {
    background: rgba(26, 32, 44, 0.98);
}

@media (max-width: 768px) {
    .burger {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .mobile-nav-links li {
        animation: fadeInDown 0.5s ease forwards;
        animation-delay: calc(0.1s * var(--item-index, 0));
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .burger {
        right: 1.5rem;
        top: 1.5rem;
    }
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-nav-links li {
    margin: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-nav.active .mobile-nav-links li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-links a {
    font-size: 1.8rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: block;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.mobile-nav-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Prevent scrolling when mobile menu is open */
body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Responsive Grid Layouts */
.skills-and-languages-container,
.about-content,
.portfolio-grid,
.skills-container {
    display: grid;
    gap: clamp(1rem, 3vw, 2rem);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Padding */
section {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

/* Responsive Breakpoints */
@media (min-width: 1401px) {
    .container {
        padding: 0 4rem;
    }

    .skills-and-languages-container,
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1400px) {
    .container {
        padding: 0 3rem;
    }

    .skills-and-languages-container,
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }

    .about-content,
    .skills-and-languages-container,
    .portfolio-grid,
    .skills-container {
        max-width: 100%;
    }

    .timeline-date {
        right: -100px;
    }
    
    .timeline-item:nth-child(even) .timeline-date {
        left: -100px;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }

    .skills-and-languages-container,
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    .hero {
        padding-top: calc(70px + 1rem);
    }

    .profile-picture-container {
        width: 240px;
        height: 240px;
        margin: 1.5rem auto 2.5rem;
    }

    /* Timeline Adjustments */
    .timeline::before,
    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }

    .timeline-dot {
        left: -40px !important;
        right: auto;
    }

    .timeline-date {
        position: relative;
        left: 0 !important;
        right: auto !important;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: calc(64px + 1rem);
        min-height: auto;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 3.5vw, 2rem);
    }

    .hero h2 {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }

    .profile-picture-container {
        width: 200px;
        height: 200px;
        margin: 1rem auto 2rem;
    }

    .about-personal,
    .languages {
        padding: 1.5rem;
    }

    .strength-list li,
    .language-item {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    /* Card Adjustments */
    .skill-card,
    .certificate-card,
    .portfolio-item {
        padding: 1.2rem;
    }

    /* Timeline Mobile */
    .timeline-content {
        padding: 1rem;
    }

    .company-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .company-logo {
        width: 40px;
        height: 40px;
    }

    .mobile-nav-links a {
        font-size: 1.5rem;
    }

    .logo-image {
        height: 55px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .profile-picture-container {
        width: 180px;
        height: 180px;
        margin: 0.5rem auto 1.5rem;
    }

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

    .btn {
        width: 100%;
        text-align: center;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before,
    .timeline::after {
        left: 15px;
    }

    .timeline-item {
        width: calc(100% - 40px);
        margin-left: 40px !important;
    }

    .timeline-dot {
        width: 14px;
        height: 14px;
        left: -35px !important;
    }

    /* Card and Content Spacing */
    .about-personal,
    .languages,
    .skill-card,
    .certificate-card,
    .portfolio-item {
        padding: 1rem;
    }

    .strength-list li,
    .language-item {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    /* Text Adjustments */
    .company-info h3 {
        font-size: 1.1rem;
    }

    .position {
        font-size: 0.9rem;
    }

    .skills-learned span {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .mobile-nav-links a {
        font-size: 1.3rem;
    }

    .logo-image {
        height: 45px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .nav-links a:hover::after,
    .strength-list li:hover,
    .language-item:hover,
    .portfolio-item:hover,
    .social-badge:hover {
        transform: none;
    }

    .btn:active,
    .portfolio-item:active,
    .skill-card:active {
        transform: scale(0.98);
    }
}

/* Dark Mode Responsive Adjustments */
@media (max-width: 992px) {
    [data-theme="dark"] .mobile-nav {
        background: rgba(18, 18, 18, 0.98);
    }

    [data-theme="dark"] .timeline-content {
        background: var(--dark-card-bg);
    }

    [data-theme="dark"] .timeline-date {
        color: var(--dark-accent);
    }
}

/* Print Media Query */
@media print {
    .navbar,
    .mobile-nav,
    .theme-toggle,
    .cta-buttons {
        display: none !important;
    }

    .container {
        width: 100% !important;
        padding: 0 !important;
    }

    body {
        color: #000 !important;
        background: #fff !important;
    }

    a {
        text-decoration: none !important;
        color: #000 !important;
    }

    .hero,
    section {
        padding: 20px 0 !important;
        page-break-inside: avoid;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: calc(76px + 2rem); /* Navbar height + additional spacing */
    padding-bottom: 4rem;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.profile-picture-container {
    margin: 2rem auto 3rem;
    position: relative;
    width: 280px;
    height: 280px;
    animation: fadeInUp 1s ease;
}

.profile-picture {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
    object-position: center -48%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.profile-picture:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    50% { border-color: transparent }
}

.hero h1 {
    overflow: hidden;
    white-space: nowrap;
    
    animation: 
        typing 3.5s steps(40, end),
        blink .75s step-end infinite;
    font-size: clamp(15px, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.hero .AutoEntw {
    color: white;
    font-size: clamp(15px, 2.5vw, 1.8rem);
    overflow: hidden;
    white-space: nowrap;
    
    animation: 
        typing 3.5s steps(40, end) 2.5s,
        blink .70s step-end infinite;
    animation-fill-mode: both;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: clamp(1.4rem, 3vw, 1.8rem);
        margin-bottom: 1.2rem;
    }
    
    .AutoEntw {
        font-size: clamp(1rem, 2.2vw, 1.4rem);
        margin-bottom: 1.5rem;
    }
    
    .subtitle {
        font-size: clamp(0.9rem, 1.8vw, 1.1rem);
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: clamp(1.2rem, 2.5vw, 1.6rem);
        margin-bottom: 1rem;
    }
    
    .AutoEntw {
        font-size: clamp(0.9rem, 2vw, 1.2rem);
        margin-bottom: 1.2rem;
    }
    
    .subtitle {
        font-size: clamp(0.8rem, 1.6vw, 1rem);
        margin-bottom: 1.2rem;
        padding: 0 0.5rem;
    }
}

.hero h2 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
    opacity: 0.9;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
    opacity: 0.8;
    max-width: 600px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1s ease 0.8s;
    animation-fill-mode: both;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover::before {
    transform: translateX(100%) rotate(45deg);
}

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

.btn.secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: var(--white);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero .personal-info {
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeInUp 1s ease 1s;
    animation-fill-mode: both;
}

.hero .personal-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--white);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.hero .personal-info p:hover {
    transform: translateX(5px);
    opacity: 1;
}

.hero .personal-info i {
    color: var(--accent-color);
    font-size: 1.2em;
}

/* Responsive Design for Hero Section */
@media (max-width: 992px) {
    .hero {
        padding-top: calc(70px + 1rem);
    }

    .profile-picture {
        width: 240px;
        height: 240px;
    }

    .cta-buttons {
        flex-direction: row;
        gap: 1rem;
    }

    .btn {
        padding: 0.8rem 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: calc(64px + 1rem);
    }

    .profile-picture {
        width: 200px;
        height: 200px;
        border-width: 3px;
    }

    .hero .personal-info {
        margin: 2rem 0;
        gap: 0.8rem;
    }

    .btn {
        padding: 0.7rem 1.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: calc(60px + 0.5rem);
    }

    .profile-picture {
        width: 180px;
        height: 180px;
        border-width: 2px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero .personal-info p {
        font-size: 0.85rem;
    }
}

/* Dark Mode Adjustments for Hero */
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, var(--dark-primary) 0%, var(--dark-bg) 100%);
}

[data-theme="dark"] .profile-picture {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .profile-picture:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

/* New Animation Keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* About Section - Main Container */
.about {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
}

.about h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

/* About Section - Grid Layout */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-intro-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100%;
}

.about-intro {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-intro h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.about-intro p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-image {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.about-photo {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: 20px;
    right: -20px;
    background: var(--secondary-color);
    color: var(--white);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.about-qualities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.quality-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.quality-item:hover {
    transform: translateY(-5px);
}

.quality-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.quality-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.quality-item p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.skills-and-languages-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .about-intro-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .about-qualities {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-and-languages-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about-qualities {
        grid-template-columns: 1fr;
    }

    .about-intro h3 {
        font-size: 1.5rem;
    }

    .quality-item {
        padding: 1.5rem;
    }

    .experience-badge {
        width: 100px;
        height: 100px;
        right: -10px;
    }
}

/* Dark Mode Adjustments */
[data-theme="dark"] .about-intro,
[data-theme="dark"] .quality-item {
    background: var(--dark-card-bg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .about-intro h3,
[data-theme="dark"] .quality-item h4 {
    color: var(--dark-text);
}

[data-theme="dark"] .about-intro p,
[data-theme="dark"] .quality-item p {
    color: var(--dark-text);
}

/* Skills Section */
.skills-container {
    display: grid;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skills-category h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

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

.skill-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
    border: 1px solid rgba(44, 62, 80, 0.1);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.skill-card h4 {
    color: var(--primary-color);
}

/* Portfolio Section */
.portfolio {
    background: var(--light-bg);
    padding: 5rem 0;
}

[data-theme="dark"] .portfolio {
    background: var(--dark-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 400px;
}

[data-theme="dark"] .portfolio-item {
    background: var(--dark-card-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-item img {
    width: 100%;
    
    object-fit: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .portfolio-info {
    background: rgba(30, 30, 30, 0.95);
}

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.portfolio-info p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

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

.portfolio-links .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.portfolio-links .btn i {
    font-size: 1.1rem;
}

.portfolio-links .btn.primary {
    background: var(--secondary-color);
}

.portfolio-links .btn.secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--text-color);
}

[data-theme="dark"] .portfolio-links .btn.secondary {
    border-color: var(--dark-accent);
    color: var(--dark-text);
}

.portfolio-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }

    .portfolio-item {
        height: 380px;
    }

    .portfolio-info {
        padding: 1.5rem;
    }
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--light-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    padding: 40px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info p {
    color: var(--text-color);
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--primary-color);
    transform: translateX(5px);
}

.contact-item:hover i,
.contact-item:hover a,
.contact-item:hover span {
    color: var(--white);
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.contact-item a,
.contact-item span {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.contact-form {
    padding: 40px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid transparent;
    background: var(--light-bg);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background: var(--white);
    outline: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 12px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form .btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.contact-form .btn:hover::after {
    left: 100%;
}

/* Dark Mode Styles */
[data-theme="dark"] .contact {
    background: var(--dark-bg);
}

[data-theme="dark"] .contact-info,
[data-theme="dark"] .contact-form {
    background: var(--dark-card-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .contact-item {
    background: var(--dark-bg);
}

[data-theme="dark"] .contact-item:hover {
    background: var(--primary-color);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: var(--dark-bg);
    color: var(--dark-text);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    background: var(--dark-card-bg);
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 60px 0;
    }
    
    .contact-info,
    .contact-form {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .contact-info h3 {
        font-size: 1.5rem;
    }
    
    .contact-item {
        padding: 12px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
    }
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-center {
    display: flex;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-right {
    display: flex;
    align-items: center;
}

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

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

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

.copyright {
    color: var(--white);
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-left {
        align-items: center;
    }

    .footer-logo img {
        height: 40px;
    }

    .footer-links {
        gap: 1.5rem;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .footer-logo img {
        height: 35px;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .social-links {
        gap: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Experience Section */
.experience {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

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

.experience h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.timeline {
    position: relative;
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: #eee;
    z-index: 1;
}

.timeline::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: var(--timeline-progress, 0%);
    top: 0;
    background: var(--secondary-color);
    z-index: 2;
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: height;
    transform-origin: top;
}

.timeline-item {
    width: calc(50% - 40px);
    margin: 2rem 0;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(even) {
    margin-left: calc(50% + 40px);
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    position: absolute;
    right: -50px;
    top: 20px;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px var(--secondary-color);
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -50px;
}

.timeline-date {
    position: absolute;
    right: -150px;
    top: 12px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateX(20px);
    animation: fadeInRight 0.6s ease forwards;
    animation-delay: calc(var(--item-index) * 0.2s + 0.2s);
}

.timeline-item:nth-child(even) .timeline-date {
    right: auto;
    left: -150px;
    transform: translateX(-20px);
    animation-name: fadeInLeft;
}

.timeline-content {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.company-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.company-logo {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    transform: rotate(-10deg);
    transition: transform 0.3s ease;
}

.timeline-content:hover .company-logo {
    transform: rotate(0deg) scale(1.1);
}

.company-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.position {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.timeline-item.highlight .timeline-content {
    background: #f5f6fa;
    border:none;
};

.skills-learned {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.skills-learned span {
    background: #34495e;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, background 0.3s ease;
    color: white;
}

.skills-learned span:hover {
    transform: translateY(-2px);
    background: gray;
}

/* Dark Mode Styles */
[data-theme="dark"] .experience {
    background: var(--dark-bg);
}

[data-theme="dark"] .timeline-content {
    background: var(--dark-card-bg);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

[data-theme="dark"] .timeline-dot {
    border-color: var(--dark-bg);
}

[data-theme="dark"] .timeline-date {
    color: var(--dark-text);
}

[data-theme="dark"] .company-info h3 {
    color: var(--dark-text);
}

/* New Animations */
@keyframes growLine {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        height: 100%;
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(var(--slide-offset, -50px));
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .timeline-date {
        right: -100px;
    }
    
    .timeline-item:nth-child(even) .timeline-date {
        left: -100px;
    }
}

@media (max-width: 992px) {
    .timeline::before,
    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }

    .timeline-dot {
        left: -40px !important;
        right: auto;
    }

    .timeline-date {
        position: relative;
        left: 0 !important;
        right: auto !important;
        margin-bottom: 1rem;
    }

    .timeline-content {
        margin-left: 0;
        padding: 1.5rem;
        background: var(--white);
        border: 1px solid rgba(52, 152, 219, 0.2);
    }

    .company-header {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .company-logo {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
        flex-shrink: 0;
    }

    .company-info {
        flex: 1;
    }

    .company-info h3 {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }

    .position {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .experience {
        padding: 3rem 0;
    }

    .experience h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .timeline-item {
        width: calc(100% - 40px);
        margin-left: 40px !important;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-dot {
        left: -35px !important;
        width: 14px;
        height: 14px;
        top: 15px;
    }

    .timeline-content {
        padding: 1.2rem;
    }

    .skills-learned {
        margin-top: 1rem;
        gap: 0.4rem;
    }

    .skills-learned span {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .experience {
        padding: 2rem 0;
    }

    .experience .container {
        padding: 0 1rem;
    }

    .timeline-item {
        width: calc(100% - 30px);
        margin-left: 30px !important;
    }

    .timeline::before {
        left: -35px;
    }

    .timeline-dot {
        left: -28px !important;
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        padding: 1rem;
    }

    .company-header {
        gap: 0.8rem;
    }

    .company-logo {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .company-info h3 {
        font-size: 1.1rem;
    }

    .position {
        font-size: 0.9rem;
    }

    .skills-learned span {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
}

/* Dark Mode Mobile Optimizations */
@media (max-width: 992px) {
    [data-theme="dark"] .timeline-content {
        background: var(--dark-card-bg);
    }

    [data-theme="dark"] .timeline-date {
        color: var(--dark-accent);
    }

    [data-theme="dark"] .timeline::before {
        background: var(--dark-accent);
    }

    [data-theme="dark"] .timeline-dot {
        background: var(--dark-accent);
        border-color: var(--dark-bg);
    }
}

/* Intersection Observer Animation Classes */
.timeline-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.timeline-dot.animate {
    opacity: 1;
    transform: scale(1);
}

.timeline-date.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Education Section */
.education {
    background: var(--light-bg);
}

.education-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.education-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.education-item:hover {
    transform: translateY(-5px);
}

.education-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.education-item .date {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Certificates Section */
.certificates {
    padding: 6rem 0;
    background: var(--light-bg);
}

.certificates-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

@media (min-width: 992px) {
    .certificates-container {
        grid-template-columns: 1fr 1fr;
    }
}

.certificate-card {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.certificate-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.certificate-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.certificate-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.certificate-title h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-size: clamp(16px, 2.5vw, 24px);
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
}

.certificate-title p {
    color: var(--secondary-color);
    font-size: clamp(14px, 2vw, 18px);
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
}

.certificate-image-wrapper {
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    
    padding: 1rem;
    min-height: 400px;
}

.certificate-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.certificate-skills {
    margin-top: 1.5rem;
}

.certificate-skills h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skills-tags span {
    background: var(--light-bg);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skills-tags span i {
    color: var(--secondary-color);
}

.certificates-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.highlight-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
}

.highlight-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.highlight-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.highlight-content h4 {
    margin: 0 0 1rem 0;
    color: var(--text-color);
    font-size: 1.4rem;
}

.highlight-content p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Dark mode adjustments */
[data-theme="dark"] .certificates {
    background: var(--dark-bg);
}

[data-theme="dark"] .certificate-card,
[data-theme="dark"] .highlight-card {
    background: var(--dark-card-bg);
}

[data-theme="dark"] .certificate-title h3,
[data-theme="dark"] .certificate-skills h4,
[data-theme="dark"] .highlight-content h4 {
    color: var(--dark-text);
}

[data-theme="dark"] .certificate-title p,
[data-theme="dark"] .highlight-content p {
    color: var(--dark-muted);
}

[data-theme="dark"] .skills-tags span {
    background: var(--dark-secondary);
    color: var(--dark-text);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .certificates-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .certificates-highlights {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1.5rem;
    }

    .highlight-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .certificates {
        padding: 4rem 0;
    }

    .certificates-container {
        padding: 0 1rem;
    }

    .certificates-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        margin-top: 3rem;
    }

    .certificate-content {
        padding: 1.5rem;
    }

    .certificate-image-wrapper {
        min-height: 350px;
    }

    .highlight-card {
        padding: 1.5rem;
    }

    .highlight-content h4 {
        font-size: 1.2rem;
    }

    .certificate-title h3 {
        font-size: clamp(15px, 2.2vw, 20px);
    }
    
    .certificate-title p {
        font-size: clamp(13px, 1.8vw, 16px);
    }
}

@media (max-width: 480px) {
    .certificate-image-wrapper {
        min-height: 300px;
    }

    .certificate-title h3 {
        font-size: clamp(14px, 2vw, 18px);
    }
    
    .certificate-title p {
        font-size: clamp(12px, 1.6vw, 15px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .burger {
        display: block;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .experience-areas {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .hero .personal-info {
        font-size: 0.9rem;
    }
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-picture {
    width: 300px;
    height: 300px;
    border-radius: 5%;
    margin-bottom: 2rem;
    object-fit: cover;
    object-position: center -48%;
    animation: fadeInUp 1s ease;
    margin-top: 2rem;
    background: var(--light-bg);
    padding: 0.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

[data-theme="dark"] .profile-picture {
    background: var(--dark-card-bg);
}

@media (max-width: 768px) {
    .profile-picture {
        width: 250px;
        height: 250px;
        margin-bottom: 1.5rem;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .profile-picture {
        width: 220px;
        height: 220px;
        margin-bottom: 1rem;
        margin-top: 2.5rem;
    }

    .certificate-image {
        width: 35vh;
        height: auto;
        object-fit: contain;
    }

}


.about-journey {
    margin-top: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
}

.about-personal,
.languages {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-personal:hover,
.languages:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.about-personal h3,
.languages h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.about-personal h3::after,
.languages h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.strength-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.strength-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.strength-list li:hover {
    transform: translateX(5px);
    background: var(--secondary-color);
    color: var(--white);
}

.strength-list li i {
    color: var(--secondary-color);
    margin-right: 1rem;
    font-size: 1.1rem;
}

.strength-list li:hover i {
    color: var(--white);
}

.language-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.language-item {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: var(--light-bg);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.language-item:hover {
    transform: translateX(5px);
}

.language-name {
    font-weight: 600;
    color: var(--primary-color);
}

.language-level {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.level-bar {
    height: 100%;
    background: var(--secondary-color);
    border-radius: 4px;
    width: 0;
    animation: fillBar 1.5s ease forwards;
    animation-play-state: paused;
}

.language-item.visible .level-bar {
    animation-play-state: running;
}

[data-theme="dark"] .language-level {
    background: var(--dark-bg);
}

[data-theme="dark"] .level-bar {
    background: var(--dark-accent);
}

/* Dark Mode Adjustments */
[data-theme="dark"] .about-personal,
[data-theme="dark"] .languages {
    background: var(--dark-card-bg);
}

[data-theme="dark"] .about-personal h3,
[data-theme="dark"] .languages h3,
[data-theme="dark"] .language-name {
    color: var(--dark-text);
}

[data-theme="dark"] .strength-list li,
[data-theme="dark"] .language-item {
    background: var(--dark-secondary);
    color: var(--dark-text);
}

.certificates-info {
    margin-top: 4rem;
    padding: 2rem 0;
    background: var(--light-bg);
    border-radius: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.info-icon {
    width: 70px;
    height: 70px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    transition: all 0.4s ease;
}

.info-card:hover .info-icon {
    transform: scale(1.1) rotate(10deg);
    background: var(--primary-color);
}

.info-card h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
}

/* Dark Mode Adjustments */
[data-theme="dark"] .certificates-info {
    background: var(--dark-secondary);
}

[data-theme="dark"] .info-card {
    background: var(--dark-card-bg);
}

[data-theme="dark"] .info-card h4 {
    color: var(--dark-text);
}

[data-theme="dark"] .info-card p {
    color: var(--dark-accent);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .certificates-info {
        margin-top: 3rem;
        padding: 1.5rem 0;
    }

    .info-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .certificates-info {
        margin-top: 2rem;
        padding: 1rem 0;
    }

    .info-card {
        padding: 1.5rem;
    }

    .info-card h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .info-grid {
        padding: 0 1rem;
    }

    .info-card {
        padding: 1.2rem;
    }

    .info-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .info-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .info-card p {
        font-size: 0.9rem;
    }
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.cookie-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.cookie-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

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

/* Dark Mode Anpassungen */
[data-theme="dark"] .cookie-banner {
    background: var(--dark-card-bg);
    color: var(--dark-text);
}

[data-theme="dark"] .cookie-option {
    color: var(--dark-text);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .cookie-content {
        padding: 0 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
}

/* Section Headings */
h2 {
    font-size: var(--h2-size);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    color: var(--primary-color);
    background: linear-gradient(120deg, #4b5563, #1f2937);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.5rem;
    letter-spacing: 0.3px;
    font-weight: 600;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #4b5563, #1f2937);
    border-radius: 8px;
    opacity: 0.9;
}

/* Dark mode adjustments for h2 */
[data-theme="dark"] h2 {
    background: linear-gradient(120deg, #6b7280, #374151);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="dark"] h2::after {
    background: linear-gradient(90deg, #6b7280, #374151);
    opacity: 0.9;
}

/* h3 Headings */
h3 {
    font-size: var(--h3-size);
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    letter-spacing: 0.2px;
    font-weight: 500;
}

h3::after {
    display: none;
}

/* Dark mode adjustments for h3 */
[data-theme="dark"] h3 {
    background: linear-gradient(120deg, #6b7280, #374151);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="dark"] h3::after {
    background: linear-gradient(90deg, #6b7280, #374151);
    opacity: 0.8;
} 

.AutoEntw{
    color: white;
    font-size: 30px;
}

@keyframes fillBar {
    from { width: 0; }
    to { width: var(--target-width); }
}


/* Projects Section */
.projects {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .projects {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-card-bg) 100%);
}

.projects h2 {
    margin-bottom: 4rem;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-color);
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.projects h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    flex: 1 1 300px;
    max-width: 400px;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.project-image-container {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #fff;
}

.project-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

[data-theme="dark"] .project-image-container {
    background: var(--dark-card-bg);
}

.project-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.project-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.project-card h3::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

[data-theme="dark"] .project-card h3::before {
    background-color: var(--dark-text);
}

.project-card h3::after {
    display: none;
}

.project-card p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    text-align: center;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    align-self: center;
    margin-bottom: 1.5rem;
}

@media (max-width: 1200px) {
    .project-card {
        flex: 1 1 calc(50% - 2.5rem);
        max-width: 450px;
    }
    
    .project-image-container {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .project-card {
        flex: 1 1 100%;
        max-width: 400px;
    }
    
    .project-image-container {
        height: 180px;
    }
    
    .project-content {
        padding: 1.5rem;
    }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: rotate(90deg);
}

/* Contact Form Messages */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Button States */
.contact-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}