/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #0a0a0a;
    overflow-x: hidden;
}

/* Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-primary: #ffffff;
    --text-secondary: #e5e7eb;
    --text-muted: #9ca3af;
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --border-color: #374151;
    --shadow-light: rgba(37, 99, 235, 0.1);
    --shadow-medium: rgba(37, 99, 235, 0.2);
    --shadow-heavy: rgba(37, 99, 235, 0.3);
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --gradient-secondary: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    --navbar-bg: rgba(10, 10, 10, 0.95);
    --theme-icon-color: #ffffff;
}

/* Light theme */
:root.light-theme {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-primary: #000000;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
    --shadow-heavy: rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --gradient-secondary: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    --navbar-bg: rgba(255, 255, 255, 0.9);
    --theme-icon-color: #000000;
}

body.light-theme {
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

.hero.light-theme {
    background: var(--bg-primary);
}

.hero-title.light-theme .name {
    color: var(--text-primary);
}

.hero-title.light-theme .profession {
    color: var(--primary-color);
}

.hero-subtitle.light-theme {
    color: var(--text-secondary);
}

.about.light-theme {
    background: var(--bg-secondary);
}

.skills.light-theme {
    background: var(--bg-primary);
}

.education.light-theme {
    background: var(--bg-secondary);
}

.contact.light-theme {
    background: var(--bg-primary);
}

.footer.light-theme {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}


/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(127, 127, 127, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.hero-avatar {
    margin-bottom: 2rem;
}

.avatar-container {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    background: var(--gradient-primary);
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.avatar-image {
    width: 140px;
    height: 140px;
    border-radius: 100%;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-title .name {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.hero-title .profession {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bg-animation {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(30, 64, 175, 0.08) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

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

.about-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateX(10px);
}

.highlight-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-light);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Skills Section */
.skills {
    background: var(--bg-primary);
}

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

.skill-category {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-light);
}

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

.category-header i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.category-header h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    opacity: 0;
    animation: fadeInLeft 0.6s ease-out forwards;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    color: var(--text-secondary);
    font-weight: 500;
}

.skill-percentage {
    color: var(--primary-color);
    font-weight: 600;
}

.skill-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease-out;
}

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

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

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

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.timeline-dot {
    position: absolute;
    left: 21px;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--bg-secondary);
    z-index: 2;
}

.timeline-content {
    margin-left: 80px;
}

.education-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-light);
}

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

.education-info h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.education-degree {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.education-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Cards */
.education-gallery {
    display: grid;
    grid-template-columns: repeat(5, 171px);
    gap: 10px;
    margin: 30px auto 0;
    justify-content: center;
}

/* Card Container */
.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.gallery-item:hover {
    transform: scale(1.1); 
}

/* Image Container */
.gallery-img-container {
    position: relative;
    width: 171px;  
    height: 230px; 
    overflow: hidden;
}

.gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease;
}

/* Header Styles */
.gallery-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 12px;
    text-align: center;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-title {
    opacity: 0;
}

/* Header Styles */
.gallery-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 12px;
    text-align: center;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-title {
    opacity: 0;
}

/*Work experience*/
.workexp {
    background: var(--bg-primary)
}

.workexp-container {
    display: grid;
    grid-template-columns: repeat(3, 300px);
    gap: 15px;
    margin: 30px auto 0;
    justify-content: center;
}

.workexp-card{
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.workexp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-light); 
}

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

.workexp-info h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.workexp-degree {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.workexp-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.workexp-section-divider {
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* My Works Section */
.my-proj {
    background: var(--bg-secondary)
}

.my-proj-container {
    display: grid;
    gap: 15px;
    margin: 30px auto 0;
    justify-content: center;
}

.my-proj-card{
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.my-proj-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-light); 
}

.my-proj-logo img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 6px;
}

.my-proj-info h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.my-proj-degree {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.my-proj-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.my-proj-button {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: center;
    padding: 1.5rem;
}

.btn-my-proj {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Contact Section */
.contact {
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-text h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-light);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-details h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-details a,
.contact-details p,
.contact-details span {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--bg-primary);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

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

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

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (min-width: 481px) and (max-width: 768px) {
    .education-gallery {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

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

    .nav-container {
        padding: 0 15px;
    }

    .hero-title .name {
        font-size: 2rem;
    }

    .avatar-placeholder {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

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

    .education-gallery {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 15px !important;
        padding: 20px 20px 20px 0 !important;
        margin: 30px auto 0 !important;
        max-width: 100% !important;
        scroll-behavior: smooth !important;
    }
    
    .gallery-item {
        flex: 0 0 48% !important; 
        min-width: 48% !important;
        scroll-snap-align: start !important;
    }
    
    .gallery-img-container {
        width: 100% !important;
        height: 200px !important;
    }
    
    .gallery-img-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Навигация */
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-logo .logo-text {
        font-size: 1.2rem;
    }
    
    .nav-toggle {
        padding: 8px;
    }
    
    /* Hero Section */
    .hero-title .name {
        font-size: 2rem;
    }
    
    .hero-title .profession {
        font-size: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        padding: 0 15px;
    }
    
    .hero-buttons .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    /* About Section */
    .about-text h3 {
        font-size: 1.3rem;
    }
    
    .about-description {
        font-size: 0.9rem;
    }
    
    /* Skills Section */
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-category {
        padding: 1rem;
    }
    
    /* Education Section */
    .education-gallery {
        grid-template-columns: 1fr;
        max-width: 200px;
    }
    
    .gallery-img-container {
        width: 100%;
        height: 280px;
    }
    
    /* Work Experience */
    .workexp-container {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    /* Contact Section */
    .contact {
        padding: 60px 0 40px;
    }
    
    .contact-content {
        gap: 2rem;
    }
    
    .contact-text h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .contact-text p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    .contact-method {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-details h4 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    .contact-details p,
    .contact-details span {
        font-size: 0.85rem;
    }
    
    /* Адаптация карты */
    iframe {
        height: 300px !important;
        width: 100% !important;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-social {
        gap: 15px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
}



@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-secondary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-toggle-theme {
        position: absolute;
        right: 60px;
        top: 15px;
    }

    .hero-title .name {
        font-size: 2.5rem;
    }

    .hero-title .profession {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

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

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

    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .education-gallery {
        display: grid !important;
        grid-template-columns: repeat(5, 171px) !important;
        gap: 10px !important;
        margin: 30px auto 0 !important;
        justify-content: center !important;
    }
    
    .gallery-item {
        overflow: hidden !important;
        border-radius: 8px !important;
        transition: transform 0.3s ease !important;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1) !important;
    }
    
    .gallery-item:hover {
        transform: scale(1.1) !important; 
    }
    
    .gallery-img-container {
        position: relative !important;
        width: 171px !important;  
        height: 230px !important; 
        overflow: hidden !important;
    }
    
    .gallery-img-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; 
        transition: transform 0.5s ease !important;
    }
    
    .gallery-title {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        padding: 10px !important;
        background: rgba(0,0,0,0.6) !important;
        color: white !important;
        font-size: 12px !important;
        text-align: center !important;
        transition: opacity 0.3s ease !important;
    }
    
    .gallery-item:hover .gallery-title {
        opacity: 0 !important;
    }

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

    .timeline-dot {
        left: 6px;
    }

    .timeline-content {
        margin-left: 60px;
    }

    .education-card {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }
}
