/* Root Variables for Theme Colors */
:root {
    --bg-color: #ffffff;
    --text-color: #2c3e50;
    --secondary-bg: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #ecf0f1;
    --shadow: rgba(0, 0, 0, 0.1);
    --navbar-bg: rgba(255, 255, 255, 0.95);
}

/* Mobile Viewport Fix - Prevent horizontal overflow on all devices */
@viewport {
    width: device-width;
    zoom: 1.0;
}

/* Additional mobile browser compatibility */
@-ms-viewport {
    width: device-width;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --secondary-bg: #2d2d2d;
    --card-bg: #333333;
    --border-color: #444444;
    --shadow: rgba(0, 0, 0, 0.3);
    --navbar-bg: rgba(26, 26, 26, 0.95);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

html {
    /* Prevent horizontal scrolling completely */
    overflow-x: hidden;
    /* Ensure smooth vertical scrolling */
    scroll-behavior: smooth;
    /* Prevent bounce scrolling on iOS */
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    /* Prevent horizontal scrolling */
    overflow-x: hidden;
    /* Ensure body takes full width without overflow */
    width: 100%;
    max-width: 100vw;
    /* Prevent horizontal bounce on mobile */
    overscroll-behavior-x: none;
}
/* Card Styles */
.project-card, .article-card, .tech-list-column, .education-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px var(--shadow);
    transition: all 0.3s ease;
}

/* Text Colors */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
}

p, li, span, div {
    color: var(--text-color);
}

/* Project and Article Content */
.project-title, .article-title {
    color: var(--text-color);
}

.project-description, .article-content {
    color: var(--text-color);
}

/* Education Details */
.education-details h3, .education-details h4 {
    color: var(--text-color);
}

.education-description, .education-date {
    color: var(--text-color);
}

/* Form Elements */
.contact-form input, 
.contact-form textarea {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: #8e44ad;
    box-shadow: 0 0 0 2px rgba(142, 68, 173, 0.2);
}

/* Mobile Menu */
.nav-menu.active {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--navbar-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px var(--shadow);
}

/* Force navbar dark theme - Multiple approaches */
[data-theme="dark"] .navbar {
    background-color: rgba(26, 26, 26, 0.95) !important;
    background: rgba(26, 26, 26, 0.95) !important;
}

[data-theme="dark"] .nav-logo a {
    color: #8e44ad !important;
}

[data-theme="dark"] .nav-link {
    color: #8e44ad !important;
}

[data-theme="dark"] .theme-toggle {
    color: #8e44ad !important;
}

/* Light theme explicit rules */
[data-theme="light"] .navbar,
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .nav-logo a,
[data-theme="light"] .nav-link,
[data-theme="light"] .theme-toggle {
    color: #2c3e50;
}

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

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-family: 'Orbitron', monospace;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
    position: relative;
}

.nav-link:hover {
    color: #8e44ad;
    background-color: rgba(142, 68, 173, 0.1);
    transform: translateY(-2px);
}

/* Dark mode nav link hover */
[data-theme="dark"] .nav-link:hover {
    background-color: rgba(142, 68, 173, 0.2);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin-left: 1rem;
}

.theme-toggle:hover {
    background-color: var(--secondary-bg);
    transform: scale(1.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

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

/* Hero Section - Base Styles */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
    padding: 0 20px;
}

/* Original Hero (Light Mode) - Clean version without filter effects */
.hero.original-hero {
    background: linear-gradient(135deg, #6a1b9a 0%, #8e44ad 25%, #5d4e75 50%, #7b68ee 75%, #8e44ad 100%);
    background-size: 400% 400%;
    animation: cleanPurpleGlow 15s ease-in-out infinite;
    overflow: hidden;
}

/* Clean Purple Glow Animation without filter effects */
@keyframes cleanPurpleGlow {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 50% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Video Hero (Dark Mode) */
.hero.video-hero {
    overflow: hidden;
}

/* Video Background (Dark Mode Only) */
.hero.video-hero .hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero.video-hero .hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay for better text readability (Dark Mode Only) */
.hero.video-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Hero Text Overlay (Dark Mode Only) */
.hero.video-hero .hero-text-overlay {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin-top: -25vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero.video-hero .hero-main-text {
    font-family: 'Orbitron', monospace;
    font-size: 4.5rem;
    font-weight: 900;
    background: linear-gradient(to top, #6a1b9a 0%, #ba68c8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeIn 3.5s ease 0.5s forwards;
    margin: 0;
    white-space: nowrap;
    line-height: 1.2;
    letter-spacing: 2px;
    text-align: center;
}

/* Dark mode only - Make the hero-main-text change colors automatically */
[data-theme="dark"] .hero.video-hero .hero-main-text {
    background: linear-gradient(45deg, #6a1b9a, #8e44ad, #5d4e75, #7b68ee, #ba68c8);
    background-size: 500% 500%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeIn 3.5s ease 0.5s forwards, autoColorChange 3s ease-in-out infinite 4s;
}

/* Animation to automatically change colors */
@keyframes autoColorChange {
    0% { background-position: 0% 50%; }
    25% { background-position: 25% 50%; }
    50% { background-position: 50% 50%; }
    75% { background-position: 75% 50%; }
    100% { background-position: 100% 50%; }
}

/* Fallback gradient if video doesn't load (Dark Mode Only) - Clean version */
.hero.video-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -3;
    opacity: 0.8;
}

/* Original Hero Content (Light Mode Only) */
.hero.original-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero.original-hero .hero-content h1 {
    font-size: 3.5rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    color: white;
}

.hero.original-hero .hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
    color: white;
}

.hero.original-hero .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.4s both;
    color: white;
}

.hero.original-hero .highlight {
    color: #2d0a3d;
}

.highlight {
    color: #ffd700;
}

/* Smooth Apple-style section transitions */
html {
    scroll-behavior: smooth;
}

/* Hero section - clean without overlays */
.hero {
    scroll-snap-align: start;
    position: relative;
}

/* Cloud Introduction Section */
.cloud-intro-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.cloud-intro-container {
    display: flex;
    width: 100%;
    height: 100vh;
    position: relative;
}

/* Left Side - Video - Exact dimensions */
.cloud-video-side {
    flex: 0 0 50%; /* Exact 50% width */
    position: relative;
    background: #000;
    overflow: hidden;
    height: 100vh; /* Exact height match */
}

/* Right Side - Text Content - Exact dimensions */
.cloud-text-side {
    flex: 0 0 50%; /* Exact 50% width */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    background: var(--bg-color);
    position: relative;
    z-index: 2;
    height: 100vh; /* Exact height match */
}

.cloud-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.cloud-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: gradualVideoFadeIn 4s ease-in-out 1s forwards;
    filter: brightness(0.8) contrast(1.1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 70%, transparent 100%);
    z-index: 1;
}

/* Dark mode fade transition */
[data-theme="dark"] .cloud-text-side::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, var(--bg-color) 100%);
    z-index: -1;
}

