/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+ Script&family=Great+Vibes&family=Satisfy&display=swap');
/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #000000;
    color: white;
    position: relative;
    overflow-x: hidden;
}

main {
    flex: 1;
}

html {
    scroll-behavior: smooth;
}

/* Remove old gradient animation */
/* @keyframes gradientAnimation { ... } */

/* Replace particle background with nuclear/star pattern */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    background: radial-gradient(circle at center, 
        rgba(30, 144, 255, 0.1) 0%,
        transparent 40%),
        radial-gradient(circle at 20% 80%, 
        rgba(30, 144, 255, 0.2) 0%,
        transparent 30%),
        radial-gradient(circle at 80% 20%, 
        rgba(30, 144, 255, 0.2) 0%,
        transparent 30%);
    animation: pulseGlow 8s ease-in-out infinite;
    z-index: -2;
}

body::after {
    content: '';
    background: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 40% 70%, #1e90ff, transparent),
        radial-gradient(3px 3px at 60% 20%, white, transparent),
        radial-gradient(2px 2px at 70% 90%, #1e90ff, transparent),
        radial-gradient(2px 2px at 80% 40%, white, transparent);
    background-size: 100px 300px;
    animation: sparkleStars 4s linear infinite;
    z-index: -1;
    opacity: 0.5;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.5; }
}

@keyframes sparkleStars {
    0% { transform: translateY(0); }
    100% { transform: translateY(-300px); }
}

/* Modern Header/Navbar Styling - Icon Based Design */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(12, 12, 18, 0.6);
    backdrop-filter: blur(10px);
}

.header.scrolled {
    background: rgba(16, 16, 24, 0.85);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 16px 0;
    transition: all 0.4s ease;
}

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

/* Modern logo styling with elegant shimmer effect */
.logo a {
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.logo a::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    top: -25%;
    left: -125%;
    transform: rotate(35deg);
    transition: 0.55s;
}

.logo a:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.15);
}

.logo a:hover::before {
    left: 125%;
}

/* Navigation menu styling */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

/* Icon-based nav links with professional animations */
.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 10px;
    position: relative;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.nav-link i {
    font-size: 16px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
}

.nav-text {
    position: relative;
    z-index: 2;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 0.35s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(30, 144, 255, 0.08);
    transition: height 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
    border-radius: 10px;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link:hover i {
    transform: translateY(-3px);
}

.nav-link:hover::before {
    height: 100%;
}

.nav-link.active {
    color: #ffffff;
    background: rgba(30, 144, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(30, 144, 255, 0.2);
}

.nav-link.active i {
    transform: translateY(-2px);
}

/* Special Contact button styling */
.nav-link.contact-btn {
    background: linear-gradient(
        135deg, 
        rgba(30, 144, 255, 0.6), 
        rgba(23, 107, 135, 0.6)
    );
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.nav-link.contact-btn::before {
    background: linear-gradient(
        135deg, 
        rgba(30, 144, 255, 0.8), 
        rgba(23, 107, 135, 0.8)
    );
}

.nav-link.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.2);
}

.nav-link.contact-btn:hover i {
    animation: float 1s ease infinite;
}

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

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1002;
    position: absolute;
    top: 18px;
    right: 20px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* Ensure toggle is visible on mobile */
@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
        position: fixed; /* Change to fixed positioning */
        right: 20px;
        top: 18px;
    }
    
    /* Ensure spans are visible with proper color */
    .nav-toggle span {
        background-color: #fff;
        margin: 2px 0;
    }
}

/* Mobile Navigation styling */
@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(15, 15, 25, 0.98);
        backdrop-filter: blur(12px);
        width: 100%;
        height: 100vh;
        gap: 25px;
        padding: 50px 0;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1001;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 18px;
        width: 200px;
        text-align: center;
        justify-content: center;
        padding: 15px 20px;
    }
    
    .nav-link i {
        font-size: 20px;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0.2);
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e90ff, #ff1744);
    width: 0%;
    z-index: 1003;
    transition: width 0.1s ease;
}

/* Hero Section - Fix alignment issues */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 100px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    gap: 40px;
}

.hero-left {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.profile-pic {
    width: 450px;
    height: 450px;
    object-fit: cover;
    filter: drop-shadow(0 0 8px rgba(255, 23, 68, 0.8));
    position: relative;
    animation: floatAnimation 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.profile-pic:hover {
    animation-play-state: paused;
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px #1e90ff)
           brightness(1.1);
}


@keyframes floatAnimation {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Hero Section - Updated Modern Styles */
.hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding-left: 20px;
    position: relative;
    max-width: 600px;
}

.hero-right h1 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.hero-right h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1e90ff, #ff1744);
}

.hero-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

/* Modern Hero Section Button Styles - Consistent Design */
.btn-container {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.btn-container a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 10px;
    font-size: 15px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    color: white;
    background-color: #3a7bd5;
    border: 1px solid #3a7bd5;
}

.btn-container a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(58, 123, 213, 0.3);
    background-color: #2d6ec4;
}

