:root {
    --primary-color: #6366f1;
    --text-color: #f8fafc;
    --dark-bg: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-effect: rgba(255, 255, 255, 0.1);
    --accent-gradient: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1);
    --skills-gradient: linear-gradient(135deg, #fbd295, #f3c64b, #E87A04);
    --projects-gradient: linear-gradient(135deg,#008080,#94d9f5,#f3f3a0);
    --about-gradient: linear-gradient(135deg,#82deee, #8ec6e2,#388eff);
    --contact-gradient: linear-gradient(135deg, #4B0082,#b6b6fd,#fa5d5d);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    overflow-x: hidden;
    background-color: var(--dark-bg);
    color: var(--text-color);
}



html {
    font-size: 16px;
}

/* New Responsive Navigation */
/* Reset current navigation style */
.nav {
    position: fixed;
    width: 99%;
    height: 10vh;
    justify-content: flex-end;
    align-items: center;
    transform: none;
    display: flex;
    z-index: 1000;
    display: flex;
    background: transparent;
    font-size: 25px;

        

    
}
.desktop-nav{
    position: fixed;
    width: 99%;
    height: 10vh;
    justify-content: flex-end;
    align-items: center;
    transform: none;
    display: flex;
    z-index: 1000;
    display: flex;
    background: transparent;
    backdrop-filter: blur(10px);
    font-size: 25px;
}

/* Desktop navigation */

.desktop-nav .nav-item {
    margin: 0 15px;
    background: none;
    color: rgb(209, 248, 252);
    font-weight: 650;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 14px;
    
}

.desktop-nav .nav-item:hover,
.desktop-nav .nav-item.active {
    color: white;
    transform: none;
}

.desktop-nav .nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s;
}

.desktop-nav .nav-item:hover::after,
.desktop-nav .nav-item.active::after {
    width: 100%;
}

/* Mobile navigation */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.hamburger-line {
    width: 60%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-nav {
    position: fixed;
    top: -230px;
    right: -100%;
    width: 250px;
    height: 140vh;
    background: transparent;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease;
    z-index: 1000;
}

.mobile-nav .nav-item {
    width: auto;
    height: auto;
    margin: 15px 0;
    background: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-nav .nav-item:hover,
.mobile-nav .nav-item.active {
    color: white;
    transform: none;
}

.mobile-nav.open {
    right: 0;
}

/* Animated hamburger when open */
.mobile-nav-toggle.open .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-nav-toggle.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.open .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive breakpoints */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none;
    }
}

.slide-container {
    width: 100%;
    height: 100vh;
    scroll-snap-type: y proximity;
    -webkit-overflow-scrolling: touch;
    overflow-y: scroll;
    scroll-behavior: smooth;
    position: relative;
}

.slide {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    padding: 1rem;  /* Reduced padding for small screens */
    position: relative;
    overflow: hidden;
}

.slide-content {
    max-width: 1200px;
    width: 100%;
    padding: 1.5rem;  /* Reduced padding for better use of space */
    border-radius: 1rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 80px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

/* Particle Background */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Three.js Canvas */
.three-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Navigation - Improved for mobile */
.navi {
    position: fixed;
    right: 1rem;  /* Moved closer to edge on all devices */
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.nav-item1 {
    display: block;
    width: 10px;  /* Slightly smaller dots */
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    margin: 15px 0;  /* Reduced spacing */
    position: relative;
    transition: all 0.3s;
}

.nav-item1:hover, .nav-item1.active {
    background: #ffffff;
    transform: scale(1.5);
}

.nav-label {
    position: absolute;
    right: 20px;  /* Closer to dot */
    top: 50%;
    transform: translateY(-50%);
    color: rgb(205, 60, 60);
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;  /* Reduced spacing */
    font-size: 10px;  /* Smaller font */
    white-space: nowrap;
}

.nav-item1:hover .nav-label {
    opacity: 1;
    right: 25px;
}

/* Slide 1 - Hero - More responsive layout */
#home {
    background: var(--accent-gradient);
    position: relative;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent);
    animation: pulse 10s ease-in-out infinite;
    z-index: 0;
}

/* Hero section - Enhanced responsiveness */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;  /* Changed to center for better alignment */
    width: 100%;
    gap: 1.5rem;  /* Reduced gap */
    position: relative;
    flex-wrap: wrap;  /* Allow wrapping on very small screens */
}

.hero-content {
    flex: 1;
    min-width: 280px;  /* Ensure minimum width for content */
    max-width: 100%;
}

.profile-container {
    position: relative;
    width: 370px;  /* Reduced default size */
    height: 540px;
    margin: 0 auto;  /* Center on smaller screens */
    order: 2;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.5s;
    position: relative;
    z-index: 2;
}

/* Accessibility skip link */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    padding: 8px;
    background: white;
    color: var(--primary-color);
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Fix for h4 becoming a paragraph */
.hero-description {
    text-align: justify;
    word-spacing: 3px;
    margin-top: 1.5%;
    font-size: 0.95rem;
    line-height: 1.5;
}

.hero h1 {
    font-size: clamp(2rem, 5vw + 1rem, 3.5rem);
}

.hero h2 {
    font-size: clamp(1rem, 2vw + 0.5rem, 1.5rem);
}

.hero h3 {
    font-size: clamp(0.9rem, 1.5vw + 0.5rem, 1.25rem);
}

.section-title {
    font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
}

/* Section titles (replacing h1 in sections) */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    html {
        font-size: 13px;
    }
}   