.cloud-text-content {
    max-width: 500px;
    animation: fadeInUp 1s ease-out 1s both;
}

.cloud-intro-text {
    font-size: 1.5rem; /* Increased from 1.3rem */
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-weight: 300;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cloud-emphasis {
    font-size: 1.6rem; /* Increased from 1.4rem */
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-style: italic;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cloud-signature {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--text-color);
    font-weight: 400;
}

/* Cloud Scroll Hint */
.cloud-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-color);
    opacity: 0.7;
    animation: scrollHintPulse 2s ease-in-out infinite;
}

.cloud-scroll-hint .scroll-hint-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.cloud-scroll-hint .scroll-arrow {
    font-size: 1.2rem;
    animation: scrollArrowBounce 2s ease-in-out infinite;
}

.highlight-name {
    color: #8e44ad;
    font-weight: 600;
}

/* Enhanced gradual video fade-in animation */
@keyframes gradualVideoFadeIn {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }
    30% {
        opacity: 0.2;
        transform: scale(1.03);
    }
    60% {
        opacity: 0.6;
        transform: scale(1.01);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Dark Mode Only - Kareem Profile Section */
.kareem-profile-section {
    min-height: 100vh;
    display: none; /* Hidden by default */
    align-items: center;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

/* Show only in dark mode */
[data-theme="dark"] .kareem-profile-section {
    display: flex;
}

.kareem-profile-container {
    display: flex;
    width: 100%;
    height: 100vh;
    position: relative;
}

/* Left Side - Text Content - Exact dimensions to match cloud text */
.kareem-text-side {
    flex: 0 0 50%; /* Exact 50% width to match cloud text */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    background: var(--bg-color);
    position: relative;
    z-index: 2;
    height: 100vh; /* Exact height match */
}

/* Right Side - Image - Exact dimensions to match cloud video */
.kareem-image-side {
    flex: 0 0 50%; /* Exact 50% width to match cloud video */
    position: relative;
    background: #000;
    overflow: hidden;
    height: 100vh; /* Exact height match */
}

.kareem-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

/* Dark mode only - Kareem image zoom effect on scroll */
[data-theme="dark"] .kareem-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 0%; /* Show the very top of the image frame */
    opacity: 0;
    animation: gradualImageFadeIn 4s ease-in-out 1s forwards, continuousZoom 8s ease-in-out infinite 5s;
    filter: grayscale(100%) brightness(0.9) contrast(1.2) sepia(0.3) hue-rotate(270deg) saturate(1.5);
    transition: filter 0.8s ease-in-out, transform 8s ease-in-out; /* MUCH LONGER - 8 seconds! */
    transform: scale(1); /* Start at normal size */
}

/* Slower, more subtle continuous zoom in/zoom out animation */
@keyframes continuousZoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Stop continuous zoom on hover but keep color change */
[data-theme="dark"] .kareem-image:hover {
    animation: gradualImageFadeIn 4s ease-in-out 1s forwards !important;
}

/* Much longer zoom out effect when user reaches Kareem section (dark mode only) */
[data-theme="dark"] .kareem-profile-section.in-view .kareem-image {
    transform: scale(0.6); /* Much more dramatic zoom OUT - 40% smaller, head will appear much smaller */
}

/* Light mode - normal kareem image without zoom effect */
[data-theme="light"] .kareem-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 0%;
    opacity: 0;
    animation: gradualImageFadeIn 4s ease-in-out 1s forwards;
    filter: grayscale(100%) brightness(0.9) contrast(1.2) sepia(0.3) hue-rotate(270deg) saturate(1.5);
    transition: filter 0.8s ease-in-out;
}

/* Hover effects for both modes */
.kareem-image-wrapper:hover .kareem-image {
    filter: grayscale(0%) brightness(1) contrast(1) sepia(0) hue-rotate(0deg) saturate(1);
}

.kareem-image:hover {
    filter: grayscale(0%) brightness(1) contrast(1) sepia(0) hue-rotate(0deg) saturate(1);
}

.kareem-image-side .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 70%, transparent 100%);
    z-index: 1;
    pointer-events: none; /* Allow hover to pass through overlay */
}

/* Dark mode fade transition */
[data-theme="dark"] .kareem-text-side::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to left, transparent 0%, var(--bg-color) 100%);
    z-index: -1;
}