.btn-container a i {
    transition: transform 0.3s ease;
}

.btn-container a:hover i {
    transform: translateY(-2px);
}

.btn-contact:hover i {
    transform: translateX(3px) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-container {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .btn-container a {
        width: 100%;
    }
}

/* Specific styling for just the tagline heading */
/* Add this to your existing CSS file where the section-title styles are defined */

.hero .section-title.with-bg-text {
    /* Increase font size for the tagline */
    font-size: 0.01rem;
    
    /* Add a gradient text color */
    background: linear-gradient(45deg, #3498db00, #2ecc7000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 10px 0;
    margin-bottom: 20px;
    
    /* Make it stand out more */
    font-weight: 10;
    
    /* If you want to change the animation */
    transition: transform 0.3s ease;
}

/* Add hover effect if desired */
.hero .section-title.with-bg-text:hover {
    transform: scale(1.05);
}

/* Style for the background text (using data-text attribute) */
.hero .section-title.with-bg-text:before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 0.01%;
    height: 0.01%;
    color: rgba(200, 200, 200, 0.1); /* Very light gray with low opacity */
    font-size: 0.1px; /* Larger than the main text */
    z-index: -1;
    transform: translateY(-10%) scale(1.2);
}
.hero .section-title.with-bg-text:before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 0.01%;
    height: 0.01%;
    color: rgba(200, 200, 200, 0.1); /* Very light gray with low opacity */
    font-size: 0.1px; /* Larger than the main text */
    z-index: -1;
    transform: translateY(-10%) scale(1.2);
}

/* Background text effect specific to this heading */


/* Update responsive styles for the modern hero */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 50px 10x 50px;
        text-align: center;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero-right {
        align-items: center;
        text-align: center;
        padding-left: 0;
    }
    
    .hero-right h1::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero-description {
        text-align: center;
    }
    
    .btn-container {
        flex-direction: column;
        gap: 15px;
        justify-content: center;
    }
    
    .btn-container a {
        min-width: 200px;
    }
}

/* Enhanced Mobile Navigation Styles */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
        display: flex;
    }
    
    .nav-links li {
        margin: 8px 0;
        padding: 5px 0;
    }
    
    .nav-links a {
        font-size: 18px;
        width: 100%;
        display: inline-block;
    }
    
    .menu-toggle {
        display: none !important;
    }
}

/* Mobile Navigation Styles - Consolidated from duplicates */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 10px;
        background: rgba(0, 0, 0, 0.9);
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        animation: slideDown 0.5s ease-out forwards;
    }
    
    .nav-links li {
        transform: translateY(-20px);
        opacity: 0;
        animation: fadeInUp 0.3s forwards ease-out;
    }
    
    .nav-links.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { animation-delay: 0.4s; }
}

/* Reduce space between navbar and hero section */
header {
    margin-bottom: 0;
}

.hero {
    padding-top: 20px; /* Reduced padding at the top of hero section */
    margin-top: 0;
}

/* Make the tagline section more compact */
.tagline-section {
    margin-bottom: 10px; /* Reduced bottom margin */
    padding-bottom: 0;
}

/* About Me Section */
.about {
    padding: 80px 50px;
    text-align: center;
    background: rgba(30, 144, 255, 0.15);
; /* Light transparency to maintain readability */
    border-radius: 20px;
    backdrop-filter: blur(10px);
    margin: 50px auto;
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 0 15px rgba(30, 144, 255, 1); /* Add a glow effect */
}

.about h2 {
    font-size: 32px;
    color: white;
    margin-bottom: 20px;
}

.about p {
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto 15px;
    line-height: 1.6;
    color: white;
    font-weight: 600;
}

/* Clean, Minimal Section Title - Professional Style */
.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: white;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    padding: 40px 0; /* Increased padding for better visibility */
    z-index: 2;
    overflow: visible; /* Allow text to overflow */
    perspective: 800px;
    transition: transform 0.3s ease;
    margin-bottom: 60px; /* Add more space below */
    min-height: 80px; /* Ensure minimum height */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Add shadow for better visibility */
}

