/* ===================================
   GLOBAL STYLES & VARIABLES
   =================================== */

:root {
    --primary-color: #059669;
    --primary-dark: #047857;
    --primary-light: #10b981;
    --secondary-color: #34d399;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #f3f4f6;
    --bg-primary: #ffffff;
    --bg-secondary: #f0fdf4;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --green-light: #ecfdf5;
    --green-medium: #d1fae5;
    --green-gradient-start: #059669;
    --green-gradient-end: #10b981;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Dark Mode */
body.dark-mode {
    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
    --text-light: #1f2937;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --border-color: #374151;
    --green-light: #064e3b;
    --green-medium: #047857;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ===================================
   NAVIGATION BAR
   =================================== */

.navbar {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.brand-logo:hover {
    transform: scale(1.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    color: var(--primary-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex: 2;
    justify-content: center;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.menu-dark-mode {
    display: none;
    text-align: center;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
    margin-top: 1rem;
    list-style: none;
}

.menu-dark-mode .dark-mode-toggle {
    margin-left: 0;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    margin: 0 auto;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.dark-mode-toggle {
    background: none;
    border: 2px solid var(--text-primary);
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
    margin-left: 1rem;
}

.dark-mode-toggle.desktop-only {
    display: flex;
}

.dark-mode-toggle:hover {
    background-color: var(--bg-secondary);
    transform: rotate(20deg);
    border-color: var(--primary-color);
}

.dark-mode-toggle i {
    transition: var(--transition);
}

.mode-icon {
    height: 100%;
    width: 100%;
    display: block;
    transition: var(--transition);
    object-fit: contain;
}

@media (max-width: 768px) {
    .mode-icon {
        height: 25px;
        width: 25px;
    }
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

body.dark-mode .btn-secondary {
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #dbeafe 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #1f2937 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0 2rem;
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

.hero-text h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: slideInLeft 0.8s ease;
}

body.dark-mode .hero-text h1 {
    color: white;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: slideInLeft 0.8s ease 0.1s backwards;
}

body.dark-mode .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

.hero-socials {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: slideInLeft 0.8s ease 0.2s backwards;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background-color: var(--bg-primary);
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.social-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    animation: slideInLeft 0.8s ease 0.3s backwards;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: auto;
    animation: fadeIn 0.8s ease;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-content: start;
}

@media (max-width: 1024px) {
    .hero-visual {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hero-visual {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        height: auto;
        padding: 0 0.5rem;
    }
}

.floating-card {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 1.5rem;
    border-radius: 1rem;
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    font-size: 2rem;
    color: var(--primary-color);
    animation: float 3s ease-in-out infinite;
    border: 2px solid var(--green-medium);
    transition: var(--transition);
}

.floating-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(5, 150, 105, 0.3);
    border-color: var(--primary-color);
}

.floating-card i {
    margin-bottom: 0.5rem;
}

.floating-card p {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin: 0;
}

.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: 0.5s; }
.card-3 { animation-delay: 1s; }
.card-4 { animation-delay: 1.5s; }

@media (max-width: 768px) {
    .hero-visual {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .floating-card {
        animation: none;
    }
    
    .floating-card:hover {
        transform: translateY(-5px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ===================================
   STATS SECTION
   =================================== */

.stats {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 4rem 0;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .stats {
        padding: 3rem 0;
        margin: 2rem 0;
    }

    .stats .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.9);
}

/* ===================================
   HIGHLIGHTS SECTION
   =================================== */

.highlights {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.highlights h2 {
    text-align: center;
    color: var(--primary-color);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.highlight-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid var(--primary-color);
    position: relative;
}


.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.highlight-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.highlight-card h3 {
    color: var(--text-primary);
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

.read-more:hover {
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .highlights {
        padding: 3rem 0;
    }

    .highlights-grid {
        gap: 1.5rem;
    }
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-intro {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-text h2 {
    margin-top: 2rem;
    color: var(--primary-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--secondary-color);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.1rem;
}

.value-card p {
    font-size: 0.875rem;
    margin: 0;
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-card,
.languages-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-color);
}

.profile-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.2);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card h3,
.languages-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.profile-card ul {
    list-style: none;
}

.profile-card li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.profile-card strong {
    color: var(--text-primary);
}

.language-item {
    margin-bottom: 1.5rem;
}

.language-item p {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.language-bar {
    background: var(--bg-secondary);
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--green-medium);
}

.language-fill {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    height: 100%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 5px;
    font-size: 0.75rem;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 3rem 0;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .profile-image {
        width: 120px;
        height: 120px;
        font-size: 4rem;
    }
}

/* ===================================
   SKILLS SECTION
   =================================== */

.skills-section {
    padding: 5rem 0;
}

.skills-section h2 {
    text-align: center;
    color: var(--primary-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.skill-category i {
    font-size: 1.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--primary-color);
}

.skill-tag:hover {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
}

@media (max-width: 768px) {
    .skills-section {
        padding: 3rem 0;
    }

    .skills-grid {
        gap: 1.5rem;
    }
}

/* ===================================
   CERTIFICATIONS SECTION
   =================================== */

.certifications-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.certifications-section h2 {
    text-align: center;
    color: var(--primary-color);
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.cert-item {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--secondary-color);
}

.cert-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cert-item h4 {
    color: var(--primary-color);
}

.cert-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

@media (max-width: 768px) {
    .certifications-section {
        padding: 3rem 0;
    }

    .certs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   EXPERIENCE SECTION
   =================================== */

.experience-section {
    padding: 5rem 0;
}

.experience-section h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid white;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px var(--primary-color);
    transition: var(--transition);
}

.timeline-item:hover .timeline-marker {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 6px var(--secondary-color);
}

.timeline-content {
    width: calc(50% - 2rem);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.experience-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.experience-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-top-color: var(--secondary-color);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-header h3 {
    color: var(--primary-color);
}

.position-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.experience-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.experience-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experience-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.experience-details h4 {
    color: var(--primary-color);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.experience-details ul {
    list-style: none;
    margin-left: 1rem;
}

.experience-details li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.experience-details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.experience-highlights {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.highlight-tag {
    background: var(--green-light);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--green-medium);
}

@media (max-width: 768px) {
    .experience-section {
        padding: 3rem 0;
    }

    .experience-section h1 {
        font-size: 2rem;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-marker {
        left: 0;
    }

    .timeline-content {
        width: 100%;
        margin-left: 30px !important;
    }

    .experience-card {
        margin-left: 20px;
    }

    .experience-header {
        flex-direction: column;
    }
}

/* ===================================
   EDUCATION SECTION
   =================================== */

.education-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.education-section h2 {
    text-align: center;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.education-item {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.education-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.education-item h3 {
    color: var(--primary-color);
}

.institution {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.education-period {
    color: var(--accent-color);
    font-size: 0.875rem;
    margin: 0;
}

/* ===================================
   PORTFOLIO SECTION
   =================================== */

.portfolio-section {
    padding: 5rem 0;
}

.portfolio-section h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: var(--bg-primary);
    color: var(--primary-color);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    background: var(--bg-primary);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--primary-color);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-top-color: var(--secondary-color);
}

.portfolio-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    position: relative;
}

.portfolio-label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.portfolio-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-content h3 {
    color: var(--primary-color);
}

.portfolio-role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.portfolio-description {
    color: var(--text-secondary);
    flex-grow: 1;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.portfolio-tags span {
    background: var(--green-light);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--green-medium);
}

.portfolio-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 1rem 0;
    flex-wrap: wrap;
}

.portfolio-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.portfolio-content .btn {
    margin-top: auto;
}

@media (max-width: 768px) {
    .portfolio-section {
        padding: 3rem 0;
    }

    .portfolio-section h1 {
        font-size: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-filters {
        gap: 0.75rem;
    }

    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.875rem;
    }
}

/* ===================================
   ACHIEVEMENTS SECTION
   =================================== */

.achievements-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.achievements-section h2 {
    text-align: center;
    color: var(--primary-color);
}

.achievements-timeline {
    position: relative;
    padding: 2rem 0;
}

.achievement {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 1rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 2rem;
    background: var(--bg-primary);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.achievement:hover {
    box-shadow: var(--shadow-md);
    border-left-color: var(--secondary-color);
}

.achievement-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    background: var(--green-light);
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
}

.achievement-content h4 {
    color: var(--primary-color);
}

.achievement-content p {
    color: var(--text-secondary);
    margin: 0;
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact-section {
    padding: 5rem 0;
}

.contact-section h1 {
    text-align: center;
    color: var(--primary-color);
}

.contact-section h2 {
    text-align: center;
    margin-top: 1.5rem;
}

.contact-section h2 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-section h2 a:hover {
    color: var(--primary-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-form-container h2,
.contact-info-container h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.contact-form {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--green-medium);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-note {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.contact-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
    border-left-color: var(--secondary-color);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-details p {
    margin: 0.25rem 0;
    color: var(--text-secondary);
}

.info-note {
    font-size: 0.875rem;
    font-style: italic;
    color: #9ca3af;
}

/* ===================================
   SOCIAL CONNECT SECTION
   =================================== */

.social-connect {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.social-connect h2 {
    color: white;
}

.social-connect p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    color: white;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.social-link:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-5px);
    border-color: white;
}

.social-link i {
    font-size: 2rem;
}

/* ===================================
   CTA SECTION
   =================================== */

.cta-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
    text-align: center;
}

.cta-content h2 {
    color: var(--primary-color);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;

}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section a:hover {
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-socials {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 0.25rem 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
        padding: 2rem 0;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        padding: 1.25rem 1rem;
        display: block;
        font-size: 1.1rem;
    }

    .menu-dark-mode {
        display: list-item;
    }

    .dark-mode-toggle.desktop-only {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 3rem 0;
        min-height: auto;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-visual {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        height: auto;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-marker {
        left: 0;
    }

    .timeline-content {
        width: 100%;
        margin-left: 30px !important;
    }

    .experience-card {
        margin-left: 20px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .stats .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-buttons,
    .hero-socials {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .achievement {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .achievement-year {
        margin-bottom: 0.5rem;
    }

    .social-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .social-link {
        width: 100%;
    }

    .profile-image {
        width: 120px;
        height: 120px;
        font-size: 4rem;
    }

    .experience-header {
        flex-direction: column;
    }

    .timeline::before {
        display: none;
    }

    .timeline-marker {
        display: none;
    }

    .timeline-content {
        width: 100%;
        margin-left: 0 !important;
    }

    .experience-card {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1rem;
    }

    .container {
        padding: 0 15px;
    }

    .stat-item h3 {
        font-size: 1.75rem;
    }

    .stat-item p {
        font-size: 0.875rem;
    }

    .skills-grid,
    .highlights-grid,
    .certs-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .floating-card {
        padding: 1rem;
        width: 100%;
        height: auto;
    }

    .hero-socials {
        gap: 0.5rem;
    }

    .social-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.875rem;
    }

    .value-card {
        padding: 1rem;
    }

    .profile-image {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }

    .experience-meta {
        font-size: 0.75rem;
        gap: 0.75rem;
    }

    .nav-menu {
        top: 60px;
        padding: 1.5rem 0;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .cta-section {
        padding: 2rem 0;
    }

    .portfolio-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
    }

    .contact-form,
    .contact-item {
        padding: 1.5rem 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
    }

    .skill-tag {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }

    .stats .container {
        grid-template-columns: 1fr;
    }
}