.profile-container:hover .profile-img {
    transform: scale(1.03);  /* Smaller scale effect */
}

h4 {
    text-align: justify;
    word-spacing: 3px;  /* Reduced spacing */
    margin-top: 1.5%;
    font-size: 0.95rem;  /* Slightly smaller font */
    line-height: 1.5;
    margin-right: 5%;  /* Better readability */
}

.profile-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);  /* Dynamic width based on container */
    height: calc(100% + 20px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: spin 20s linear infinite;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

/* Improved responsive breakpoints */
@media (max-width: 992px) {
    .hero {
        flex-direction: column-reverse;  /* Profile on top */
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .profile-container {
        order: 1;
        margin-bottom: 1rem;
    }
    
    h4 {
        text-align: center;  /* Center text on smaller screens */
    }
}

@media (max-width: 768px) {
    .profile-container {
        width: 200px;  /* Smaller profile on medium screens */
        height: 265px;  /* Maintain aspect ratio */
    }
    
    .hero h1 {
        font-size: 3rem;  /* Smaller headline */
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .slide-content {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .profile-container {
        width: 150px;  /* Even smaller on phones */
        height: 200px;  /* Maintain aspect ratio */
    }
    
    .hero h1 {
        font-size: 2.2rem;  /* Much smaller headline */
    }
    
    .hero h2 {
        font-size: 1.1rem;
    }
    
    h4 {
        font-size: 0.9rem;
    }
    
    .slide-content {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        margin-top: 10% !important;  /* Override inline style */
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero h1 {
    font-size: 3.5rem;  /* Smaller default for better scaling */
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: white;
    animation: line-anim 2s forwards;
}

@keyframes line-anim {
    to {
        width: 100%;
    }
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.typing-text {
    position: relative;
    font-style: italic;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid white;
    animation: typing 4s steps(40) infinite, blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    0% {
        width: 0;
    }
    50% {
        width: 100%;
    }
    100% {
        width: 0;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: white;
    }
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--primary-color);
    border-radius: 2rem;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-top: 5%;
}

.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: 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Slide 2 - Skills - Improved grid for small screens */
#skills {
    background: var(--skills-gradient);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));  /* Smaller minimum size */
    gap: 1.5rem;  /* Reduced gap */
    margin-top: 1.5rem;  /* Reduced margin */
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem;  /* Slightly reduced padding */
    background: var(--glass-effect);
    border-radius: 1rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    height: 120px;  /* Fixed height for consistency */
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.skill-card::after {
    content: '';
    position: absolute;
    inset: 5px;
    background: var(--glass-effect);
    border-radius: 0.75rem;
    z-index: 1;
}

.skill-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-icon {
    font-size: 2.5rem;  /* Slightly smaller icon */
    margin-bottom: 0.75rem;  /* Reduced margin */
}

#skill-git{
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}
#skill-salesforce{
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

/* Fix for Salesforce icon text */
.skill-content h3[style="position:absolute; top:135%;"] {
    position: static !important;  /* Override inline style */
    margin-top: 0.5rem;
}

@media (max-width : 576px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr);  /* Force 2 columns on smallest screens */
        gap: 1rem;
    }
    
    .skill-icon {
        font-size: 4rem;  /* Even smaller icons */
    }
    
    #skill-html{
        font-size: 4rem;  
    }
    #skill-css{
        font-size: 4rem;  
    }
    
    .skill-card {
        padding: 1rem;
        height: 120px;  /* Smaller cards */
    }
    #skill-git{
        font-size: 4rem;
        
    }
    #skill-salesforce{
        font-size: 4rem;
        
    }
    

    
    .skill-content h3 {
        font-size: 0.9rem;  /* Smaller text */
    }
}

#projects {
    background: var(--projects-gradient);
}

/* Projects Slider Container */
.projects-slider-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Projects Slider */
.projects-slider {
    width: 100%;
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
}

.project-card {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: center;
    background: var(--glass-effect);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.5s;
}