/* Updated section title with continuous sliding background text effect */
.section-title.with-bg-text {
    position: relative;
    padding: 20px 0;
    z-index: 2; /* Keep this higher */
    width: 100%;
    text-align: center;
    color: white;
    overflow: visible;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7); /* Stronger shadow for better contrast */
    font-weight: 800;
    letter-spacing: 1px; /* Slightly increase letter spacing for better readability */
}

/* Adjust the background text to be properly positioned behind the heading */
.section-title.with-bg-text::before {
    content: attr(data-text) attr(data-text) attr(data-text); /* Triple content for seamless loop */
    position: absolute;
    top: 50%; /* Center vertically */
    left: 0;
    transform: translateY(-50%);
    width: max-content;
    height: auto; /* Allow natural height */
    font-size: 140px;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px rgba(30, 144, 255, 0.25); /* Increased opacity for better visibility */
    white-space: nowrap;
    z-index: -1; /* This ensures it stays behind */
    animation: perfectLoopScroll 40s linear infinite; /* Base animation that will be overridden */
    animation-play-state: running !important;
    pointer-events: none;
    opacity: 0.9; /* Increased from 0.7 to 0.9 for better visibility */
    text-shadow: 0 0 5px rgba(30, 144, 255, 0.1); /* Add slight glow effect */
    will-change: transform; /* Optimize for animation performance */
    backface-visibility: hidden; /* Prevent flickering */
    -webkit-font-smoothing: antialiased; /* Smoother text rendering */
    overflow: hidden; /* Add this to prevent horizontal scrollbar */
}

/* Create a truly seamless background text animation */
@keyframes perfectLoopScroll {
    0% {
        transform: translateY(-50%) translateX(0);
    }
    100% {
        transform: translateY(-50%) translateX(calc(-50% + 10px)); /* Slight offset to ensure seamless loop */
    }
}

/* Mobile responsiveness fixes for section title */
@media screen and (max-width: 768px) {
    .section-title.with-bg-text {
        padding: 15px 0;
        font-size: 24px; /* Smaller font size on mobile */
        width: 100%;
        overflow: hidden; /* Ensure no overflow on mobile */
    }
    
    .section-title.with-bg-text::before {
        font-size: 80px; /* Smaller background text on mobile */
        -webkit-text-stroke: 1px rgba(30, 144, 255, 0.2); /* Thinner stroke for mobile */
        opacity: 0.7; /* Reduce opacity on mobile for better foreground visibility */
        animation: perfectLoopScroll 30s linear infinite; /* Slightly faster animation on mobile */
        width: 100%; /* Constrain width on mobile */
        overflow: hidden; /* Prevent horizontal overflow */
    }
}

/* Even smaller screens */
@media screen and (max-width: 480px) {
    .section-title.with-bg-text {
        font-size: 20px; /* Even smaller font size for very small screens */
    }
    
    .section-title.with-bg-text::before {
        font-size: 60px; /* Even smaller background text for very small screens */
        animation: perfectLoopScroll 25s linear infinite; /* Faster animation for smaller screens */
    }
    
    /* Improve container overflow handling */
    #skills.skills-section {
        overflow-x: hidden; /* Force hiding horizontal overflow */
        width: 100%;
        max-width: 100%;
        position: relative;
    }
}

/* Specific style for My Projects section */
#my-projects::before {
    animation-duration: 45s !important; /* Slightly slower for "My Projects" */
}

/* Specific style for Technical Skills section */
#technical-skills::before {
    animation-duration: 50s !important; /* Even slower for "Technical Skills" */
}

/* Specific style for Get In Touch section */
#get-in-touch::before {
    animation-duration: 40s !important; /* Default speed for "Get In Touch" */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title.with-bg-text::before {
        font-size: 80px;
        animation-duration: 35s !important; /* Slightly faster on mobile */
    }
}

/* Create a truly seamless background text animation with GPU acceleration */
.section-title.with-bg-text::before {
    /* Add prefixes for better browser support */
    -webkit-animation-duration: inherit;
    -moz-animation-duration: inherit;
    -o-animation-duration: inherit;
    
    /* Hardware acceleration for smoother animation */
    -webkit-transform: translateY(-50%) translateX(0);
    -webkit-transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    
    /* Make sure the animation never stops or stutters */
    animation-delay: 0s !important;
    animation-fill-mode: forwards !important;
    animation-iteration-count: infinite !important;
    animation-timing-function: linear !important;
}

/* Center the Get In Touch heading in the contact section */
.contact-section .section-title {
    text-align: center;
    width: 100%;
    margin-bottom: 40px;
}

/* Back to top button styling */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #007bff;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

.back-to-top-btn i {
    font-size: 20px;
}

