/* School logo styling in Education section */
/* Remove background from all education logos */
.edu-item img {
    background: transparent !important;
    mix-blend-mode: multiply;
}

/* Service Cards - Modern Micro-interactions */
.service-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all var(--duration-slow) var(--ease-spring);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    color: #2d3748;
    will-change: transform, box-shadow;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform var(--duration-slow) var(--ease-smooth);
    pointer-events: none;
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-card:hover {
    transform: translate3d(0, var(--translate-hover), 0) scale(var(--scale-hover)) rotate(var(--rotate-hover));
    box-shadow: 
        0 40px 80px rgba(0, 123, 255, 0.15), 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 123, 255, 0.1);
    border-color: rgba(0, 123, 255, 0.2);
    background: linear-gradient(145deg, #ffffff, #f0f8ff);
}

.service-card:active {
    transform: translate3d(0, -2px, 0) scale(var(--scale-press));
    transition: transform var(--duration-fast) var(--ease-smooth);
}
@keyframes fadeInLogo {
    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* Slide-in animation for hero text */
.hero .content .info {
    opacity: 0;
    transform: translateX(-60px);
    animation: slideInHeroText 1s ease forwards;
    animation-delay: 0.4s;
}

@keyframes slideInHeroText {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.contact-me a {
    /* ...existing animation styles... */
    transition: transform 0.2s, color 0.2s;
    color: #222;
}

.contact-me a:hover {
    transform: scale(1.18);
    color: #0077b6;
}
/* Bounce-in animation for contact-me links on landing page */
.contact-me a {
    opacity: 0;
    transform: scale(0.7);
    animation: bounceIn 0.7s cubic-bezier(.68,-0.55,.27,1.55) forwards;
    animation-delay: 0.8s;
    display: inline-block;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.7);
    }
    60% {
        opacity: 1;
        transform: scale(1.15);
    }
    80% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
/* Fade-in animation for header and section titles */
header, .header-info h4, .header-info h6 {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.2s;
}

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

/* Slide-in animation for grid items */
.grid-item {
    opacity: 0;
    transform: translateY(40px);
    animation: slideInGrid 0.8s ease forwards;
    animation-delay: 0.6s;
}

@keyframes slideInGrid {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Slide-in animation for person image */
.person-img {
    opacity: 0;
    transform: translateX(60px);
    animation: slideInPerson 1s ease forwards;
    animation-delay: 0.5s;
}

@keyframes slideInPerson {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* Modern Animation System - CSS Custom Properties */
:root {
    /* Animation Timing Functions */
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.27, 1.55);
    --ease-elastic: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Animation Durations */
    --duration-fast: 0.2s;
    --duration-medium: 0.4s;
    --duration-slow: 0.8s;
    --duration-slower: 1.2s;
    
    /* Animation Delays */
    --delay-xs: 0.1s;
    --delay-sm: 0.2s;
    --delay-md: 0.4s;
    --delay-lg: 0.6s;
    
    /* Transform Values */
    --scale-hover: 1.05;
    --scale-press: 0.95;
    --translate-hover: -8px;
    --rotate-hover: 2deg;
    
    /* Color Transitions */
    --color-transition: color 0.3s var(--ease-smooth);
    --bg-transition: background 0.3s var(--ease-smooth);
    --shadow-transition: box-shadow 0.3s var(--ease-smooth);
}

/* Advanced Modern Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 60px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes slideInSpring {
    from {
        opacity: 0;
        transform: translate3d(-100px, 0, 0) scale(0.8) rotate(-5deg);
    }
    60% {
        opacity: 1;
        transform: translate3d(10px, 0, 0) scale(1.05) rotate(1deg);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    }
}

@keyframes morphIn {
    from {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(0.3) rotate(45deg);
        border-radius: 50%;
    }
    50% {
        opacity: 0.8;
        transform: translate3d(0, 0, 0) scale(1.1) rotate(5deg);
        border-radius: 20%;
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
        border-radius: 16px;
    }
}

@keyframes floatGentle {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    25% {
        transform: translate3d(-2px, -6px, 0) rotate(0.5deg);
    }
    50% {
        transform: translate3d(0, -8px, 0) rotate(0deg);
    }
    75% {
        transform: translate3d(2px, -6px, 0) rotate(-0.5deg);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
    }
    50% {
        box-shadow: 0 4px 30px rgba(0, 123, 255, 0.6), 0 0 0 10px rgba(0, 123, 255, 0.1);
    }
}

@keyframes textReveal {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
        clip-path: inset(100% 0 0 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        clip-path: inset(0 0 0 0);
    }
}

@keyframes shimmerSweep {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

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

/* Smooth transitions for theme switching */
*, *::before, *::after {
    transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                color 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Optimize for smooth scrolling and animations */
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 50%, #e2e8f0 100%);
    background-attachment: fixed;
    padding-top: 7.5rem; /* Account for larger fixed navbar */
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    /* Improve scroll performance */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

header {
    margin-top: 0;
    height: 5.5rem;
    opacity: 1; /* Make visible by default */
    transform: translateY(0); /* No initial offset */
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.6s ease, box-shadow 0.6s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3, #28a745);
    transition: width 0.1s ease;
    z-index: 1001;
}

/* Navbar loaded animation */
header.nav-loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll effect */
header.nav-scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-top: 0;
    height: 5.5rem;
    padding: 1.75rem 0;
}

/* Change text color when scrolled */
header.nav-scrolled .nav-links a {
    color: white !important;
}

/* Nav links animation */
.nav-links li, .nav-links .btn {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.5s ease;
}

.nav-links li.link-loaded, .nav-links .btn.link-loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced navbar link hover with magnetic effect */
.nav-links a {
    transition: all var(--duration-medium) var(--ease-spring);
    position: relative;
    overflow: hidden;
    color: #2d3748;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    display: inline-block;
    will-change: transform, background, color;
    cursor: pointer;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0077b6, #48cae4);
    transition: all var(--duration-medium) var(--ease-spring);
    transform: translateX(-50%);
}

.nav-links a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.1), rgba(72, 202, 228, 0.1));
    border-radius: inherit;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--duration-medium) var(--ease-bounce);
    z-index: -1;
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a:hover::after {
    opacity: 1;
    transform: scale(1);
}

.nav-links a:hover {
    color: #0077b6;
    transform: translateY(-2px) scale(1.05);
    text-shadow: 0 2px 8px rgba(0, 119, 182, 0.3);
}

.nav-links a:active {
    transform: translateY(0) scale(0.98);
}

/* Contact button enhancement - Morphing effect */
.nav-links .btn {
    background: linear-gradient(45deg, #0077b6, #48cae4);
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    transition: all var(--duration-medium) var(--ease-spring);
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.4);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    will-change: transform, box-shadow, border-radius;
}

.nav-links .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left var(--duration-slow) var(--ease-smooth);
}

.nav-links .btn:hover::before {
    left: 100%;
}