.project-card.clone {
    /* Style for cloned card for infinite scrolling */
    opacity: 1;
}

/* Desktop view - two cards per view */
@media (min-width: 1025px) {
    .project-card {
        flex: 0 0 calc(50% - 0.5rem);
        width: calc(50% - 0.5rem);
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .project-card {
        flex: 0 0 100%;
        width: 100%;
        scroll-snap-align: center;
    }
}

/* Add these CSS rules to fix mobile slider issues */

@media (max-width: 767px) {
    .project-card {
        flex: 0 0 100%;
        width: 100%;
        scroll-snap-align: start;
    }
    
    .projects-slider {
        scroll-snap-type: x mandatory;
        scrollbar-width: none; /* Firefox */
        padding-bottom: 10px; /* Space for potential scrollbar */
    }
    
    .projects-slider::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }
    .slider-nav {
        background: rgba(255, 255, 255, 0.3);
        width: 36px;
        height: 36px;
    }
    
    .prev-btn {
        left: 0;
    }
    
    .next-btn {
        right: 0;
    }
}

/* Navigation Buttons */
.slider-nav {
    position: absolute;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.dot {
  
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* Project Card Styles */
.project-img-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-btn {
    padding: 0.5rem 1rem;
    background: white;
    color: var(--primary-color);
    border-radius: 2rem;
    text-decoration: none;
    font-weight: bold;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s;
}

.project-card:hover .project-btn {
    transform: translateY(0);
    opacity: 1;
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.project-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.project-tag {
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    font-size: 0.8rem;
}

/* Tablet Styling */
@media (min-width: 768px) and (max-width: 1024px) {
    .project-card {
        flex: 0 0 90%;
        width: 90%;
    }
    
    .projects-slider {
        overflow-x: auto;
    }
}

/* Mobile Styling */
@media (max-width: 767px) {
    .projects-slider-container {
        margin: 1rem auto 0.5rem;
    }
    
    .project-card {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .project-img-container {
        height: 180px;
    }
    
    .project-info {
        padding: 1.2rem;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    .project-desc {
        font-size: 0.9rem;
    }
    
    .slider-nav {
        width: 35px;
        height: 35px;
    }
    
    .prev-btn {
        left: 5px;
    }
    
    .next-btn {
        right: 5px;
    }
}

/* Slider info text */
.slider-info {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

.slider-responsive-note {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

@media (max-width: 767px) {
    .slider-info {
        display: none;
    }
}

/* Slide 4 - About - Better responsive layout */
/* About section styles with improved positioning */
#about {
    background: var(--about-gradient);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Reset positioning for the slide content */
#about .slide-content {
    width: 100%;
    max-width: 1200px;
    margin-top: 0;
    padding: 3rem 1.5rem;
    position: relative;
    z-index: 5;
}

/* Ensure title has proper spacing */
#about h1 {
    text-align: center;
    margin-bottom: 5px;
    margin-top: 0;
    position: relative;
    z-index: 5;
}

/* Fix the particle canvas positioning */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Improved grid layout */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    position: relative;
    z-index: 5;
}

.about-text {
    position: relative;
}

.about-text p {
    line-height: 1.6;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Stats section */
.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.stat-card {
    background: var(--glass-effect);
    padding: 1.0rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-number {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
    color: white;
}

.stat-label {
    font-size: 0.8rem;
}

.resume-button-container {
    display: flex;
    justify-content: flex-start;
    margin-top: 80px;
}

.resume-button {
    display: inline-block;
    background: linear-gradient(135deg, #aaddf7, #51b9ee);
    color: rgb(0, 0, 0);
    padding: 12px 36px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(110, 142, 251, 0.4);
    transition: all 0.3s ease;
}

.resume-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(110, 142, 251, 0.6);
}

.resume-button:active {
    transform: translateY(-1px);
}

/* Timeline styling */
.timeline {
    position: relative;
    max-width: 450px;
    margin-top: 0px ;
}

.timeline-item {
    padding: 0 15px 20px 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 11px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
}

.timeline-date {
    font-weight: bold;
    margin-bottom: 3px;
    color: white;
    font-size: 0.9rem;
}

.timeline-title {
    font-size: 0.95rem;
}

.timeline-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    #about .slide-content {
        padding: 2.5rem 1.5rem;
    }
    
    .about-container {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    #about .slide-content {
        padding: 2rem 1.25rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    #about h1 {
        margin-bottom: 1.5rem;
    }
    
    .about-visual {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    #about .slide-content {
        padding: 1.5rem 1rem;
        margin-top:13%;
    }
    
    #about h1 {
        font-size: 1.8rem;
        margin-bottom: 1.25rem;
    }
    
    .about-text p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .about-stats {
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 0.3rem 0.1rem;
    }
    
    .stat-number {
        font-size: 1.0rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .timeline-item {
        padding: 0 10px 15px 30px;
    }
    
    .timeline-date, .timeline-title, .timeline-desc {
        font-size: 0.8rem;
    }
    .resume-button {
        font-size: 0.75rem;
        padding: 6px 12px;
        position: absolute;
        top: 75%;
    }
}

/* Slide 5 - Contact - Better form layout on small screens */
#contact {
    background: var(--contact-gradient);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr;  /* Changed to single column by default */
    gap: 1.5rem;  /* Reduced gap */
}

.contact-form-container {
    position: relative;
    max-width: 600px;  /* Limited maximum width */
    margin: 0 auto;  /* Center the form */
    width: 100%;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;  /* Reduced margin */
    justify-content: center;
}

.social-link {
    width: 45px;  /* Slightly smaller */
    height: 45px;
    border-radius: 50%;
    background: var(--glass-effect);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;  /* Slightly smaller */
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0);
    transition: 0.5s;
    border-radius: 50%;
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link:hover {
    transform: translateY(-3px) rotate(360deg);  /* Smaller transform */
}

.contact-form {
    margin-top: 1.5rem;  /* Reduced margin */
    display: grid;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.9rem;  /* Slightly reduced padding */
    border: none;
    border-radius: 0.5rem;
    background: var(--glass-effect);
    color: white;
    outline: none;
    transition: all 0.3s;
    margin: 1%;
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.2);
}

.form-label {
    position: absolute;
    top: 0.9rem;  /* Match input padding */
    left: 1rem;
    transition: all 0.3s;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;  /* Slightly smaller */
}


.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -20px;
    left: 5px;
    font-size: 0.8rem;
    color: white;
}

.form-input::placeholder {
    color: white;
}

.form-submit {
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    background: white;
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.form-submit::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: 0.5s;
}

.form-submit:hover::before {
    left: 100%;
}

.form-submit:hover {
    transform: translateY(-3px);  /* Smaller transform */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 576px) {
    .form-input {
        padding: 0.8rem;  /* Even smaller padding */
        font-size: 0.9rem;  /* Smaller font */
    }
    
    .form-label {
        top: 0.8rem;
        font-size: 0.85rem;  /* Smaller font */
    }
    
    .form-submit {
        padding: 0.7rem;
        font-size: 0.9rem;  /* Smaller button text */
    }
    
    .social-link {
        width: 40px;  /* Even smaller */
        height: 40px;
    }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 40px;  /* Smaller loader */
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* Fix heading sizes */
.slide-content h1 {
    font-size: 2.5rem;  /* Default heading size */
    margin-bottom: 1.5rem;
    text-align: center;
}

@media (max-width: 768px) {
    .slide-content h1 {
        font-size: 2rem;  /* Smaller on tablets */
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 576px) {
    .slide-content h1 {
        font-size: 1.75rem;  /* Even smaller on phones */
        margin-bottom: 1rem;
    }
}

/* Additional accessibility improvements for touch devices */
@media (hover: none) {
    .nav-item {
        width: 12px;  /* Make nav dots larger for touch */
        height: 12px;
        margin: 25px 0;  /* More spacing between dots */
    }
    
    .nav-label {
        opacity: 1;  /* Always show labels on touch devices */
        font-size: 0;  /* But hide text by default */
    }
    
    .nav-item.active .nav-label {
        font-size: 10px;  /* Show text for active item */
    }
    
    .project-overlay {
        opacity: 0.7;  /* Always show overlay on touch devices */
    }
    
    .project-btn {
        transform: translateY(0);
        opacity: 1;  /* Always show button on touch devices */
    }
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--primary-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* Fix for Salesforce icon text position */
.skill-content .fab.fa-salesforce + h3 {
    position: static !important;
    margin-top: 0.75rem;
}

/* Focus states for accessibility */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Enhanced form validation styles */
.form-input:invalid:not(:placeholder-shown) {
    border: 1px solid #ff6b6b;
}

.form-input:valid:not(:placeholder-shown) {
    border: 1px solid #4ecdc4;
}

/* Loading animation improvements */
@keyframes pulse-preloader {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

.preloader {
    animation: pulse-preloader 1.5s infinite;
}

/* Print styles */
@media print {
    .nav, .particle-canvas, .social-links, .form-submit, .back-to-top {
        display: none !important;
    }
    
    body, .slide-container {
        background: white !important;
        color: black !important;
        overflow: visible !important;
    }
    
    .slide {
        break-inside: avoid;
        page-break-inside: avoid;
        height: auto !important;
    }
    
    .slide-content {
        box-shadow: none !important;
        border: none !important;
        background: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}