/* Footer Section */
.footer {
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    font-size: 16px;
    width: 100%;
    margin-top: auto; /* Ensure footer is pushed to the bottom */
}

/* Social Media Icons */
.social-icons {
    margin-top: 10px;
}

.social-icons a {
    color: white;
    font-size: 24px;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.social-icons a:hover {
    color: #ff1744;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .navbar {
        padding: 20px;
    }
    .hero {
        flex-direction: column; /* Stack image and text on smaller screens */
        text-align: center;
        min-height: 120vh;
        padding-top: 100px;
        padding-bottom: 50px;
        justify-content: flex-start;
    }
    .hero-content {
        flex-direction: column; /* Stack image and text on smaller screens */
        gap: 30px;
    }
    .hero-left {
        justify-content: center; /* Center image on smaller screens */
    }
    .hero-right {
        align-items: center; /* Center text on smaller screens */
        text-align: center;
        padding-left: 0; /* Remove padding on smaller screens */
        padding: 20px;
        margin-bottom: 60px; /* Add space above footer */
    }
    .profile-pic {
        width: 200px;
        height: 200px;
        outline-offset: 8px; /* Adjust offset for smaller screens */
    }
    .hero-right h1 {
        font-size: 28px;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: rgb(27, 38, 44);
        width: 100%;
        text-align: center;
        padding: 20px 0;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        padding: 5px 0;
        margin: 8px 0;
    }
    .menu-toggle {
        display: block;
    }
    .btn-container {
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }
    .about {
        padding: 30px 20px;
        margin: 20px auto;
        width: 90%;
    }
    .about p {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* Mobile Menu Styles */
.menu-toggle {
    display: none;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.menu-toggle.active {
    transform: rotate(90deg);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block !important;
        cursor: pointer;
        z-index: 1001;
        transition: transform 0.3s ease;
        font-size: 24px;
        color: rgb(187, 225, 250);
        animation: pulse 2s infinite ease-in-out;
    }

    .menu-toggle.active {
        transform: rotate(90deg);
        animation: none;
    }

    .navbar {
        padding: 15px 20px;
        animation: slideDown 0.5s ease-out forwards;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transform: translateY(-10px);
        opacity: 0;
    }

    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        animation: slideDown 0.3s ease-out forwards;
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-links li {
        transform: translateY(-20px);
        opacity: 0;
        animation: fadeInUp 0.3s forwards ease-out;
        margin: 8px 0;
        padding: 5px 0;
    }
    
    .nav-links.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { animation-delay: 0.4s; }
}

/* Additional animation keyframes */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Additional fixes for very small screens */
@media (max-width: 480px) {
    .hero {
        padding-top: 80px;
    }

    .hero-right {
        width: 100%;
        padding: 15px;
    }

    .about {
        width: 95%;
        padding: 20px 15px;
    }
}

/* Fade-In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Add AOS Animations */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0, 0);
}

/* Simple Modern Loading Animation Styles */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

.simple-loader {
    width: 60px;
    height: 6px;
    background: #121212;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.simple-loader::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, #1e90ff, #ff1744);
    border-radius: 3px;
    animation: simpleLoading 1.5s infinite ease-in-out;
}

@keyframes simpleLoading {
    0% { left: -30%; }
    100% { left: 100%; }
}

.loader-text {
    margin-top: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: white;
    letter-spacing: 1px;
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Removing previous loader styles */
.loader, .loader:before, .loader:after,
.loader-logo {
    /* These styles are no longer needed */
    display: none;
}

@keyframes bblFadInOut {
    /* This animation is no longer needed */
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Professional Timeline Section styling */
.professional-timeline {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Improved Timeline Container Styling with Card Swipe Effect */
.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    position: relative;
}

/* Timeline Content Wrapper - Card Swipe Effect */
.timeline-content-wrapper {
    position: relative;
    height: auto;
    min-height: 600px;
    perspective: 2000px;
    margin-top: 30px;
    overflow: visible;
}

/* Timeline Block Styling for Card Swipe */
.timeline-block {
    position: absolute;
    width: 80%;
    max-width: 700px;
    height: auto;
    min-height: 450px;
    left: 50%;
    top: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.34, 1.28, 0.64, 1);
    background: rgba(25, 25, 35, 0.8);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform-origin: center center;
    transform-style: preserve-3d;
}

/* Active Timeline Block (Center) */
.timeline-block.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
    transform: translateX(-50%) rotateY(0deg) translateZ(0);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(var(--primary-color-rgb), 0.3);
}