.nav-links .btn:hover {
    transform: translateY(-4px) scale(1.08) rotate(-1deg);
    box-shadow: 
        0 8px 25px rgba(0, 119, 182, 0.5),
        0 0 0 8px rgba(0, 119, 182, 0.1);
    background: linear-gradient(45deg, #48cae4, #0077b6, #ff6b6b);
    background-size: 200% 200%;
    animation: gradientShift 2s ease infinite;
    border-radius: 15px;
}

.nav-links .btn:active {
    transform: translateY(-2px) scale(1.02);
    transition: transform var(--duration-fast) var(--ease-smooth);
}

.nav-links .btn::after {
    display: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
   

.container{
    width: min(90%,1120px);
    margin-inline: auto;
}
.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}

/* Theme Toggle */
.theme-toggle {
    margin-right: auto;
}

#theme-toggle-btn {
    background: rgba(45, 55, 72, 0.9);
    border: 1px solid rgba(45, 55, 72, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#theme-toggle-btn:hover {
    background: rgba(45, 55, 72, 1);
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Dark Mode Styles */
body.dark-mode {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 50%, #2b6cb0 100%);
    background-attachment: fixed;
    color: #e0e0e0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .service-card {
    background: linear-gradient(145deg, rgba(45, 55, 72, 0.8), rgba(26, 32, 44, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(43, 108, 176, 0.3), 0 5px 15px rgba(26, 32, 44, 0.2);
    backdrop-filter: blur(20px);
    color: #e0e0e0;
}

body.dark-mode .service-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 25px 50px rgba(43, 108, 176, 0.4), 0 10px 20px rgba(26, 32, 44, 0.3);
    background: linear-gradient(145deg, rgba(45, 55, 72, 0.9), rgba(26, 32, 44, 0.8));
}

body.dark-mode .edu-item,
body.dark-mode .exp-item {
    background: linear-gradient(145deg, rgba(45, 55, 72, 0.8), rgba(26, 32, 44, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(43, 108, 176, 0.25), 0 5px 15px rgba(26, 32, 44, 0.15);
    color: #e0e0e0;
}

body.dark-mode .edu-item:hover {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.3), 0 8px 20px rgba(43, 108, 176, 0.25);
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.1), rgba(45, 55, 72, 0.8));
}

body.dark-mode .exp-item:hover {
    border-color: rgba(0, 123, 255, 0.4);
    box-shadow: 0 25px 45px rgba(0, 123, 255, 0.3), 0 10px 20px rgba(43, 108, 176, 0.25);
    background: linear-gradient(145deg, rgba(0, 123, 255, 0.1), rgba(45, 55, 72, 0.8));
}

body.dark-mode .exp-item.active {
    background: linear-gradient(145deg, rgba(0, 123, 255, 0.15), rgba(45, 55, 72, 0.8));
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.35), 0 5px 15px rgba(43, 108, 176, 0.2);
}

/* Dark Mode Text Styling */
body.dark-mode .service-card h3,
body.dark-mode .edu-item h4,
body.dark-mode .exp-item h4 {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark-mode .service-card p,
body.dark-mode .service-card li,
body.dark-mode .edu-item p,
body.dark-mode .exp-item p,
body.dark-mode .edu-item span,
body.dark-mode .exp-item span {
    color: #cbd5e0;
}

/* Text Elements */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #ffffff;
}

body.dark-mode p {
    color: #b0b0b0;
}

/* Hero Section */
body.dark-mode .info h1,
body.dark-mode .info h2 {
    color: #ffffff;
}

/* Override gradient text in dark mode for better visibility */
body.dark-mode .info h2 {
    background: linear-gradient(135deg, #ffffff, #48cae4, #90cdf4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .info h6 {
    color: #b0b0b0;
}

/* Cards and Containers */
body.dark-mode .edu-item,
body.dark-mode .exp-item,
body.dark-mode .blog-post {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border-color: #404040;
}

/* Education Section Dark Mode */
body.dark-mode .edu-item h6,
body.dark-mode .exp-item h6,
body.dark-mode .blog-content h5 {
    color: #ffffff;
}

body.dark-mode .edu-location,
body.dark-mode .blog-content p {
    color: #b0b0b0;
}

body.dark-mode .edu-degree {
    color: #d0d0d0;
}

/* Experience Section Dark Mode */
body.dark-mode .exp-item .exp-title h6 {
    color: #ffffff;
}

body.dark-mode .exp-item .exp-title p {
    color: #b0b0b0;
}

body.dark-mode .exp-details ul li {
    color: #c0c0c0;
}

body.dark-mode .toggle-indicator {
    color: #b0b0b0;
}

body.dark-mode .exp-item:hover .toggle-indicator {
    color: #4dabf7;
}

body.dark-mode .exp-item.active .toggle-indicator {
    color: #4dabf7;
}

/* Education Badges Dark Mode */
body.dark-mode .edu-scholarship {
    background: linear-gradient(135deg, #1e7e34, #155724);
}

body.dark-mode .edu-achievement {
    background: linear-gradient(135deg, #117a8b, #0c5460);
}

/* Section Headers Dark Mode */
body.dark-mode .header-info h4 {
    color: #ffffff;
}

body.dark-mode .header-info p {
    color: #b0b0b0;
}

body.dark-mode .header-info h6 {
    color: #d0d0d0;
}

/* Skills Section Styling */
.skills-category {
    margin-bottom: 3rem;
}

.skills-category h4 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 123, 255, 0.2);
}

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

.skill-item {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.1);
    border-left-color: #0056b3;
}

.skill-item h6 {
    color: #007bff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.skill-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Dark mode support for skills */
body.dark-mode .skills-category h4 {
    color: #e2e8f0;
    border-bottom-color: rgba(79, 172, 254, 0.3);
}

body.dark-mode .skill-item {
    background: linear-gradient(145deg, #2d3748, #1a202c);
    border-left-color: #4facfe;
}

body.dark-mode .skill-item:hover {
    border-left-color: #60a5fa;
    box-shadow: 0 20px 40px rgba(79, 172, 254, 0.15);
}

body.dark-mode .skill-item h6 {
    color: #4facfe;
}

body.dark-mode .skill-item p {
    color: #cbd5e0;
}

/* Responsive skills section */
@media (max-width: 768px) {
    .skills-block {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .skill-item {
        padding: 1.25rem;
    }
    
    .skills-category h4 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .skills-category {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .skill-item {
        padding: 1rem;
    }
    
    .skill-item h6 {
        font-size: 0.9rem;
    }
    
    .skill-item p {
        font-size: 0.85rem;
    }
}
body.dark-mode .grid-item h6 {
    color: #ffffff;
}

body.dark-mode .skill-progress {
    background: linear-gradient(145deg, rgba(45, 27, 105, 0.8), rgba(35, 35, 80, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Modern Section Titles with Reveal Effects */
.section-title {
    display: flex !important;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    opacity: 1 !important; /* Force visibility */
    transform: translateY(0) !important; /* Force no offset */
    visibility: visible !important; /* Ensure it's not hidden */
}

.title-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.1), rgba(0, 123, 255, 0.2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: "Inter", sans-serif;
    line-height: 1;
    user-select: none;
    position: relative;
    animation: numberFloat 4s ease-in-out infinite;
}

.title-number::before {
    content: attr(data-number);
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #0077b6, #48cae4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(100%);
    transition: transform var(--duration-slow) var(--ease-spring);
}

.section-title:hover .title-number::before {
    transform: translateY(0);
}

.section-title h4 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    letter-spacing: -0.025em;
    position: relative;
    overflow: hidden;
}

.section-title h4::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left var(--duration-slow) var(--ease-smooth);
}

.section-title:hover h4::before {
    left: 100%;
}

.title-accent {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0077b6, #48cae4);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    transform: scaleX(0);
    transform-origin: left;
    animation: accentGrow 1s var(--ease-spring) 0.5s forwards;
}

.title-accent::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: accentShine 2s ease-in-out infinite 1s;
}

@keyframes numberFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    50% { 
        transform: translateY(-5px) rotate(1deg); 
    }
}

@keyframes accentGrow {
    to {
        transform: scaleX(1);
    }
}

@keyframes accentShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Dark mode section titles */
body.dark-mode .title-number {
    color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .section-title h4 {
    color: #ffffff;
}

body.dark-mode .title-accent {
    background: linear-gradient(90deg, #48cae4, #0077b6);
}

/* Portfolio Section */
body.dark-mode .grid-header p {
    color: #b0b0b0;
}

/* Blog Section */
body.dark-mode .blog-date {
    background: linear-gradient(135deg, #0056b3, #003d82);
}

body.dark-mode .tag {
    background: #3a3a3a;
    color: #007bff;
    border-color: rgba(0, 123, 255, 0.4);
}

body.dark-mode .read-more {
    color: #4dabf7;
}

body.dark-mode .read-more:hover {
    color: #339af0;
}

/* Form Elements */
body.dark-mode input,
body.dark-mode textarea {
    background-color: #2a2a2a;
    border-color: #404040;
    color: #e0e0e0;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #888;
}

/* Buttons */
body.dark-mode .btn-secondary {
    color: #4dabf7;
    border-color: #4dabf7;
}

body.dark-mode .btn-secondary:hover {
    background: #4dabf7;
    color: #1a1a1a;
}

/* Navigation */
body.dark-mode header {
    background: rgba(45, 55, 72, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .nav-links a {
    color: #e0e0e0;
}

body.dark-mode .nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

body.dark-mode .nav-links .btn {
    background-color: #e0e0e0;
    color: #1a1a1a;
}

body.dark-mode .nav-links .btn:hover {
    background-color: #ffffff;
}

/* Theme Toggle */
body.dark-mode #theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffd700;
}

body.dark-mode #theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}
.navbar .mobile-logo{
    display: none;
}
.navbar .logo{
    width: 3.729375rem;
    height:3.125rem ;
    cursor: pointer;
}
.nav-links{
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 3rem;
    
}
.nav-links li{
    list-style: none;
}
.nav-links li a{
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1rem;
}
.nav-links .btn{
    text-decoration: none;
    background-color: #fff;
    color: black;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1rem;
    cursor: pointer;
}
/* Modern Hero Section with Parallax */
.hero{
    margin-top: -2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero-top{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 3rem 2rem;
    position: relative;
    z-index: 5;
    flex: 1;
    max-height: 70vh;
}

.bg-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.bg-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(248, 250, 252, 0.3) 0%,
        rgba(226, 232, 240, 0.1) 30%,
        rgba(226, 232, 240, 0.05) 70%,
        transparent 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Hide light overlay in dark mode */
body.dark-mode .bg-img::before {
    background: linear-gradient(
        135deg,
        rgba(45, 55, 72, 0.7) 0%,
        rgba(26, 32, 44, 0.6) 50%,
        rgba(43, 108, 176, 0.5) 100%
    ) !important;
}

.bg-img img{
    width: 60%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    will-change: transform;
    animation: parallaxFloat 8s ease-in-out infinite;
    opacity: 1;
    filter: none;
}

/* Dark mode background adjustments */
body.dark-mode .bg-img img {
    opacity: 1;
    filter: none;
}

/* Dark mode hero section background */
body.dark-mode .hero {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 50%, #2b6cb0 100%);
}

.hero-top .content{
    display: flex;
    flex-direction: column;
    gap: 3rem;
    flex: 1;
    max-width: 500px;
}

.person-img {
    position: relative;
    opacity: 0;
    transform: translateX(60px);
    animation: slideInPerson 1s ease forwards, floatGentle 8s ease-in-out infinite;
    animation-delay: 0.5s, 1.5s;
}

.person-img img{
    margin-right: 4rem;
    width: 400px;
    height: 600px;
    filter: drop-shadow(0 20px 40px rgba(0, 123, 255, 0.2));
    transition: filter var(--duration-slow) var(--ease-smooth);
}

.person-img:hover img {
    filter: drop-shadow(0 30px 60px rgba(0, 123, 255, 0.3)) saturate(1.1);
    transform: scale(1.02);
}

/* Modern Hero Text with Reveal Animations */
.info h1{
    margin-bottom: 1.375rem;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.info h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0077b6, #48cae4, #ff6b6b);
    transform: translateX(-100%);
    animation: slideInLine 1s var(--ease-spring) 0.5s forwards;
}

.info h2{
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2d3748, #0077b6, #48cae4);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 4s ease infinite;
    position: relative;
}

.info h6{
    font-size: 1.5rem;
    font-weight: 400;
    color: #909090;
    position: relative;
}

/* Enhanced Typing Animation */
#typing-text {
    color: #007bff;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

#typing-text::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #007bff, #48cae4);
    animation: modernBlink 1.2s ease-in-out infinite;
}

.cursor {
    color: #007bff;
    animation: modernBlink 1.2s ease-in-out infinite;
    font-weight: 300;
}

@keyframes slideInLine {
    to {
        transform: translateX(0);
    }
}

@keyframes gradientText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes modernBlink {
    0%, 50% { 
        opacity: 1; 
        transform: scale(1);
    }
    51%, 100% { 
        opacity: 0; 
        transform: scale(0.8);
    }
}

@keyframes parallaxFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    25% {
        transform: translate3d(2px, -2px, 0) scale(1.01);
    }
    50% {
        transform: translate3d(0, -3px, 0) scale(1);
    }
    75% {
        transform: translate3d(-2px, -2px, 0) scale(1.01);
    }
}
/* Modern Contact Icons with Magnetic Effect */
.contact-me{
    display: flex;
    justify-content: center;
    gap: 2rem;
    position: relative;
}

.contact-me a{
    text-decoration: none;
    color: black;
    position: relative;
    transition: all var(--duration-medium) var(--ease-spring);
    will-change: transform;
    cursor: pointer;
}

.contact-me a:hover {
    transform: translateY(-8px) scale(1.2) rotate(5deg);
}

/* Social logo images styling */
.contact-me .social-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 0.6rem;
    border-radius: 15px;
    transition: all var(--duration-medium) var(--ease-spring);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    will-change: transform, background, box-shadow;
    object-fit: contain;
    display: block;
}

.contact-me a:hover .social-logo {
    background: linear-gradient(135deg, #0077b6, #48cae4);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 
        0 15px 35px rgba(0, 119, 182, 0.4),
        0 0 0 8px rgba(0, 119, 182, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    filter: brightness(0) invert(1); /* Makes logo white on hover */
}

/* Specific hover colors for each social platform */
.contact-me a:nth-child(1):hover .social-logo {
    background: linear-gradient(135deg, #0077b5, #004182);
    animation: socialPulse 0.6s ease;
}

.contact-me a:nth-child(2):hover .social-logo {
    background: linear-gradient(135deg, #333, #24292e);
    animation: socialPulse 0.6s ease 0.1s;
}

.contact-me i{
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 1rem 1.2rem;
    border-radius: 15px;
    transition: all var(--duration-medium) var(--ease-spring);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    will-change: transform, background, box-shadow;
}

.contact-me i::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.1), rgba(72, 202, 228, 0.1));
    opacity: 0;
    transform: scale(0) rotate(45deg);
    transition: all var(--duration-medium) var(--ease-bounce);
    border-radius: inherit;
}

.contact-me a:hover i {
    background: linear-gradient(135deg, #0077b6, #48cae4);
    color: white;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 
        0 15px 35px rgba(0, 119, 182, 0.4),
        0 0 0 8px rgba(0, 119, 182, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-me a:hover i::before {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.contact-me a:active {
    transform: translateY(-4px) scale(1.05);
}

.contact-me a:nth-child(1):hover i {
    background: linear-gradient(135deg, #25d366, #128c7e);
    animation: socialPulse 0.6s ease;
}

.contact-me a:nth-child(2):hover i {
    background: linear-gradient(135deg, #0077b5, #004182);
    animation: socialPulse 0.6s ease 0.1s;
}

.contact-me a:nth-child(3):hover i {
    background: linear-gradient(135deg, #333, #24292e);
    animation: socialPulse 0.6s ease 0.2s;
}

@keyframes socialPulse {
    0%, 100% { 
        transform: scale(1.1) rotate(-5deg); 
    }
    50% { 
        transform: scale(1.2) rotate(0deg); 
    }
}
.BERRIES{
    background-color: #1d1d1d;
    display:  flex;
    flex-direction: column;
    align-items: self-start;
    padding: 1.5rem 3rem;
    color: #fff;
    gap: 1rem;
    margin-top: -2rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}
.BERRIES p{
    font-size: 0.6875rem;
    line-height: 1rem;
    color: #909090;
}
.BERRIES span{
    font-size: 0.6875rem;
    line-height: 1rem;
    color: #d7d7d7;
    border-inline: 1px solid #d7d7d7;
    padding-inline: 0.5rem;
}
.humburger{
    display: none;
}
.aboutme{
    margin-top: 8.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5rem;
}
.aboutme p{
    font-size: 0.6875rem;
    line-height: 1rem;
    color: black;
}
.header-info{
    display: flex;
    flex-direction: column;
   text-align: center;
    align-items: center;
    gap:2rem ;
}
.header-info h4{
    font-size: 2rem;
    font-weight: 700;
    border: 4px solid #000;
    padding: 0.5rem 1rem;
}
.header-info h6{
    font-size: 1rem;
    font-weight: 600;
    border-inline: 2px solid #000;
    padding-inline: 1rem;
}
.grid-about{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 2rem;
}
.grid-about h6{
    font-size: 1rem;
    font-weight: 700;
}
.grid-about .columns{
    display: flex;
    flex-direction: column;
    gap: 1rem;

}
.skills{
    margin-top: 8.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5rem;
}
.using-now, .learning-now, .other-skills{
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.using-now, .learning-now, .other-skills h4{
    font-size: 1.5rem;
}
.grid-skills{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    row-gap: 3rem;
    column-gap: 10rem;
}
.grid-item{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    align-items: center;
}
.grid-item img{
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 8px;
}
.portfolio{
    margin-top: 8.875rem;
    display: flex;
    flex-direction: column;
}
.header-img{
    height: 10rem;
    background: url(./images/Section\ Header.png) center / cover  no-repeat;
}
.grid-header{
    background-color: #1c1918;
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color:#d7d7d7;
}
.grid-header .info{
    display: flex;
    padding-bottom: .2rem;
    gap: 3rem;
    border-bottom: 1px solid #fff;
  
}
.grid-header .info p{
    font-size: 0.6875rem;
    line-height: 1rem;
}
.grid-port{
    display: grid;
    grid-template-columns: repeat(3,1fr);
   
}
.grid-port .grid-col{
    height: 20.0625rem;
}
.grid-port .col1{
    background:url(./images/Project.png) center / cover  no-repeat; ;
}
.grid-port .col2{
    background:url(./images/Rectangle\ 17.png) center / cover  no-repeat; ;
}
.grid-port .col3{
    background:url(./images/Project\ \(1\).png) center / cover  no-repeat; ;
}
.grid-port .col4{
    background:url(./images/Project\ \(2\).png) center / cover  no-repeat; ;
}
.grid-port .col5{
    background:url(./images/Project\ \(3\).png) center / cover  no-repeat; ;
}
.grid-port .col6{
    background:url(./images/Project.png) center / cover  no-repeat; ;
}
.contact{
    margin-top: 8.875rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}
form input{
    padding: .5rem  1rem;
    background-color: transparent;
    color: black;
    border: none;
    border-bottom: 4px solid black;
    border-left: 4px solid black;
    width: 60%;
}
form button{
    background-color: transparent;
    padding: .5rem  1.5rem;
    border: none;
    border-inline: 2px solid black;
    font-size: 1.5rem;
}
form #comment{
    height: 100px;
}
footer a{
    text-decoration: none;
    color:#fff;
}
footer{
    margin-top: 3rem;
    background-color: #1c1918;
    color: #fff;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
.footer-info{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
}
.social{
    display: flex;
    gap: 1rem;
}
.footer-info p{
    font-size: 0.6875rem;
    line-height: 1rem;
    color: #d7d7d7;
}
/* Enhanced Responsive Design - Comprehensive Breakpoints */

/* Large tablets and small laptops (992px and below) */
@media (max-width: 992px) {
    .container {
        max-width: 90%;
        padding: 0 1rem;
    }
    
    .grid-about {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .grid-skills {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .grid-port {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Education section responsive */
    .edu-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Experience section responsive */
    .exp-list {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
    }
    
    /* Hero section adjustments */
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin: 1rem 0;
    }
    
    /* Section titles responsive */
    .section-title h4 {
        font-size: 1.75rem;
    }
    
    .title-number {
        font-size: 3rem;
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .container {
        max-width: 95%;
        padding: 0 0.75rem;
    }
    
    /* Navigation improvements */
    header {
        margin-top: 0;
        background-color: black;
        height: 3rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    
    .navbar {
        height: 100%;
        align-items: center;
        padding: 0 1rem;
    }
    
    .navbar .logo {
        display: none;
    }
    
    .navbar .mobile-logo {
        display: block;
        width: 2.5rem;
        height: 2rem;
    }
    
    .nav-links {
        height: 210px;
        position: absolute;
        left: 0;
        right: 0;
        background-color: #1c1918;
        margin-top: 16rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        border-top: 1px solid #d7d7d7;
        padding-top: 2rem;
        gap: 2rem;
        transition: transform 300ms ease-in-out;
        backdrop-filter: blur(10px);
    }
    
    .nav-links .btn {
        width: 100%;
        border-radius: 0;
        padding: 0.75rem 1rem;
    }
    
    .humburger {
        display: block;
        z-index: 1000;
    }
    
    .humburger i {
        color: #fff;
        position: absolute;
        right: 5%;
        top: 2.5%;
        font-size: 1.5rem;
        transition: all 0.3s ease;
    }
    
    .humburger i[data-visible="false"] {
        display: none;
    }
    
    .humburger i[data-visible="true"] {
        display: block;
    }
    
    .nav-links[data-visible="false"] {
        transform: translateY(-145%);
    }
    
    /* Hero section mobile */
    .bg-img {
        display: none;
    }
    
    .person-img {
        display: none;
    }
    
    .hero {
        height: calc(100vh - 3rem);
        margin-top: 0;
        background: url(./images/Background.png) center/cover no-repeat;
        justify-content: center;
        align-items: center;
        padding: 2rem 0;
    }
    
    .hero-top {
        height: 100%;
        justify-content: center;
        color: #fff;
        text-align: center;
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin: 1rem 0;
        max-width: 90%;
    }
    
    /* Grid layouts */
    .grid-skills {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .grid-port {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Experience section mobile */
    .exp-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .exp-item {
        padding: 1.25rem;
        margin-bottom: 0;
    }
    
    .exp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .toggle-indicator {
        align-self: flex-end;
        margin-top: -2.5rem;
        width: 35px;
        height: 35px;
    }
    
    .exp-title h6 {
        font-size: 1rem;
        line-height: 1.2;
    }
    
    .company-name {
        font-size: 0.8rem;
    }
    
    .exp-location {
        font-size: 0.7rem;
    }
    
    /* Education section mobile */
    .edu-list {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .edu-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .edu-logo {
        width: 50px;
        height: 50px;
    }
    
    .edu-content {
        gap: 0.25rem;
    }
    
    /* Section spacing */
    section {
        padding: 3rem 0;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .section-title h4 {
        font-size: 1.5rem;
    }
    
    .title-number {
        font-size: 2.5rem;
    }
    
    /* Forms */
    form input {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    form textarea {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}
/* Mobile phones (480px and below) */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    /* Hero section mobile */
    .hero {
        padding: 1.5rem 0;
        min-height: calc(100vh - 3rem);
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }
    
    .hero-content p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin: 0.75rem 0;
    }
    
    /* Navigation mobile */
    .nav-links {
        margin-top: 14rem;
        height: 180px;
        gap: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .humburger i {
        font-size: 1.25rem;
        right: 6%;
    }
    
    /* Grid layouts mobile */
    .grid-about {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .grid-skills {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .grid-port {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Experience section mobile */
    .exp-item {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .exp-header {
        gap: 0.5rem;
    }
    
    .toggle-indicator {
        width: 32px;
        height: 32px;
        margin-top: -2rem;
    }
    
    .toggle-indicator i {
        font-size: 0.75rem;
    }
    
    .exp-title h6 {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }
    
    .company-name {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }
    
    .exp-location {
        font-size: 0.65rem;
    }
    
    .exp-details {
        padding-top: 0.75rem;
    }
    
    .role-description {
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }
    
    .exp-details h6 {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .exp-details ul {
        font-size: 0.8rem;
        margin-left: 1rem;
        line-height: 1.5;
    }
    
    .exp-details li {
        margin-bottom: 0.4rem;
    }
    
    /* Education section mobile */
    .edu-item {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .edu-logo {
        width: 45px;
        height: 45px;
    }
    
    .edu-item h6 {
        font-size: 0.95rem;
        line-height: 1.2;
    }
    
    .edu-degree,
    .edu-location {
        font-size: 0.8rem;
    }
    
    .dual-degree {
        font-size: 0.8rem;
    }
    
    /* Section titles mobile */
    .section-title h4 {
        font-size: 1.25rem;
    }
    
    .title-number {
        font-size: 2rem;
        opacity: 0.6;
    }
    
    .title-accent {
        width: 30px;
        height: 2px;
    }
    
    /* Section spacing mobile */
    section {
        padding: 2rem 0;
    }
    
    .section-title {
        margin-bottom: 1.5rem;
    }
    
    /* Skills section mobile */
    .skill-item {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .skill-item img {
        width: 40px;
        height: 40px;
    }
    
    .skill-item h6 {
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }
    
    /* Forms mobile */
    form {
        padding: 0;
    }
    
    form input,
    form textarea {
        padding: 0.6rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    /* Buttons mobile */
    .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    /* Typography mobile */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }
    
    p, li {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

/* Extra small devices (360px and below) */
@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.8rem;
    }
    
    .exp-item,
    .edu-item,
    .skill-item {
        padding: 0.75rem;
    }
    
    .section-title h4 {
        font-size: 1.1rem;
    }
    
    .title-number {
        font-size: 1.5rem;
    }
    
    section {
        padding: 1.5rem 0;
    }
}

/* Education & Experience Section - Matching Original Style */
.education-experience.container {
    margin-top: 8.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5rem;
}

.education-experience .header-info {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 2rem;
}

.education-experience .header-info h4 {
    font-size: 2rem;
    font-weight: 700;
    border: 4px solid #000;
    padding: 0.5rem 1rem;
    color: black;
}

.education-experience .header-info h6 {
    font-size: 1rem;
    font-weight: 600;
    border-inline: 2px solid #000;
    padding-inline: 1rem;
    color: black;
}

.edu-list, .exp-list {
    display: grid;
    gap: 2rem;
    width: 100%;
}

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

.exp-list {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.edu-item, .exp-item {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06), 0 8px 25px rgba(0, 0, 0, 0.04);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-left: 4px solid transparent;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    color: #2d3748;
}

.exp-item {
    display: flex;
    flex-direction: column;
    height: fit-content;
    margin-bottom: 0;
    transform-origin: center;
    will-change: transform, box-shadow, background;
}

.exp-item:hover {
    transform: translate3d(0, -12px, 0) scale(1.03) rotateX(2deg);
    box-shadow: 
        0 40px 80px rgba(0, 123, 255, 0.2), 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 123, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-left-color: #007bff;
    border-color: rgba(0, 123, 255, 0.15);
    background: linear-gradient(145deg, #ffffff, #eff6ff);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.exp-item.active {
    background: linear-gradient(145deg, #ffffff, #eff6ff);
    border-left-color: #007bff;
    box-shadow: 
        0 35px 70px rgba(0, 123, 255, 0.18), 
        0 15px 35px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 123, 255, 0.15);
    transform: translate3d(0, -6px, 0) scale(1.02);
    transition: all 3.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s;
}

/* Closing state for card */
.exp-item:not(.active) {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.6, 1) 0.2s;
}

.edu-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: default;
    border-left-color: #22c55e;
}

.edu-item:hover {
    transform: translate3d(0, -6px, 0) scale(1.01);
    box-shadow: 0 25px 50px rgba(34, 197, 94, 0.15), 0 10px 25px rgba(0, 0, 0, 0.08);
    border-left-color: #16a34a;
    border-color: rgba(34, 197, 94, 0.1);
    background: linear-gradient(145deg, #ffffff, #f0fdf4);
}

.edu-item:last-child {
    margin-bottom: 0;
}

.edu-logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.edu-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.edu-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.5rem;
}

.edu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.edu-item h6, .exp-item h6 {
    font-size: 1.1rem;
    font-weight: 700;
    color: black;
    margin: 0;
    line-height: 1.3;
}

.dual-degree {
    font-weight: 500;
    color: #007bff;
    font-size: 0.9rem;
}

.edu-location {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.edu-degree {
    font-size: 0.9rem;
    color: #333;
    margin: 0;
    font-weight: 600;
}

.edu-scholarship {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    align-self: flex-start;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.edu-achievement {
    background: linear-gradient(135deg, #17a2b8, #007bff);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    align-self: flex-start;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.3);
}

.edu-item p, .exp-item p {
    font-size: 0.875rem;
    line-height: 1.5;
    color: black;
    margin-bottom: 0.25rem;
}

.exp-item ul {
    margin-left: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: black;
}

/* Experience Item Layout */
.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.exp-title {
    flex: 1;
}

.exp-title h6 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.company-name {
    font-size: 0.875rem;
    color: #007bff !important;
    font-weight: 600;
    margin: 0 0 0.3rem 0;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.company-name::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transition: left 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.exp-item.active .company-name {
    color: #0056b3 !important;
    font-weight: 700;
    transform: scale(1.05) translateY(-1px);
    text-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.exp-item.active .company-name::before {
    left: 0;
}

.exp-location {
    font-size: 0.75rem;
    color: #666 !important;
    margin: 0;
    font-style: italic;
}

.toggle-indicator {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid rgba(0, 123, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.toggle-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.8s ease;
}

.exp-item:hover .toggle-indicator {
    transform: scale(1.15) rotate(10deg);
    border-color: rgba(0, 123, 255, 0.5);
    box-shadow: 
        0 8px 25px rgba(0, 123, 255, 0.3),
        0 0 0 3px rgba(0, 123, 255, 0.1);
}

.exp-item:hover .toggle-indicator::before {
    left: 100%;
}

.exp-item.active .toggle-indicator {
    transform: scale(1.1) rotate(180deg);
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-color: #007bff;
    box-shadow: 
        0 8px 25px rgba(0, 123, 255, 0.4),
        0 0 0 3px rgba(0, 123, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: activeGlow 3s ease-in-out infinite;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s;
}

/* Closing state for toggle */
.exp-item:not(.active) .toggle-indicator {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.6, 1) 0s;
}

.toggle-indicator i {
    color: #007bff;
    font-size: 0.875rem;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}

.exp-item.active .toggle-indicator i {
    color: white;
    transform: scale(1.1);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Experience details with realistic open/close animations */
.exp-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 1.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s,
                opacity 0.8s ease-out 0.3s,
                transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s,
                padding 1.0s ease-out 0.4s;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    transform: translateY(-30px) scale(0.95) rotateX(-5deg);
    transform-origin: top center;
}

.exp-details.expanded {
    max-height: 800px;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    transition: max-height 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0s,
                opacity 1.0s ease-in 0.6s,
                transform 1.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s,
                padding 1.2s ease-in 0.4s;
}

/* Closing animation - reverse the delays */
.exp-details:not(.expanded) {
    transition: max-height 1.2s cubic-bezier(0.4, 0, 0.6, 1) 0.8s,
                opacity 0.6s ease-out 0s,
                transform 1.0s cubic-bezier(0.4, 0, 0.6, 1) 0.2s,
                padding 0.8s ease-out 0.4s;
}

/* Reset all content animations when closing */
.exp-details:not(.expanded) .role-description,
.exp-details:not(.expanded) h6,
.exp-details:not(.expanded) ul,
.exp-details:not(.expanded) li {
    transition: all 0.4s ease-out;
    opacity: 0;
    transform: translateX(-20px);
}

.exp-details:not(.expanded) li::before {
    transition: all 0.3s ease-out;
    opacity: 0;
    transform: scale(0);
}

/* Company name realistic timing */
.exp-item.active .company-name {
    color: #0056b3 !important;
    font-weight: 700;
    transform: scale(1.05) translateY(-1px);
    text-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s;
}

.exp-item.active .company-name::before {
    left: 0;
    transition: left 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s;
}

/* Closing animation for company name */
.exp-item:not(.active) .company-name {
    transition: all 0.6s ease-out 0s;
}

.exp-item:not(.active) .company-name::before {
    transition: left 0.4s ease-out 0s;
}

.role-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 1rem;
    text-align: justify;
    opacity: 0;
    transform: translateX(-50px) rotateY(-8deg) scale(0.9);
    transition: all 0s; /* Initially no transition */
    transform-origin: left center;
}

/* Opening animation for role description */
.exp-details.expanded .role-description {
    opacity: 1;
    transform: translateX(0) rotateY(0deg) scale(1);
    transition: opacity 1.2s ease-out 1.0s,
                transform 1.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.8s;
}

.exp-details h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateX(-50px) scale(0.8) rotateZ(-2deg);
    transition: all 0s; /* Initially no transition */
    transform-origin: left center;
}

/* Opening animation for headings */
.exp-details.expanded h6 {
    opacity: 1;
    transform: translateX(0) scale(1) rotateZ(0deg);
    transition: opacity 1.0s ease-out 1.4s,
                transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.2s;
}

.exp-details ul {
    margin-left: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #666;
    opacity: 0;
    transform: translateY(40px) scale(0.9) rotateX(-5deg);
    transition: all 0s; /* Initially no transition */
    transform-origin: top left;
}

/* Opening animation for lists */
.exp-details.expanded ul {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    transition: opacity 1.0s ease-out 1.6s,
                transform 1.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.5s;
}

/* Enhanced list items with realistic timing */
.exp-details li {
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateX(-45px) rotateX(-8deg) scale(0.9);
    transition: all 0s; /* Initially no transition */
    transform-origin: left center;
    position: relative;
}

.exp-details li::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.5rem;
    width: 4px;
    height: 4px;
    background: #007bff;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0) rotate(180deg);
    transition: all 0s; /* Initially no transition */
}

/* Opening animations for list items with cascading effect */
.exp-details.expanded li {
    opacity: 1;
    transform: translateX(0) rotateX(0deg) scale(1);
}

.exp-details.expanded li::before {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Individual timing for each list item - opening */
.exp-details.expanded li:nth-child(1) { 
    transition: opacity 0.8s ease-out 1.8s,
                transform 1.0s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.8s;
}
.exp-details.expanded li:nth-child(1)::before { 
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 2.2s;
}

.exp-details.expanded li:nth-child(2) { 
    transition: opacity 0.8s ease-out 2.0s,
                transform 1.0s cubic-bezier(0.175, 0.885, 0.32, 1.275) 2.0s;
}
.exp-details.expanded li:nth-child(2)::before { 
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 2.4s;
}

.exp-details.expanded li:nth-child(3) { 
    transition: opacity 0.8s ease-out 2.2s,
                transform 1.0s cubic-bezier(0.175, 0.885, 0.32, 1.275) 2.2s;
}
.exp-details.expanded li:nth-child(3)::before { 
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 2.6s;
}

.exp-details.expanded li:nth-child(4) { 
    transition: opacity 0.8s ease-out 2.4s,
                transform 1.0s cubic-bezier(0.175, 0.885, 0.32, 1.275) 2.4s;
}
.exp-details.expanded li:nth-child(4)::before { 
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 2.8s;
}

.exp-details.expanded li:nth-child(5) { 
    transition: opacity 0.8s ease-out 2.6s,
                transform 1.0s cubic-bezier(0.175, 0.885, 0.32, 1.275) 2.6s;
}
.exp-details.expanded li:nth-child(5)::before { 
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 3.0s;
}

.exp-details.expanded li:nth-child(6) { 
    transition: opacity 0.8s ease-out 2.8s,
                transform 1.0s cubic-bezier(0.175, 0.885, 0.32, 1.275) 2.8s;
}
.exp-details.expanded li:nth-child(6)::before { 
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 3.2s;
}

/* Add multiple cool animations */
@keyframes subtlePulse {
    0%, 100% { 
        box-shadow: 
            0 35px 70px rgba(0, 123, 255, 0.18), 
            0 15px 35px rgba(0, 0, 0, 0.08),
            0 0 0 1px rgba(0, 123, 255, 0.15);
        border-left-color: #007bff;
    }
    50% { 
        box-shadow: 
            0 40px 80px rgba(0, 123, 255, 0.22), 
            0 18px 40px rgba(0, 0, 0, 0.1),
            0 0 0 1px rgba(0, 123, 255, 0.2);
        border-left-color: #0056b3;
    }
}

@keyframes activeGlow {
    0%, 100% {
        box-shadow: 
            0 8px 25px rgba(0, 123, 255, 0.4),
            0 0 0 3px rgba(0, 123, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 12px 35px rgba(0, 123, 255, 0.5),
            0 0 0 4px rgba(0, 123, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

@keyframes floatUp {
    0% {
        transform: translateY(-6px) scale(1.02);
    }
    50% {
        transform: translateY(-8px) scale(1.02);
    }
    100% {
        transform: translateY(-6px) scale(1.02);
    }
}

.exp-item.active {
    animation: subtlePulse 4s ease-in-out infinite, floatUp 6s ease-in-out infinite;
}

/* Additional responsive improvements for touch devices */
@media (max-width: 768px) and (pointer: coarse) {
    /* Better touch targets */
    .toggle-indicator {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    /* Improved hover states for touch */
    .exp-item:hover {
        transform: none;
        box-shadow: 0 20px 40px rgba(0, 123, 255, 0.15), 0 10px 25px rgba(0, 0, 0, 0.08);
    }
    
    /* Better spacing for touch */
    .nav-links a {
        padding: 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Landscape mobile improvements */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content p {
        font-size: 0.85rem;
        margin: 0.5rem 0;
    }
    
    .nav-links {
        height: 150px;
        margin-top: 12rem;
        gap: 1rem;
        padding-top: 1rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .edu-logo img,
    .skill-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .exp-item.active {
        animation: none;
    }
    
    .toggle-indicator {
        transition: none;
    }
}

/* Dark mode for new experience elements */
body.dark-mode .company-name {
    color: #4dabf7 !important;
}

body.dark-mode .exp-location {
    color: #b0b0b0 !important;
}

body.dark-mode .role-description {
    color: #c0c0c0;
}

body.dark-mode .exp-details h6 {
    color: #ffffff;
}

/* Toggle Indicator */
.toggle-indicator {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.3);
    padding: 0.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.exp-item:hover .toggle-indicator {
    background: rgba(0, 123, 255, 0.2);
    transform: scale(1.05);
    border-color: #007bff;
}

.exp-item.active .toggle-indicator {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.toggle-indicator i {
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

/* Experience details */
.exp-details {
    max-height: 0;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding-top: 0;
    margin-left: 0;
    opacity: 0;
    transform: translateY(-15px);
}

.exp-details.expanded {
    max-height: 500px;
    padding-top: 1rem;
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced experience item transitions */
.exp-item {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.exp-item.active {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2), 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Cool toggle indicator animation */
.toggle-indicator {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.exp-item:hover .toggle-indicator {
    transform: scale(1.1) rotate(5deg);
}

.exp-item.active .toggle-indicator {
    transform: scale(1.05) rotate(180deg);
    background: linear-gradient(135deg, #007bff, #0056b3);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.toggle-indicator i {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Stagger animation for content inside */
.exp-details .role-description {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.2s;
}

.exp-details.expanded .role-description {
    opacity: 1;
    transform: translateX(0);
}

.exp-details h6 {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.4s;
}

.exp-details.expanded h6 {
    opacity: 1;
    transform: translateX(0);
}

.exp-details ul {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.5s;
}

.exp-details.expanded ul {
    opacity: 1;
    transform: translateY(0);
}

/* List items animation */
.exp-details li {
    opacity: 0;
    transform: translateX(-25px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.exp-details.expanded li {
    opacity: 1;
    transform: translateX(0);
}

.exp-details.expanded li:nth-child(1) { transition-delay: 0.6s; }
.exp-details.expanded li:nth-child(2) { transition-delay: 0.7s; }
.exp-details.expanded li:nth-child(3) { transition-delay: 0.8s; }
.exp-details.expanded li:nth-child(4) { transition-delay: 0.9s; }
.exp-details.expanded li:nth-child(5) { transition-delay: 1.0s; }
.exp-details.expanded li:nth-child(6) { transition-delay: 1.1s; }

/* Hover effects for better interactivity */
.exp-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 123, 255, 0.15), 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Company name animation on expand */
.company-name {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.exp-item.active .company-name {
    color: #0056b3 !important;
    font-weight: 700;
    transform: scale(1.02);
}

/* Add a subtle pulse animation to active items */
@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2), 0 4px 15px rgba(0, 0, 0, 0.08); }
    50% { box-shadow: 0 12px 35px rgba(0, 123, 255, 0.25), 0 6px 20px rgba(0, 0, 0, 0.1); }
}

.exp-item.active {
    animation: subtlePulse 4s ease-in-out infinite;
}

.exp-details ul {
    margin: 0;
    padding-left: 1.2rem;
    list-style-type: disc;
}

.exp-details li {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #666;
    margin-bottom: 0.4rem;
}

/* Modern Enhanced Scroll-Triggered Animations */
.hidden-scroll {
    opacity: 1; /* Make visible by default as fallback */
    transform: translate3d(0, 0, 0); /* No initial offset */
    clip-path: inset(0% 0 0% 0); /* No clipping by default */
    transition: all var(--duration-slower) var(--ease-spring);
    will-change: opacity, transform, clip-path;
}

.animate-in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    clip-path: inset(0 0 0 0);
}

.hidden-item {
    opacity: 0;
    transform: translate3d(0, 50px, 0) scale(0.8);
    transition: all var(--duration-slow) var(--ease-spring);
    will-change: opacity, transform;
}

.slide-in {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

/* Advanced skill animations with morphing */
.hidden-skill {
    opacity: 0;
    transform: translate3d(0, 60px, 0) scale(0.6) rotate(10deg);
    filter: blur(5px);
    transition: all var(--duration-slow) var(--ease-bounce);
    will-change: opacity, transform, filter;
}

.slideInSkill {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    filter: blur(0px);
    animation: skillMorphIn var(--duration-slow) var(--ease-spring);
}

@keyframes skillMorphIn {
    0% {
        opacity: 0;
        transform: translate3d(0, 60px, 0) scale(0.6) rotate(10deg);
        filter: blur(5px);
        border-radius: 50%;
    }
    50% {
        opacity: 0.8;
        transform: translate3d(0, 10px, 0) scale(1.1) rotate(-2deg);
        filter: blur(2px);
        border-radius: 20%;
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
        filter: blur(0px);
        border-radius: 16px;
    }
}

/* Special animation for BERRIES section - with fallback visibility */
.BERRIES {
    opacity: 1; /* Visible by default */
    transform: translate3d(0, 0, 0); /* No initial offset */
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.BERRIES.animate-in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.BERRIES h4 {
    opacity: 1; /* Visible by default */
    transform: translate3d(0, 0, 0); /* No initial offset */
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
    will-change: opacity, transform;
}

.BERRIES.animate-in h4 {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.BERRIES p {
    opacity: 1; /* Visible by default */
    transform: translate3d(0, 0, 0); /* No initial offset */
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s;
    will-change: opacity, transform;
}

.BERRIES.animate-in p {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.BERRIES span {
    opacity: 1; /* Visible by default */
    transform: scale(1) translate3d(0, 0, 0); /* No initial offset */
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s;
    will-change: opacity, transform;
}

.BERRIES.animate-in span {
    opacity: 1;
    transform: scale(1) translate3d(0, 0, 0);
}

/* Enhanced hero animations - with fallback visibility */
.hero .content .info h1, 
.hero .content .info h2, 
.hero .content .info h6 {
    opacity: 1; /* Visible by default */
    transform: translate3d(0, 0, 0); /* No initial offset */
    animation: slideInHeroStagger 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    will-change: opacity, transform;
}

.hero .content .info h1 { animation-delay: 0.2s; }
.hero .content .info h2 { animation-delay: 0.4s; }
.hero .content .info h6 { animation-delay: 0.6s; }

@keyframes slideInHeroStagger {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Blog Section */
.blog {
    margin-top: 5rem;
    margin-bottom: 5rem;
}

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

.blog-post {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-left-color: #007bff;
}

.blog-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 8px;
    padding: 0.75rem;
    width: 60px;
    margin-bottom: 1rem;
    text-align: center;
}

.blog-date .date {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.blog-date .month {
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0.25rem 0;
}

.blog-date .year {
    font-size: 0.75rem;
    opacity: 0.8;
}

.blog-content h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    background: #f8f9fa;
    color: #007bff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
}

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

.btn-secondary {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* Blog responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-post {
        padding: 1.25rem;
    }
}

/* Modern Skills Section with Enhanced Interactions */
.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--duration-medium) var(--ease-spring);
    padding: 1.5rem;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(248, 250, 252, 0.8));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    will-change: transform, box-shadow;
}

.grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(72, 202, 228, 0.1));
    opacity: 0;
    transform: scale(0) rotate(45deg);
    transition: all var(--duration-medium) var(--ease-bounce);
    border-radius: inherit;
}

.grid-item:hover {
    transform: translate3d(0, -12px, 0) scale(1.05) rotate(1deg);
    box-shadow: 
        0 20px 40px rgba(0, 123, 255, 0.2),
        0 8px 25px rgba(0, 0, 0, 0.1);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.95));
}

.grid-item:hover::before {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.skill-info {
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.skill-info h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    transition: var(--color-transition);
}

.grid-item:hover .skill-info h6 {
    color: #0077b6;
    transform: translateY(-2px);
}

/* Advanced Progress Bars */
.skill-progress {
    width: 100%;
    height: 8px;
    background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 0.5rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0077b6, #48cae4, #ff6b6b);
    background-size: 200% 100%;
    border-radius: 3px;
    width: 0%;
    transition: width 1.8s var(--ease-spring);
    will-change: width;
    position: relative;
    overflow: hidden;
    animation: progressGradient 3s ease infinite;
}

.progress-bar.animate {
    width: var(--progress);
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: translateX(-100%);
    animation: progressShine 2s ease infinite 1s;
}

@keyframes progressGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-bar.animate {
    width: var(--progress);
}

/* Enhanced Services Section */
.grid-about {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.columns {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 4px solid transparent;
}

.columns:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.development {
    border-top-color: #007bff;
}

.design {
    border-top-color: #e83e8c;
}

.maintenance {
    border-top-color: #28a745;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.development .service-icon {
    color: #007bff;
}

.design .service-icon {
    color: #e83e8c;
}

.maintenance .service-icon {
    color: #28a745;
}

.columns:hover .service-icon {
    transform: scale(1.1) rotateY(10deg);
}

.columns h6 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.columns p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Dark Mode for Services */
body.dark-mode .columns {
    background-color: #2a2a2a;
}

body.dark-mode .columns h6 {
    color: #ffffff;
}

body.dark-mode .columns p {
    color: #b0b0b0;
}

body.dark-mode .service-features li {
    color: #c0c0c0;
}

body.dark-mode .service-icon {
    background: linear-gradient(135deg, #3a3a3a, #4a4a4a);
}

/* Responsive Services */
@media (max-width: 768px) {
    .grid-about {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .columns {
        padding: 1.5rem;
    }
}

/* Modern Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all var(--duration-medium) var(--ease-spring);
    will-change: transform, box-shadow;
    animation: floatWhatsApp 3s ease-in-out infinite;
}

.floating-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
    border-radius: inherit;
    opacity: 0;
    transform: scale(0);
    transition: all var(--duration-medium) var(--ease-bounce);
}

.floating-contact:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 
        0 12px 35px rgba(37, 211, 102, 0.6),
        0 0 0 15px rgba(37, 211, 102, 0.1);
    animation: none;
}

.floating-contact:hover::before {
    opacity: 1;
    transform: scale(1);
}

.floating-contact:active {
    transform: scale(1.05);
}

.floating-contact i {
    color: white;
    font-size: 1.5rem;
    transition: all var(--duration-medium) var(--ease-spring);
    position: relative;
    z-index: 2;
}

.floating-contact:hover i {
    transform: scale(1.1) rotate(-10deg);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes floatWhatsApp {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }
    50% { 
        transform: translateY(-8px) rotate(2deg); 
        box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
    }
}

/* Enhanced Animations */
@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.service-card, .edu-item, .exp-item {
    animation: cardFloat 6s ease-in-out infinite;
    animation-delay: calc(var(--delay, 0) * 0.3s);
}

.service-card:nth-child(1) { --delay: 0; }
.service-card:nth-child(2) { --delay: 1; }
.service-card:nth-child(3) { --delay: 2; }

.edu-item:nth-child(odd) { --delay: 0; }
.edu-item:nth-child(even) { --delay: 1; }

.exp-item:nth-child(odd) { --delay: 0; }
.exp-item:nth-child(even) { --delay: 1; }

/* Shimmer effect on hover */
.service-card:hover::before,
.edu-item:hover::before,
.exp-item:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shimmer 1.5s ease-in-out;
    pointer-events: none;
    border-radius: inherit;
}

/* Enhanced Text Styling for Glass Cards */
.service-card h3 {
    color: #2d3748;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.service-card p,
.service-card li {
    color: #4a5568;
    font-weight: 500;
}

.edu-item h4,
.exp-item h4 {
    color: #2d3748;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.edu-item p,
.exp-item p,
.edu-item span,
.exp-item span {
    color: #4a5568;
    font-weight: 500;
}

/* ====== MODERN CURSOR & ADVANCED ANIMATIONS ====== */
.modern-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transition: all 0.15s ease-out;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: -4px;
    left: -4px;
    transition: transform 0.15s ease-out;
}

.cursor-ring {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: absolute;
    top: -15px;
    left: -15px;
    transition: all 0.3s ease-out;
}

.modern-cursor.cursor-hover .cursor-ring {
    width: 50px;
    height: 50px;
    top: -25px;
    left: -25px;
    border-color: rgba(255, 255, 255, 0.6);
}

.modern-cursor.cursor-hover .cursor-dot {
    transform: scale(1.5);
}

/* Advanced Timeline Animations */
.timeline-stagger {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.6s var(--spring-easing);
    transition-delay: var(--stagger-delay, 0s);
}

.timeline-stagger.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Modern Section Title Animations */
.section-title.animate-in {
    animation: titleReveal 0.8s var(--spring-easing) forwards;
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Performance Optimizations */
.gpu-accelerated {
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
}

.reduce-motion .slideInLeft,
.reduce-motion .slideInRight,
.reduce-motion .slideInUp,
.reduce-motion .slideInDown,
.reduce-motion .zoomIn,
.reduce-motion .fadeIn {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        transition-duration: 0.01ms !important;
    }
    
    .modern-cursor {
        display: none !important;
    }
}

/* Ultra-smooth scrolling */
html {
    scroll-behavior: smooth;
}

@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .modern-cursor {
        display: none;
    }
    
    .magnetic-hover {
        transform: none !important;
    }
    
    .timeline-stagger {
        transform: translateY(20px);
    }
}