/* ==========================================
   CSS VARIABLES & THEMING
   ========================================== */
:root {
    /* Light Theme Colors */
    --primary-color: #e74c3c;
    --secondary-color: #3498db;
    --accent-color: #f39c12;

    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --bg-overlay: rgba(0, 0, 0, 0.7);

    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-inverse: #ffffff;

    --border-color: #dee2e6;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);

    --gradient-primary: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    --gradient-secondary: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    --gradient-accent: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Dark Theme */
[data-theme="dark"] {
    --primary-color: #3498db;
    --secondary-color: #e74c3c;
    --accent-color: #f39c12;

    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-tertiary: #0f3460;
    --bg-overlay: rgba(0, 0, 0, 0.85);

    --text-primary: #e9ecef;
    --text-secondary: #adb5bd;
    --text-inverse: #1a1a2e;

    --border-color: #2d3748;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);

    --gradient-primary: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    --gradient-secondary: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .header.scrolled {
    background: rgba(26, 26, 46, 0.95);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo-img {
    height: 65px;
    width: auto;
    transition: transform var(--transition-base);
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

/* Light theme - white nav links when not scrolled */
[data-theme="light"] .header:not(.scrolled) .nav-link {
    color: #ffffff;
}

/* Light theme - gray nav links when scrolled (white background) */
[data-theme="light"] .header.scrolled .nav-link {
    color: var(--text-primary);
}

/* Light theme - hover and active states always show primary color */
[data-theme="light"] .header .nav-link:hover,
[data-theme="light"] .header .nav-link.active {
    color: var(--primary-color);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    font-weight: 600;
    border: 2px solid var(--border-color);
}

.control-btn:hover {
    background: var(--primary-color);
    color: var(--text-inverse);
    transform: scale(1.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ==========================================
   HOME SECTION
   ========================================== */
.home-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.home-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/hero-bg.jpg') center/cover no-repeat;
    transition: background-image var(--transition-base);
    z-index: -1;
}

[data-theme="light"] .home-bg {
    background: url('assets/images/hero-bg-light.jpg') center/cover no-repeat;
}

/* Brighten hero background in dark theme */
[data-theme="dark"] .home-bg {
    filter: brightness(4);
}

.home-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
}

.home-content {
    text-align: center;
    color: var(--text-inverse);
    padding: var(--spacing-lg) 0;
    animation: fadeInUp 1s ease;
}

.home-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    font-weight: 600;
}

.home-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 700px;
    margin: 0 auto var(--spacing-md);
    color: rgba(255, 255, 255, 0.9);
}

.home-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left var(--transition-base);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Light theme adjustments for reset button */
[data-theme="light"] .contact-section .btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

[data-theme="light"] .contact-section .btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    border-color: white;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-section {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-slow);
}

/* Brighten image in dark theme */
[data-theme="dark"] .about-image img {
    filter: brightness(1.2);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-text {
    animation: fadeIn 1s ease;
}

.about-subtitle {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.linkedin-embed {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.embed-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.linkedin-iframe-container {
    padding: var(--spacing-sm) 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

.linkedin-iframe-container iframe {
    max-width: 100%;
    border-radius: var(--radius-md);
}

.LI-profile-badge {
    margin: 0 auto;
}

/* ==========================================
   SKILLS SECTION
   ========================================== */
.skills-tabs {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.skill-tab {
    padding: 0.8rem 2rem;
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.skill-tab:hover {
    background: var(--bg-tertiary);
}

.skill-tab.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
}

.skills-group {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    animation: fadeIn 0.5s ease;
}

.skills-group.active {
    display: grid;
}

.skill-card {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.skill-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.skill-name {
    font-size: 1.3rem;
}

.skill-bar {
    width: 100%;
    height: 12px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: var(--spacing-xs);
    position: relative;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    position: relative;
    animation: progressBar 1.5s ease-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
}

.skill-percent {
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

.skill-level {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================
   NEWS SECTION
   ========================================== */
.news-section {
    background: var(--bg-secondary);
}

.news-carousel {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-primary);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition-base);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: -25px;
}

.carousel-btn.next {
    right: -25px;
}

.news-wrapper {
    overflow: hidden;
    padding: var(--spacing-sm) 0;
}

.news-track {
    display: flex;
    gap: var(--spacing-md);
    transition: transform var(--transition-slow);
}

.news-card {
    min-width: calc(33.333% - var(--spacing-md));
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    opacity: 0.6;
}

.news-card.center {
    opacity: 1;
    transform: scale(1.05);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    opacity: 1;
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 0.4rem 1rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.news-content {
    padding: var(--spacing-sm);
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.news-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Logo styling in news cards */
.news-image img[src*="logo"] {
    object-fit: contain;
    padding: 0.2rem;
    background: #ffffff;
}

/* ==========================================
   CALENDAR SECTION
   ========================================== */
.calendar-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.calendar-table {
    min-width: 900px;
    width: 100%;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border-collapse: collapse;
}

.calendar-header {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
}

.calendar-cell {
    padding: var(--spacing-sm);
    text-align: center;
    border: 1px solid var(--border-color);
}

.day-header,
.time-header {
    padding: var(--spacing-sm);
    font-weight: 700;
}

.time-cell {
    background: var(--bg-tertiary);
    font-weight: 600;
    font-size: 0.9rem;
}

.class-cell {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-weight: 600;
    transition: all var(--transition-base);
    cursor: pointer;
    vertical-align: middle;
}

.class-cell:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    z-index: 10;
    position: relative;
}

.ethr-cell {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
}

/* Different colors for each course */
.web-class {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
}

.org-data-class {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%) !important;
}

.db-class {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%) !important;
}

.mgmt-class {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
}

.marketing-class {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%) !important;
}

.empty {
    background: var (--bg-primary);
}

/* ==========================================
   CV SECTION
   ========================================== */
.cv-section {
    background: var(--bg-secondary);
}

.cv-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.cv-block {
    background: var(--bg-primary);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.cv-block-title {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.cv-block-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
}

.cv-item {
    padding: var(--spacing-sm);
    border-left: 3px solid var(--border-color);
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-base);
}

.cv-item:hover {
    border-left-color: var(--primary-color);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.cv-item.active-item {
    border-left-color: var(--primary-color);
}

.cv-item-header {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.cv-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
}

.cv-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.school-logo {
    background: transparent;
    color: white;
    font-size: 2rem;
}

.school-logo img,
.theme-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cv-info {
    flex: 1;
}

.cv-title {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.cv-institution {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.cv-details {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cv-date,
.cv-gpa,
.cv-track {
    padding: 0.2rem 0.8rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

.cv-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0.5rem;
}

.cv-download {
    text-align: center;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.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: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-md);
}

.form-message {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--bg-secondary);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.footer-column {
    animation: fadeIn 1s ease;
}

.footer-logo {
    display: inline-block;
    margin-bottom: var(--spacing-sm);
}

.footer-logo img {
    height: 100px;
}

.footer-about {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a {
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    padding: 0.3rem 0;
}

.footer-nav a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progressBar {
    from {
        width: 0;
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .cv-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-primary);
        box-shadow: var(--shadow-lg);
        transition: right var(--transition-base);
        padding-top: 80px;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        padding: var(--spacing-md);
        gap: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link {
        display: block;
        padding: var(--spacing-sm);
    }

    .hamburger {
        display: flex;
    }

    .home-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .news-card {
        min-width: calc(100% - var(--spacing-md));
    }

    .calendar-wrapper {
        margin: 0 calc(-1 * var(--spacing-md));
    }

    .skills-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .logo-img {
        height: 40px;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}