/* Previous Timeline Block (Left side) */
.timeline-block.prev {
    opacity: 0.6;
    visibility: visible;
    z-index: 5;
    transform: translateX(-85%) rotateY(30deg) translateZ(-150px);
    filter: blur(2px);
    pointer-events: none;
}

/* Next Timeline Block (Right side) */
.timeline-block.next {
    opacity: 0.6;
    visibility: visible;
    z-index: 5;
    transform: translateX(-15%) rotateY(-30deg) translateZ(-150px);
    filter: blur(2px);
    pointer-events: none;
}

/* To animate the "stick" effect */
@keyframes stickEffect {
    0% { transform: translateX(-50%) rotateY(0deg) translateZ(0); }
    30% { transform: translateX(-52%) rotateY(2deg) translateZ(0); }
    70% { transform: translateX(-48%) rotateY(-2deg) translateZ(0); }
    100% { transform: translateX(-50%) rotateY(0deg) translateZ(0); }
}

/* Card changes with stickiness */
.timeline-block.active.with-stick {
    animation: stickEffect 0.6s ease-out;
}

/* Timeline Card Animation */
@keyframes cardToCenter {
    0% { 
        transform: translateX(-15%) rotateY(-30deg) translateZ(-150px);
        opacity: 0.6;
        filter: blur(2px);
    }
    50% {
        transform: translateX(-45%) rotateY(-5deg) translateZ(-50px);
        opacity: 0.8;
        filter: blur(1px);
    }
    80% {
        transform: translateX(-52%) rotateY(2deg) translateZ(0);
        opacity: 1;
        filter: blur(0);
    }
    100% { 
        transform: translateX(-50%) rotateY(0deg) translateZ(0);
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes cardFromCenter {
    0% { 
        transform: translateX(-50%) rotateY(0deg) translateZ(0);
        opacity: 1;
        filter: blur(0);
    }
    20% {
        transform: translateX(-48%) rotateY(-5deg) translateZ(0);
        opacity: 0.9;
        filter: blur(0.5px);
    }
    100% { 
        transform: translateX(-85%) rotateY(30deg) translateZ(-150px);
        opacity: 0.6;
        filter: blur(2px);
    }
}

.timeline-block.to-center {
    animation: cardToCenter 0.8s forwards cubic-bezier(0.34, 1.28, 0.64, 1);
}

.timeline-block.from-center {
    animation: cardFromCenter 0.8s forwards cubic-bezier(0.34, 1.28, 0.64, 1);
}

/* Timeline Navigation Styling */
.timeline-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 20;
}

.timeline-nav-btn {
    background: rgba(40, 40, 60, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: #8b8b8b;
    padding: 10px 20px;
    margin: 0 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.timeline-nav-btn i {
    font-size: 18px;
}

.timeline-nav-btn:hover {
    color: #fff;
    background: rgba(var(--primary-color), 0.2);
    transform: translateY(-3px);
}

.timeline-nav-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), rgba(var(--primary-color-rgb), 0.7));
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

/* Add swipe control buttons */
.timeline-swipe-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 30;
}

.swipe-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.swipe-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.swipe-btn i {
    font-size: 18px;
}

.swipe-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Ensure the timeline entries container scrolls if needed */
.timeline-entries {
    overflow-y: auto;
    max-height: 500px;
    padding-right: 10px;
    margin-bottom: 70px; /* Make room for swipe controls */
}

/* Custom scrollbar for timeline entries */
.timeline-entries::-webkit-scrollbar {
    width: 6px;
}

.timeline-entries::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.timeline-entries::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-color-rgb), 0.5);
    border-radius: 3px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline-block {
        width: 90%;
    }
    
    .timeline-navigation {
        flex-wrap: wrap;
    }
    
    .timeline-nav-btn {
        margin: 5px;
        font-size: 14px;
        padding: 8px 15px;
    }
    
    .timeline-content-wrapper {
        min-height: 650px;
    }
    
    /* Adjust card positions for mobile */
    .timeline-block.prev {
        transform: translateX(-80%) rotateY(20deg) translateZ(-80px);
    }
    
    .timeline-block.next {
        transform: translateX(-20%) rotateY(-20deg) translateZ(-80px);
    }
    
    /* Make entries container shorter on mobile */
    .timeline-entries {
        max-height: 450px;
    }
}

/* Timeline Entries Styling */
.timeline-entries {
    position: relative;
}

.timeline-entries::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 36px;
    width: 2px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.1) 0%, 
        var(--primary-color) 30%, 
        var(--primary-color) 70%, 
        rgba(255, 255, 255, 0.1) 100%);
}

.timeline-entry {
    position: relative;
    margin-bottom: 50px;
}