.kareem-text-content {
    max-width: 500px;
    animation: fadeInUp 1s ease-out 1s both;
}

.kareem-rotating-text {
    font-size: 1.5rem; /* Increased from 1.3rem */
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 300;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.rotating-skills {
    color: #8e44ad;
    font-weight: 600;
    display: inline-block;
    min-width: 200px;
}

.kareem-intro-text {
    font-size: 1.5rem; /* Increased from 1.3rem */
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 300;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.kareem-emphasis {
    font-size: 1.6rem; /* Increased from 1.4rem */
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-style: italic;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.kareem-closing {
    font-size: 1.5rem; /* Increased from 1.3rem */
    line-height: 1.6;
    color: var(--text-color);
    font-weight: 400;
    margin-bottom: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Kareem Buttons */
.kareem-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-color);
    opacity: 0.7;
    animation: scrollHintPulse 2s ease-in-out infinite;
}

.scroll-hint-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.scroll-arrow {
    font-size: 1.2rem;
    animation: scrollArrowBounce 2s ease-in-out infinite;
}

/* Scroll hint animations */
@keyframes scrollHintPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes scrollArrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* Dark Mode Only - Switch About and Technologies sections order */
[data-theme="dark"] .about {
    order: 2; /* Move About section after Technologies in dark mode */
}

[data-theme="dark"] .technologies-section {
    order: 1; /* Move Technologies section before About in dark mode */
}

/* Ensure the parent body uses flexbox for ordering to work */
[data-theme="dark"] body {
    display: flex;
    flex-direction: column;
}

/* Make sure other sections maintain their normal order */
[data-theme="dark"] .navbar {
    order: -10;
}

[data-theme="dark"] .hero {
    order: -9;
}

[data-theme="dark"] .cloud-intro-section {
    order: -8;
}

[data-theme="dark"] .kareem-profile-section {
    order: -7;
}

[data-theme="dark"] .education {
    order: 3;
}

[data-theme="dark"] .certifications {
    order: 4; /* Place certifications right after education */
}

[data-theme="dark"] .projects {
    order: 5; /* Move projects down */
}

[data-theme="dark"] .articles {
    order: 6; /* Move articles down */
}

[data-theme="dark"] .contact {
    order: 7; /* Move contact down */
}

[data-theme="dark"] footer {
    order: 8; /* Move footer down */
}

/* Enhanced gradual image fade-in animation */
@keyframes gradualImageFadeIn {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }
    30% {
        opacity: 0.2;
        transform: scale(1.03);
    }
    60% {
        opacity: 0.6;
        transform: scale(1.01);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design for Cloud Intro */
@media (max-width: 1024px) {
    .cloud-intro-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .cloud-video-side {
        height: 50vh;
        min-height: 400px;
    }
    
    .cloud-text-side {
        padding: 3rem 2rem;
        min-height: 50vh;
    }
    
    [data-theme="dark"] .cloud-text-side::before {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Mobile: Text overlay on video */
    .cloud-intro-container {
        position: relative;
        height: 100vh;
    }
    
    .cloud-video-side {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }
    
    .cloud-text-side {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
        background: rgba(0, 0, 0, 0.6);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem 1.5rem;
    }
    
    .cloud-text-content {
        text-align: center;
        color: white;
    }
    
    .cloud-intro-text {
        font-size: 1.3rem;
        color: white;
    }
    
    .cloud-emphasis {
        font-size: 1.4rem;
        color: white;
    }
    
    .cloud-signature {
        font-size: 1.1rem;
        color: white;
    }
    
    .cloud-scroll-hint {
        bottom: 1rem;
    }
}

/* Responsive Design for Kareem Profile Section */
@media (max-width: 1024px) {
    .kareem-profile-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .kareem-image-side {
        height: 50vh;
        min-height: 400px;
    }
    
    .kareem-text-side {
        padding: 3rem 2rem;
        min-height: 50vh;
    }
    
    .kareem-buttons {
        justify-content: center;
    }
    
    [data-theme="dark"] .kareem-text-side::before {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Mobile: Text overlay on Kareem image */
    .kareem-profile-container {
        position: relative;
        height: 100vh;
    }
    
    .kareem-image-side {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }
    
    .kareem-text-side {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
        background: rgba(0, 0, 0, 0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem 1.5rem;
    }
    
    .kareem-text-content {
        text-align: center;
        color: white;
        max-width: 90%;
    }
    
    .kareem-rotating-text {
        color: white;
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .kareem-intro-text {
        color: white;
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    .kareem-emphasis {
        color: white;
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
        font-weight: 600;
    }
    
    .kareem-closing {
        color: white;
        font-size: 1.2rem;
        margin-bottom: 2rem;
        font-style: italic;
    }
    
    .kareem-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
    
    .kareem-buttons .btn {
        width: 80%;
        max-width: 250px;
        text-align: center;
        padding: 12px 20px;
    }
    
    .rotating-skills {
        color: #ba68c8;
        font-weight: bold;
    }
    
    .kareem-text-side {
        padding: 2rem 1.5rem;
    }
    
    .kareem-rotating-text {
        font-size: 1.3rem; /* Increased from 1.1rem */
    }
    
    .kareem-intro-text {
        font-size: 1.3rem; /* Increased from 1.1rem */
    }
    
    .kareem-emphasis {
        font-size: 1.4rem; /* Increased from 1.2rem */
    }
    
    .kareem-closing {
        font-size: 1.3rem; /* Increased from 1.1rem */
    }
    
    .kareem-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .kareem-image-side {
        height: 40vh;
        min-height: 300px;
    }
    
    .scroll-hint {
        bottom: 1rem;
    }
}

/* Cloud Video Section */
.cloud-video-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Cloud Video Background */
.cloud-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.cloud-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Section Content Layout */
.cloud-section-content {
    width: 100%;
    height: 100vh;
    display: flex;
    position: relative;
}

/* Left Side (Video visible) */
.cloud-left-side {
    width: 50%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Right Side (Black background) */
.cloud-right-side {
    width: 50%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: white;
}

/* Separator Line (fading from right to left) */
.cloud-separator {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.2) 80%,
        transparent 100%
    );
    transform: translateX(-50%);
}

/* Responsive Design for Cloud Section */
@media (max-width: 768px) {
    .cloud-section-content {
        flex-direction: column;
    }
    
    .cloud-left-side,
    .cloud-right-side {
        width: 100%;
        height: 50vh;
    }
    
    .cloud-separator {
        left: 0;
        top: 50%;
        width: 100%;
        height: 2px;
        background: linear-gradient(to right, 
            transparent 0%,
            rgba(255, 255, 255, 0.8) 20%,
            rgba(255, 255, 255, 1) 50%,
            rgba(255, 255, 255, 0.8) 80%,
            transparent 100%
        );
        transform: translateY(-50%);
    }
}

/* Introduction Section */
.intro-section {
    padding: 100px 0;
    background-color: var(--bg-color);
    text-align: center;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    color: var(--text-color);
}

.intro-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
    color: var(--text-color);
}

.intro-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.4s both;
    color: var(--text-color);
}

.highlight {
    color: #ffd700;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn {
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background-color: #8e44ad;
    color: white;
}

.btn-primary:hover {
    background-color: #7d3c98;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #8e44ad;
    transform: translateY(-2px);
}

.btn-resume {
    background: linear-gradient(135deg, #6a1b9a 0%, #8e44ad 100%);
    color: white;
    border: 2px solid #6a1b9a;
    box-shadow: 0 4px 15px rgba(106, 27, 154, 0.3);
    transition: all 0.3s ease;
}

.btn-resume:hover {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
    border-color: #8e44ad;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(142, 68, 173, 0.4);
}

.btn-resume:active {
    transform: translateY(0px);
    box-shadow: 0 2px 10px rgba(106, 27, 154, 0.3);
}

/* Rotating Title Animation */
.rotating-title {
    font-size: 1.8rem;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-text {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(45deg, #2d0a3d, #4a1458, #3d1a4f, #2a0845);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
    animation: titleColorShift 4s ease-in-out infinite;
    letter-spacing: 2px;
    font-weight: bold;
}

.title-text::after {
    content: '|';
    color: #3d1a4f;
    animation: blink 0.8s infinite;
    font-weight: 100;
    margin-left: 5px;
}

.title-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #00ff41, #0080ff, #8000ff, #ff0080);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.1;
    animation: digitalScan 3s linear infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Profile Photo Styles */
.profile-photo {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #8e44ad;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Education Section */
.education {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.education-content {
    max-width: 1000px;
    margin: 0 auto;
}

.education-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.education-logo {
    flex-shrink: 0;
    margin-right: 2rem;
}

.edu-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

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

.education-details h4 {
    color: #8e44ad;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.education-date {
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 1rem;
}

.education-description {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.education-skills {
    color: #666;
    font-size: 0.9rem;
}

/* Certifications Section */
.certifications {
    padding: 5rem 0;
    background: var(--bg-color);
}

.certifications-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
    min-height: 550px;
}

.certification-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 600px;
    width: 100%;
    min-height: 550px; /* Changed from fixed height to min-height */
    position: relative;
}

.certification-badge {
    position: relative;
    width: 280px;
    height: 280px;
    margin-bottom: 2.5rem; /* Reduced from 4rem to bring content closer */
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-image {
    width: 280px;
    height: 280px;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: scale(1);
    transition: opacity 0.3s ease-in-out;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cert-image.active {
    opacity: 1;
    transform: scale(1);
}

.certification-info {
    max-width: 500px;
    width: 100%;
    min-height: 140px; /* Changed from fixed height to min-height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-shrink: 0;
}

.cert-title {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1.5rem; /* Reduced from 2rem to bring description closer */
    font-weight: 600;
    min-height: 2.5rem; /* Changed from fixed height to min-height */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cert-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    min-height: 70px; /* Changed from fixed height to min-height */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    overflow: visible; /* Changed from hidden to visible */
    flex-shrink: 0;
}

.carousel-btn {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.3);
    position: absolute;
    top: 140px;
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(142, 68, 173, 0.4);
}

.prev-btn {
    left: -80px;
}

.next-btn {
    right: -80px;
}

/* Removed certification indicators */

/* Removed indicator styles */

/* Removed active indicator styles */

/* Removed hover indicator styles */

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.8s both;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #8e44ad;
}

/* About Section */
/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--secondary-bg);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

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

.about-text p strong {
    color: var(--text-color);
    font-weight: 600;
}

.about-closing {
    font-style: italic;
    color: var(--text-color);
    font-weight: 500;
    border-left: 4px solid #8e44ad;
    padding-left: 1rem;
    margin: 2rem 0;
    background-color: var(--secondary-bg);
    padding: 1rem 1rem 1rem 2rem;
    border-radius: 5px;
}

.skills {
    margin-top: 3rem;
    text-align: center;
}

.skills h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.skill-tag {
    background-color: #8e44ad;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--secondary-bg);
}

/* Technologies Section */
.technologies-section {
    padding: 100px 0;
    background-color: var(--secondary-bg);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    margin-bottom: 0;
    opacity: 1;
    visibility: visible;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background-color: var(--secondary-bg);
    opacity: 1;
    visibility: visible;
}

.technologies-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Fade-in animations */
.fade-in {
    opacity: 1; /* Changed from 0 to 1 to make elements visible by default */
    transform: translateY(0); /* Changed from translateY(30px) to 0 */
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Override for technologies section to ensure it's always visible */
.technologies-section .fade-in {
    opacity: 1;
    transform: none;
}

.technologies-section .fade-in-delay-1 {
    opacity: 1;
    transform: none;
}

.technologies-section .fade-in-delay-2 {
    opacity: 1;
    transform: none;
}

.fade-in-delay-1 {
    transition-delay: 0.2s;
}

.fade-in-delay-2 {
    transition-delay: 0.4s;
}

.fade-in-delay-3 {
    transition-delay: 0.6s;
}

/* Technology Icons Marquee */
.tech-marquee-container {
    margin-top: 3rem;
    margin-bottom: 4rem;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.05) 0%, 
        rgba(248, 249, 250, 0.8) 20%, 
        rgba(248, 249, 250, 0.8) 80%, 
        rgba(52, 152, 219, 0.05) 100%);
    padding: 5rem 4rem;
    border-radius: 20px;
    width: calc(100% + 4rem);
    margin-left: -2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.tech-marquee {
    display: flex;
    animation: scroll-left 60s linear infinite;
    width: fit-content;
}

.tech-icons {
    display: flex;
    align-items: center;
    gap: 7rem;
    white-space: nowrap;
    padding-right: 7rem;
}

.tech-icons i {
    font-size: 4rem;
    color: #95a5a6;
    transition: all 0.4s ease;
    opacity: 0.8;
    flex-shrink: 0;
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.tech-icons i:hover {
    color: #8e44ad;
    opacity: 1;
    transform: scale(1.4);
}

/* Custom tech icon styling for images */
.custom-tech-icon {
    width: 5.5rem !important;
    height: 5.5rem !important;
    object-fit: contain;
    opacity: 0.8;
    transition: all 0.4s ease;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    filter: grayscale(100%) brightness(0.7) contrast(0.8);
}

.custom-tech-icon:hover {
    opacity: 1;
    transform: scale(1.4);
    filter: grayscale(0%) brightness(1) contrast(1);
}

/* Technology Lists */
.tech-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tech-list-column {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px var(--shadow);
    border: 1px solid var(--border-color);
}

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

.tech-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.4;
    position: relative;
    padding-left: 1.5rem;
    transition: all 0.3s ease;
}

.tech-list li:last-child {
    border-bottom: none;
}

.tech-list li:before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #8e44ad;
    font-size: 0.8rem;
    top: 0.9rem;
}

.tech-list li:hover {
    color: #8e44ad;
    padding-left: 2rem;
    background-color: rgba(142, 68, 173, 0.05);
    border-radius: 5px;
}

/* Pause animation on hover */
.tech-marquee-container:hover .tech-marquee {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100%));
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .technologies-section {
        width: 100%;
        margin-left: 0;
    }
    
    .technologies-section .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .tech-marquee-container {
        padding: 3.5rem 2rem;
        margin-top: 2rem;
        margin-bottom: 3rem;
        width: calc(100% + 2rem);
        margin-left: -1rem;
    }
    
    .tech-icons {
        gap: 5rem;
        padding-right: 5rem;
    }
    
    /* Certifications responsive */
    .certifications-carousel {
        flex-direction: column;
        padding: 1rem 0;
        min-height: 450px; /* Increased from 400px to ensure button visibility */
        /* Add padding to accommodate buttons */
        padding-left: 70px; /* Increased from 60px */
        padding-right: 70px; /* Increased from 60px */
        padding-bottom: 2rem; /* Add bottom padding for any content */
    }
    
    .certification-display {
        min-height: 450px; /* Changed from fixed height to min-height */
    }
    
    .carousel-btn {
        top: 80px; /* Moved much closer to the image center */
        /* Make buttons smaller on mobile */
        width: 45px;
        height: 45px;
        font-size: 1rem;
        z-index: 10; /* Ensure buttons are above other content */
    }
    
    .prev-btn {
        left: -55px; /* Adjusted to ensure full visibility */
    }
    
    .next-btn {
        right: -55px; /* Adjusted to ensure full visibility */
    }
    
    .certification-badge {
        width: 220px;
        height: 220px;
        margin-bottom: 2rem; /* Reduced from 3rem for tighter mobile layout */
    }
    
    .cert-image {
        width: 220px;
        height: 220px;
    }
    
    .certification-info {
        min-height: 140px; /* Changed from fixed height to min-height */
        margin-bottom: 20px; /* Add bottom margin for breathing room */
    }
    
    .cert-title {
        font-size: 1.5rem;
        min-height: 2rem; /* Changed from fixed height to min-height */
        margin-bottom: 1rem; /* Reduced from 1.5rem for tighter spacing */
    }
    
    .cert-description {
        font-size: 1rem;
        min-height: 60px; /* Changed from fixed height to min-height */
    }
    
    .tech-icons i {
        font-size: 3rem;
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .custom-tech-icon {
        width: 4.5rem !important;
        height: 4.5rem !important;
    }
    
    .tech-marquee {
        animation-duration: 45s;
    }
    
    .tech-lists {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
    }
    
    .tech-list-column {
        padding: 2rem;
    }
    
    .tech-list li {
        font-size: 1rem;
        padding: 0.7rem 0;
        padding-left: 1.8rem; /* Increased from default to prevent arrow overlap */
    }
    
    .tech-list li:before {
        left: 0.3rem; /* Position arrow away from text */
        top: 0.8rem; /* Adjust vertical position */
    }
}

@media (max-width: 480px) {
    .technologies-section {
        padding: 80px 0;
    }
    
    .technologies-section .container {
        padding: 0 0.5rem;
    }
    
    .tech-marquee-container {
        padding: 2.5rem 1rem;
        border-radius: 15px;
        margin-bottom: 2rem;
        width: calc(100% + 1rem);
        margin-left: -0.5rem;
    }
    
    .tech-icons {
        gap: 4rem;
        padding-right: 4rem;
    }
    
    .tech-icons i {
        font-size: 2.5rem;
        width: 3rem;
        height: 3rem;
    }
    
    .custom-tech-icon {
        width: 4rem !important;
        height: 4rem !important;
    }
    
    .tech-marquee {
        animation-duration: 40s;
    }
    
    .tech-lists {
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .tech-list-column {
        padding: 1.5rem;
        border-radius: 10px;
    }
    
    .tech-list li {
        font-size: 0.95rem;
        padding: 0.6rem 0;
        padding-left: 1.5rem; /* Increased from 1.2rem to give more space for arrow */
    }
    
    .tech-list li:before {
        font-size: 0.7rem;
        top: 0.7rem;
        left: 0.3rem; /* Move arrow slightly to the right */
    }
}

/* Articles Section */
.articles {
    padding: 100px 0;
    background-color: var(--bg-color);
    opacity: 1;
    visibility: visible;
}

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

.article-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
}

.article-thumbnail {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-category {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.article-category.forbes {
    background: linear-gradient(135deg, #6a1b9a 0%, #8e44ad 100%);
    box-shadow: 0 2px 8px rgba(106, 27, 154, 0.3);
}

.article-category.academic {
    background-color: #8e44ad;
}

.article-content {
    padding: 1.5rem;
}

.article-type {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.article-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.4;
}

.article-publication {
    color: #8e44ad;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.article-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #8e44ad;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.article-link:hover {
    background-color: #7d3c98;
    transform: translateY(-2px);
}

.article-link.pdf {
    background: linear-gradient(135deg, #6a1b9a 0%, #8e44ad 100%);
    border: 2px solid #6a1b9a;
    box-shadow: 0 4px 15px rgba(106, 27, 154, 0.3);
}

.article-link.pdf:hover {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
    border-color: #8e44ad;
    box-shadow: 0 6px 20px rgba(142, 68, 173, 0.4);
    transform: translateY(-2px);
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background-color: var(--secondary-bg);
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
}

.project-image {
    height: 200px;
    background: linear-gradient(45deg, #8e44ad, #2c3e50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-image span {
    z-index: 2;
    position: relative;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.project-description {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background-color: var(--secondary-bg);
    color: var(--text-color);
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
}

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

.project-link {
    text-decoration: none;
    color: #8e44ad;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #7d3c98;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--secondary-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-info p {
    color: var(--text-color);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
}

.contact-item i {
    color: #8e44ad;
    width: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ecf0f1;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8e44ad;
}

.contact-form button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.contact-form button:disabled:hover {
    background-color: #95a5a6;
    transform: none;
}

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

.footer-logo {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

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

/* Dark mode responsive - medium screens */
@media (max-width: 900px) {
    [data-theme="dark"] .hero.video-hero .hero-main-text {
        font-size: 3.5rem;
        letter-spacing: 1.5px;
    }
}

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

/* Clean animations without glitch effects */
@keyframes digitalScan {
    0% {
        background-position: -200% 0;
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    50% {
        background-position: 200% 0;
        opacity: 0.1;
    }
    100% {
        background-position: 400% 0;
        opacity: 0;
    }
}

@keyframes titleColorShift {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 50% 100%;
    }
    75% {
        background-position: 100% 0%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes cursorColorShift {
    0% {
        color: #3d1a4f;
    }
    25% {
        color: #2d0a3d;
    }
    50% {
        color: #4a1458;
    }
    75% {
        color: #2a0845;
    }
    100% {
        color: #3d1a4f;
    }
}

@keyframes shimmerGlow {
    0% {
        background-position: -200% 0;
        opacity: 0;
    }
    20% {
        opacity: 0.6;
    }
    40% {
        background-position: 0% 0;
        opacity: 1;
    }
    60% {
        opacity: 0.8;
    }
    80% {
        background-position: 200% 0;
        opacity: 0.4;
    }
    100% {
        background-position: 300% 0;
        opacity: 0;
    }
}

/* Mobile Overflow Prevention - Critical for Touch Devices */
@media (max-width: 768px) {
    /* Prevent horizontal scrolling and diagonal swipe issues */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        position: relative;
    }
    
    /* Prevent horizontal bounce and overscroll */
    body {
        overscroll-behavior-x: none;
        overscroll-behavior-y: auto;
        /* Prevent rubber band effect on iOS */
        -webkit-overflow-scrolling: touch;
        /* Lock horizontal position */
        touch-action: pan-y pinch-zoom;
    }
    
    /* Ensure all containers respect viewport width */
    * {
        max-width: 100vw !important;
        box-sizing: border-box;
    }
    
    /* Prevent any element from causing horizontal overflow */
    .container, .hero, .section, main, header, footer {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    /* Fix hero section spacing - Add proper top padding for mobile */
    .hero {
        padding-top: 100px !important; /* Account for fixed navbar + extra spacing */
        padding-bottom: 40px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Specific fix for light mode hero to prevent cramped text */
    .hero.original-hero {
        padding-top: 120px !important; /* Extra spacing for light mode */
    }
    
    /* Dark mode hero can have slightly less padding since video provides visual separation */
    .hero.video-hero {
        padding-top: 100px !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--card-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

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

    .hero-main-text {
        font-size: 3rem;
        white-space: normal;
    }
    
    /* Dark mode responsive - tablet */
    [data-theme="dark"] .hero.video-hero .hero-main-text {
        font-size: 3rem;
        white-space: normal;
        letter-spacing: 1px;
    }

    .intro-content h1 {
        font-size: 2.5rem;
    }

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

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

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

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

    .skill-tags {
        justify-content: center;
    }

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

    .education-logo {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

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

@media (max-width: 480px) {
    /* Enhanced mobile hero spacing for very small screens */
    .hero {
        padding-top: 110px !important; /* Extra padding for small screens */
        padding-bottom: 50px;
    }
    
    /* Light mode needs even more space on small screens */
    .hero.original-hero {
        padding-top: 130px !important;
    }
    
    /* Certification buttons fix for very small screens */
    .certifications-carousel {
        padding-left: 60px; /* Increased from 50px */
        padding-right: 60px; /* Increased from 50px */
        min-height: 480px; /* Increased for small screens */
        padding-bottom: 2rem; /* Add bottom padding */
    }
    
    .certification-display {
        min-height: 480px; /* Changed from fixed height to min-height */
    }
    
    .carousel-btn {
        top: 70px; /* Even closer to image center for small screens */
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
        z-index: 10; /* Ensure visibility */
    }
    
    .prev-btn {
        left: -50px; /* Adjusted for better visibility */
    }
    
    .next-btn {
        right: -50px; /* Adjusted for better visibility */
    }
    
    .certification-badge {
        width: 180px;
        height: 180px;
    }
    
    .cert-image {
        width: 180px;
        height: 180px;
    }
    
    .certification-info {
        min-height: 160px; /* Changed from fixed height to min-height */
        margin-bottom: 30px; /* Extra bottom margin */
    }
    
    .hero-main-text {
        font-size: 2rem;
        white-space: normal;
    }
    
    /* Dark mode responsive - mobile */
    [data-theme="dark"] .hero.video-hero .hero-main-text {
        font-size: 2rem;
        white-space: normal;
        letter-spacing: 0.5px;
        line-height: 1.1;
    }

    .intro-content h1 {
        font-size: 2rem;
    }

    .intro-content h2 {
        font-size: 1.3rem;
    }

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

/* Alternative mobile layout for certification buttons on very small screens */
@media (max-width: 360px) {
    .certifications-carousel {
        padding-left: 40px;
        padding-right: 40px;
        min-height: 500px; /* Increased for very small screens */
    }
    
    .certification-display {
        min-height: 500px; /* Changed from fixed height to min-height */
    }
    
    .carousel-btn {
        top: 60px; /* Closest to image center for very small screens */
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .prev-btn {
        left: -40px;
    }
    
    .next-btn {
        right: -40px;
    }
    
    .certification-badge {
        width: 160px;
        height: 160px;
    }
    
    .cert-image {
        width: 160px;
        height: 160px;
    }
    
    .certification-info {
        min-height: 180px; /* Changed from fixed height to min-height */
        margin-bottom: 40px; /* Maximum bottom margin */
    }
    
    .cert-title {
        font-size: 1.3rem;
    }
    
    .cert-description {
        font-size: 0.9rem;
    }
}

/* Signature logo styling for project cards only */
.project-signature {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 5;
}

.project-signature .logo-text {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Mobile adjustments for project signatures */
@media (max-width: 768px) {
    .project-signature .logo-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .project-signature .logo-text {
        font-size: 0.7rem;
    }
}

/* Cool Logo Styling */
.logo-link {
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    display: flex;
    gap: 2px;
    position: relative;
    overflow: hidden;
}

.logo-letter {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.logo-letter:hover {
    transform: translateY(-3px) scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

.logo-letter:nth-child(1) {
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-letter:nth-child(2) {
    animation: logoFloat 3s ease-in-out infinite 0.5s;
}

.logo-subtitle {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: -2px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-align: center;
}

/* Dark mode logo styling with color changing animation */
[data-theme="dark"] .logo-letter {
    background: linear-gradient(45deg, #6a1b9a, #8e44ad, #5d4e75, #7b68ee, #ba68c8);
    background-size: 500% 500%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoFloat 3s ease-in-out infinite, logoColorChange 2s ease-in-out infinite;
}

[data-theme="dark"] .logo-subtitle {
    background: linear-gradient(45deg, #6a1b9a, #8e44ad, #5d4e75, #7b68ee, #ba68c8);
    background-size: 500% 500%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoColorChange 2s ease-in-out infinite 0.5s;
}

/* Fast color changing animation for logo */
@keyframes logoColorChange {
    0% { background-position: 0% 50%; }
    25% { background-position: 25% 50%; }
    50% { background-position: 50% 50%; }
    75% { background-position: 75% 50%; }
    100% { background-position: 100% 50%; }
}

/* Logo hover effects */
.logo-link:hover .logo-text {
    transform: scale(1.05);
}

.logo-link:hover .logo-subtitle {
    opacity: 1;
    color: #667eea;
    transform: translateY(-1px);
}

[data-theme="dark"] .logo-link:hover .logo-subtitle {
    background: linear-gradient(45deg, #ba68c8, #667eea, #8e44ad);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoColorChange 1.5s ease-in-out infinite;
}

/* Logo animations */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-2px);
    }
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.6));
    }
}

/* Logo pulse effect on page load */
.logo-container {
    animation: logoPulse 2s ease-out 1s;
}

@keyframes logoPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Brand Signature - Same styling as navigation logo */
.brand-signature {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.brand-signature:hover {
    opacity: 1;
    transform: scale(1.05);
}

.signature-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.signature-logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 900;
    display: flex;
    gap: 2px;
    position: relative;
    overflow: hidden;
}

.signature-logo-letter {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.signature-logo-letter:hover {
    transform: translateY(-3px) scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

.signature-logo-letter:nth-child(1) {
    animation: logoFloat 3s ease-in-out infinite;
}

.signature-logo-letter:nth-child(2) {
    animation: logoFloat 3s ease-in-out infinite 0.5s;
}

/* Dark mode brand signature styling */
[data-theme="dark"] .signature-logo-letter {
    background: linear-gradient(45deg, #6a1b9a, #8e44ad, #5d4e75, #7b68ee, #ba68c8);
    background-size: 500% 500%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoFloat 3s ease-in-out infinite, logoColorChange 2s ease-in-out infinite;
}

/* Mobile adjustments for brand signature */
@media (max-width: 768px) {
    .brand-signature {
        top: 15px;
        right: 15px;
    }
    
    .signature-logo-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .brand-signature {
        top: 10px;
        right: 10px;
    }
    
    .signature-logo-text {
        font-size: 0.9rem;
    }
}

/* Mobile logo adjustments */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-subtitle {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.3rem;
    }
    
    .logo-subtitle {
        font-size: 0.55rem;
        margin-left: 1px;
    }
}
.hero {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.cloud-intro-section {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    opacity: 0;
    transform: translateY(50px);
}

.cloud-intro-section.fade-in-scroll {
    opacity: 1;
    transform: translateY(0);
}

.hero.fade-out-scroll {
    opacity: 0;
    transform: translateY(-30px);
}
.theme-toggle-sticky {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    animation: floatIn 1s ease-out 2s both;
}

.theme-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 160px;
    justify-content: center;
}

.theme-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.theme-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.theme-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.theme-icon {
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-text {
    font-family: 'Orbitron', monospace;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* Dark mode button styling */
[data-theme="dark"] .theme-btn {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    box-shadow: 0 8px 25px rgba(15, 52, 96, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .theme-btn:hover {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 50%, #1a1a2e 100%);
    box-shadow: 0 12px 35px rgba(15, 52, 96, 0.6);
}

[data-theme="dark"] .theme-icon-container {
    background: rgba(255, 255, 255, 0.15);
}

/* Icon rotation animations */
.theme-icon.rotate-out {
    transform: rotateY(90deg) scale(0.8);
    opacity: 0;
}

.theme-icon.rotate-in {
    transform: rotateY(0deg) scale(1);
    opacity: 1;
}

/* Float in animation */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Pulse effect for attention */
@keyframes themePulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.8), 0 0 0 10px rgba(102, 126, 234, 0.1);
    }
}

@keyframes themePulseDark {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(15, 52, 96, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px rgba(15, 52, 96, 0.8), 0 0 0 10px rgba(15, 52, 96, 0.1);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .theme-toggle-sticky {
        bottom: 20px;
        right: 20px;
    }
    
    .theme-btn {
        padding: 12px 20px;
        min-width: 140px;
        font-size: 0.85rem;
    }
    
    .theme-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .theme-btn {
        padding: 10px 16px;
        min-width: 120px;
        font-size: 0.8rem;
    }
    
    .theme-icon-container {
        width: 20px;
        height: 20px;
    }
    
    .theme-icon {
        font-size: 12px;
    }
}
/* Clean Skills Progress Bars - No Hover Effects */
.skills-progress-section {
    margin-bottom: 4rem;
    padding: 0 2rem;
}

.skills-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 3rem;
    letter-spacing: 0.5px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-3px);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-name {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
    letter-spacing: 0.3px;
}

.skill-percentage {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    color: #8e44ad;
}

[data-theme="dark"] .skill-percentage {
    color: #ba68c8;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--secondary-bg);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ba68c8 100%);
    border-radius: 10px;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

[data-theme="dark"] .skill-progress {
    background: linear-gradient(135deg, #ba68c8 0%, #667eea 50%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(186, 104, 200, 0.3);
}

/* Mobile responsive skills */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skills-progress-section {
        padding: 0 1rem;
    }
    
    .skills-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .skill-item {
        padding: 1.2rem;
    }
    
    .skill-name {
        font-size: 0.9rem;
    }
    
    .skill-percentage {
        font-size: 1rem;
    }
    
    .skill-bar {
        height: 6px;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 0.8rem;
    }
    
    .skill-name {
        font-size: 0.85rem;
    }
    
    .skill-percentage {
        font-size: 0.9rem;
    }
}
/* Enhanced Article Link Styling for Different File Types */
.article-link.document {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.article-link.document:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: scale(1.05);
}

.article-link i.fa-file-pdf {
    color: white !important;
}

.article-link i.fa-file-powerpoint {
    color: white !important;
}

.article-link i.fa-file {
    color: #7f8c8d;
}

/* Article buttons - All purple styling */
.article-link {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: auto;
    align-self: flex-start;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.3);
}

.article-link:hover {
    background: linear-gradient(135deg, #7d3c98 0%, #8e44ad 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(142, 68, 173, 0.4);
}

/* Override document class to also be purple */
.article-link.document {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%) !important;
    color: white !important;
}

.article-link.document:hover {
    background: linear-gradient(135deg, #7d3c98 0%, #8e44ad 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(142, 68, 173, 0.4);
}
/* No articles fallback styling */
.no-articles {
    text-align: center;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px var(--shadow);
}

.no-articles p {
    color: var(--text-color);
    font-size: 1.1rem;
    opacity: 0.8;
}