.timeline-entry:last-child {
    margin-bottom: 0;
}

.timeline-entry-inner {
    display: flex;
}

.timeline-icon {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 2px solid var(--primary-color);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.timeline-entry:hover .timeline-icon {
    transform: rotate(360deg);
    box-shadow: 0 0 20px var(--primary-color);
}

.timeline-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.timeline-content {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-left: 20px;
    padding: 25px;
    flex: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: shimmer 3s infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-entry:hover .timeline-content::before {
    opacity: 1;
}

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

.timeline-entry:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.timeline-date {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--primary-color);
    color: #000;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 14px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.timeline-info h3 {
    color: #ffffff;
    font-size: 20px;
    margin: 0 0 10px 0;
}

.timeline-info h4 {
    color: #b0b0b0;
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 15px 0;
}

.timeline-details {
    color: #a0a0a0;
    font-size: 15px;
    line-height: 1.6;
}

.timeline-progress {
    margin-top: 15px;
}

.progress-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #ff9d00);
    border-radius: 4px;
    transition: width 1.5s ease;
    animation: progressAnimation 1.5s ease-out forwards;
    transform-origin: left;
}

@keyframes progressAnimation {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.progress-text {
    display: inline-block;
    margin-top: 15px;
    padding: 5px 12px;
    background-color: rgba(196, 50, 31, 0.15);
    color: #ec1109;
    border-radius: 20px;
    font-size: 13px;
}

.timeline-badge {
    display: inline-block;
    margin-top: 15px;
    padding: 5px 12px;
    background-color: rgba(0, 192, 97, 0.15);
    color: #00C061;
    border-radius: 20px;
    font-size: 13px;
}

.timeline-badge i {
    margin-right: 5px;
}

/* Career goals styling */
.career-goals-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.career-goals-list li {
    display: flex;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    border-left: 3px solid var(--primary-color);
}

.career-goals-list li:hover {
    transform: translateX(5px);
    background-color: rgba(255, 255, 255, 0.07);
}

.goal-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

.goal-icon i {
    font-size: 18px;
    color: var(--primary-color);
}

.goal-content {
    flex: 1;
}

.goal-content h4 {
    margin: 0 0 8px 0;
    color: #ffffff;
    font-size: 21px;
}

.goal-content p {
    margin: 0;
    color: #a0a0a0;
    font-size: 14px;
    line-height: 1.5;
}

.career-vision, .career-goals {
    margin-bottom: 30px;
}

.career-vision h3, .career-goals h3 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.career-vision h3 i, .career-goals h3 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.timeline-responsibilities h5, .timeline-achievements h5 {
    font-size: 17px;
    color: #ddd;
    margin: 20px 0 10px 0;
    display: flex;
    align-items: center;
}

.timeline-responsibilities h5 i, .timeline-achievements h5 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.timeline-responsibilities ul {
    list-style: none;
    padding: 0;
}

.timeline-responsibilities ul li {
    padding: 6px 0;
    display: flex;
    align-items: flex-start;
}

.timeline-responsibilities ul li i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 5px;
    font-size: 14px;
    flex-shrink: 0;
}

/* Work Experience Timeline styling */
#experience-timeline .education-item h3,
#experience-timeline .education-item h4,
#experience-timeline .timeline-responsibilities {
    text-align: left;
}

#experience-timeline .timeline-responsibilities h5 {
    text-align: left;
    margin-bottom: 10px;
}

#experience-timeline .timeline-responsibilities ul {
    padding-left: 20px;
}

/* Center timeline headings */
.centered-heading {
    text-align: center;
    width: 100%;
    display: block;
}

/* Responsive styles */
@media (max-width: 768px) {
    .timeline-navigation {
        flex-wrap: wrap;
    }
    
    .timeline-nav-btn {
        margin: 5px;
    }
    
    .timeline-entries::before {
        left: 20px;
    }
    
    .timeline-icon {
        width: 40px;
        height: 40px;
    }
    
    .timeline-icon i {
        font-size: 16px;
    }
    
    .timeline-content {
        margin-left: 10px;
        padding: 15px;
    }
    
    .career-goals-list li {
        flex-direction: column;
    }
    
    .goal-icon {
        margin-bottom: 10px;
    }
}

/* Education Card Styling */
.education-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    align-content: left;
}

.education-item {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    border-left: 3px solid var(--primary-color);
}

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

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
}

.education-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.education-header i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 15px;
}

.education-header h3 {
    color: #ffffff;
    font-size: 18px;
    margin: 0;
    flex: 1;
}

.education-date {
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    margin-left: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.education-item h4 {
    color: #b0b0b0;
    font-size: 16px;
    font-weight: 400;

}

.education-item p {
    color: #a0a0a0;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.education-progress {
    margin-top: 15px;
}

.education-badge {
    display: inline-block;
    margin-top: 15px;
    padding: 5px 12px;
    background-color: rgba(0, 192, 97, 0.15);
    color: #00C061;
    border-radius: 20px;
    font-size: 13px;
}

.education-badge i {
    margin-right: 5px;
}

/* Education Timeline Section - Updated Styles */
.education-item h3, 
.education-item h4 {
    text-align: left;
}

.education-date-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.education-progress, 
.education-badge {
    margin-top: 5px;
}

/* Responsive adjustments for education section */
@media (max-width: 768px) {
    .education-date-container {
        align-items: flex-start;
        margin-top: 5px;
    }
    
    .education-header {
        flex-direction: column;
    }
}

/* Responsive adjustments for education card */
@media (max-width: 768px) {
    .education-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .education-date {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .education-item {
        padding: 15px;
    }
}

/* Updated Skills Section Styling */
.modern-skills-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.skill-slideshow {
    margin-bottom: 40px;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Completely overhauled infinite logo slideshow */
.logo-slideshow-container {
    width: 100%;
    overflow: hidden;
    margin: 20px 0;
    position: relative;
    padding: 25px 0;
}

.logo-track {
    display: flex;
    width: max-content; /* Ensure it takes full width of content */
    animation: slideLogos 30s linear infinite;
}

@keyframes slideLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Move exactly half-way */
    }
}

.reverse .logo-track {
    animation-direction: reverse;
}

.logo-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 25px;
    flex-shrink: 0;
}

.logo-slide img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
    transition: all 0.3s ease;
}

.logo-slide img:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

/* Never pause the animation */
.logo-slideshow-container:hover .logo-track {
    animation-play-state: running !important; 
}

/* Remove unnecessary styling */
.category-title,
.skill-category,
.highlight-category,
.highlight-category::before,
.devops-description, 
.skill-highlight-bar, 
.highlight-progress,
.skills-grid,
.skill-group {
    display: none;
}

.logo-slide span {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-slide {
        margin: 0 15px;
    }
    
    .logo-slide img {
        width: 45px;
        height: 45px;
    }
    
    .logo-slideshow-container {
        padding: 15px 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-slide {
        margin: 0 15px;
    }
    
    .logo-slide img {
        width: 50px;
        height: 50px;
    }
    
    .category-title {
        font-size: 20px;
    }
    
    .devops-description {
        padding: 15px;
    }
}

/* Remove or override previous skill styles */
.skill-item, .skill-bar, .skill-level, .skill-info, .skill-logo {
    /* Reset these styles if needed */
}

/* Specific fixes for tall mobile resolutions (1080 x 2340 and similar) */
@media (max-width: 1080px) and (min-height: 2000px) {
    /* Fix hero section for tall screens */
    .hero {
        min-height: 50vh;
        padding: 150px 10px 100px;
    }
    
    .hero-content {
        gap: 20px;
    }
    
    .profile-pic {
        width: 250px;
        height: 250px;
    }
    
    /* Fix section title spacing */
    .section-title.with-bg-text {
        padding: 20px 0;
        margin-top: 60px;
    }
    
    .section-title.with-bg-text::before {
        font-size: 100px;
    }
    
    /* Fix timeline for tall screens */
    .timeline-content-wrapper {
        min-height: 750px;
    }
    
    /* Fix skills section spacing */
    .modern-skills-container {
        padding: 40px 20px;
    }
    
    /* Fix logo slideshow */
    .logo-slide img {
        width: 60px;
        height: 60px;
    }
    
    /* Ensure proper spacing between sections */
    .about, .professional-timeline, .contact-section {
        margin: 80px auto;
        padding: 60px 30px;
    }
    
    /* Increase footer visibility */
    .footer {
        padding: 30px 0;
    }
    
    /* Ensure back to top button is visible */
    .back-to-top-btn {
        bottom: 50px;
        right: 30px;
        width: 60px;
        height: 60px;
    }
    
    .back-to-top-btn i {
        font-size: 24px;
    }
}

/* Certifications Section Styling - Updated for vertical layout */
.certifications-section {
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.certifications-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); /* Reduced from 280px to 240px */
    gap: 20px;
    padding: 0 15px;
}

.certification-card {
    display: flex;
    flex-direction: column;
    background: rgba(25, 25, 35, 0.8);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    height: auto;
    position: relative; /* Added for gradient line positioning */
}

/* Add theme color gradient line at the top of each card */
.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e90ff, #ff1744);
    z-index: 1;
}

.certification-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(30, 144, 255, 0.3);
}

.certification-logo {
    padding: 15px 10px; /* Reduced padding */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.certification-logo img {
    max-width: 100px; /* Reduced from 80px */
    max-height: 100px; /* Reduced from 80px */
    object-fit: contain;
    transition: transform 0.3s ease;
}

.certification-card:hover .certification-logo img {
    transform: scale(1.1);
}

.certification-content {
    flex: 1;
    padding: 12px; /* Reduced from 15px */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    text-align: center;
}

.certification-content h3 {
    margin: 0 0 6px 0; /* Reduced from 8px */
    font-size: 15px; /* Reduced from 16px */
    color: white;
    padding-right: 30px; /* Make room for the button */
}

.certification-issuer {
    color: #1e90ff;
    font-size: 13px; /* Reduced from 14px */
    font-weight: 500;
    margin: 0;
}

.btn-view-credential {
    position: absolute;
    top: 50%;
    right: 10px; /* Reduced from 15px */
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px; /* Reduced from 32px */
    height: 28px; /* Reduced from 32px */
    background: rgba(30, 144, 255, 0.1);
    color: #1e90ff;
    border: 1px solid rgba(30, 144, 255, 0.2);
    border-radius: 50%;
    text-decoration: none;
    font-size: 12px; /* Reduced from 14px */
    transition: all 0.3s ease;
}

.btn-view-credential:hover {
    background: rgba(30, 144, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

/* Responsive adjustments for certifications */
@media (max-width: 992px) {
    .certifications-container {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Reduced from 250px */
    }
}

@media (max-width: 768px) {
    .certifications-section {
        padding: 30px 0;
    }
    
    .certifications-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* Added for better mobile display */
    }
    
    .certification-logo {
        padding: 12px 8px; /* Further reduced */
    }
    
    .certification-logo img {
        max-width: 55px; /* Further reduced */
        max-height: 55px; /* Further reduced */
    }
    
    .certification-content {
        padding: 10px 8px; /* Further reduced */
    }
    
    .certification-content h3 {
        font-size: 13px; /* Further reduced */
        padding-right: 22px;
    }
    
    .certification-issuer {
        font-size: 11px; /* Further reduced */
    }
    
    .btn-view-credential {
        width: 24px; /* Further reduced */
        height: 24px; /* Further reduced */
        font-size: 10px; /* Further reduced */
        right: 8px;
    }
}

/* Badges Flipbook Animation - Replacing slideshow */
.badges-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 20px;
    padding: 30px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.badge-flipper {
    width: 160px;
    height: 160px;
    perspective: 1000px;
    position: relative;
}

.badge-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.badge-flipper.flip .badge-inner {
    transform: rotateY(180deg);
}

.badge-front, .badge-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    background: rgba(25, 25, 35, 0.3);
    backdrop-filter: blur(5px);
}

.badge-back {
    transform: rotateY(180deg);
}

.badge-front img, .badge-back img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(30, 144, 255, 0.3));
    transition: all 0.3s ease;
}

.badge-flipper:hover .badge-front img, 
.badge-flipper:hover .badge-back img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(30, 144, 255, 0.6));
}

/* Add a shine effect during flip */
@keyframes shine {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.badge-flipper.flip .badge-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    background-size: 200% 100%;
    animation: shine 1s linear;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .badges-container {
        gap: 15px;
    }
    
    .badge-flipper {
        width: 130px;
        height: 130px;
    }
    
    .badge-front img, .badge-back img {
        width: 100px;
        height: 100px;
    }
}

/* Tagline Section now inside Hero - Updated styling */
.hero .tagline-section {
    text-align: center;
    padding: 0 0 30px;
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
}

/* Adjust hero section to accommodate internal tagline */
.hero {
    flex-direction: column;
    padding-top: 5px; /* Increased to account for navbar */
    height: auto;
    min-height: 100vh;
}

/* Make sure the tagline heading matches the styling of other section titles */
.hero .tagline-section #tagline-heading {
    font-size: 36px; /* Slightly smaller to fit within hero */
    margin-bottom: 30px;
}

.hero .tagline-section #tagline-heading::before {
    font-size: 120px;
    animation-duration: 60s !important; /* Slower animation for tagline */
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .hero .tagline-section {
        padding: 0 0 20px;
    }
    
    .hero {
        padding-top: 70px;
    }
    
    .hero .tagline-section #tagline-heading {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .hero .tagline-section #tagline-heading::before {
        font-size: 70px;
    }
}

