/* General Styles */
@import url('https://fonts.googleapis.com/css2?family=Boldonse&family=Winky+Sans:ital,wght@0,300..900;1,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Boldonse&family=Winky+Sans:ital,wght@0,300..900;1,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Boldonse&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Oswald:wght@200..700&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&family=Special+Gothic+Expanded+One&family=Winky+Sans:ital,wght@0,300..900;1,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Boldonse&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Oswald:wght@200..700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&family=Special+Gothic+Expanded+One&family=Winky+Sans:ital,wght@0,300..900;1,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Boldonse&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Oswald:wght@200..700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&family=Special+Gothic+Expanded+One&family=Ultra&family=Winky+Sans:ital,wght@0,300..900;1,300..900&display=swap');
html {
    scroll-behavior: smooth; /* Enable smooth scrolling for the entire page */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0f0f1e;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(72, 88, 227, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(150, 8, 216, 0.05) 0%, transparent 50%);
    color: #ffffff;
    text-align: center;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    position: relative;
}

/* Modern animated background overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0 L100,100" stroke="rgba(72, 88, 227, 0.03)" stroke-width="0.5"/><path d="M100,0 L0,100" stroke="rgba(150, 8, 216, 0.03)" stroke-width="0.5"/></svg>') repeat;
    opacity: 0.5;
    z-index: -1;
    animation: backgroundShift 60s linear infinite;
    pointer-events: none;
}

@keyframes backgroundShift {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}


@keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Initial state: Hidden before scrolling */
  .scroll-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
  }

  /* When 'show' class is added via JavaScript */
  .scroll-animation.show {
    opacity: 1;
    transform: translateY(0);
  }




/* --- Header Styles --- */
#main-header {
    background-color: rgba(15, 15, 30, 0.8); /* Semi-transparent dark background */
    backdrop-filter: blur(10px); /* Modern blur effect */
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    padding: 15px 0; /* Slightly more padding */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(72, 88, 227, 0.2); /* Glowing effect */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Smooth transition with easing */
    border-bottom: 1px solid rgba(72, 88, 227, 0.2); /* Subtle border */
}

#main-header img {
    width: 70px;
    height: auto;
    margin-right: 30px; /* Increased from 10px to 30px for more space */
    margin-left: -80px; /* Adjusted from -100px to -80px */
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 15px rgba(72, 88, 227, 0.3);
    border: 2px solid rgba(72, 88, 227, 0.2);
    object-fit: cover;
}

#main-header img:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(150, 8, 216, 0.4);
    border-color: rgba(150, 8, 216, 0.3);
}

.header-container {
    max-width: 1200px; /* Or your preferred max width */
    margin: 0 auto;
    padding: 0 20px; /* Horizontal padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Logo Styles --- */
.logo {
    text-decoration: none;
    font-weight: bold;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo:hover .logo-part1,
.logo:hover .logo-part2 {
    text-shadow: 0 0 15px rgba(72, 88, 227, 0.4), 0 0 30px rgba(150, 8, 216, 0.3);
}

.logo-part1 {
    background: linear-gradient(135deg, #4858e3, #9608d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-family: "Playfair Display", serif;
    font-weight: 900;
    font-size: 2.8rem;
    margin-left: -200px; /* Adjusted from -210px to -180px to account for the new spacing */
    position: relative;
    text-shadow: 0 0 10px rgba(72, 88, 227, 0.2);
    letter-spacing: 1px;
}

.logo-part2 {
    background: linear-gradient(135deg, #9608d8, #4858e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-family: "Playfair Display", serif;
    font-weight: 900;
    font-size: 2.8rem;
    position: relative;
    text-shadow: 0 0 10px rgba(150, 8, 216, 0.2);
    letter-spacing: 1px;
}

.logo-part1::after {
    display: inline-block;
    width: 10px;
}


/* --- Navigation Styles --- */
.main-nav {
    display: flex; /* Align toggle button and nav list */
    align-items: center;
}

/* Modern Menu Toggle Button */
.menu-toggle {
    display: none; /* Hidden by default on larger screens */
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1010; /* Ensure it's above the nav links when closed */
    width: 50px;
    height: 20px;
    padding: 0;
    position: relative;
    outline: none;
}

/* New menu icon style */
.menu-icon {
    width: 30px;
    height: 20px;
    position: relative;
    display: inline-block;
    z-index: 2;
}

.menu-icon__line {
    position: absolute;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, #4858e3, #9608d8);
    border-radius: 2px;
    transition: transform 0.25s ease, width 0.25s ease;
    box-shadow: 0 0 5px rgba(150, 8, 216, 0.5);
}

.menu-icon__line-left {
    left: 0;
    top: 0;
    width: 60%;
}

.menu-icon__line-middle {
    left: 0;
    top: 9px;
    width: 100%;
}

.menu-icon__line-right {
    left: 40%;
    bottom: 0;
    width: 60%;
}

/* Hover effects for menu icon */
.menu-toggle:hover .menu-icon__line {
    box-shadow: 0 0 8px rgba(150, 8, 216, 0.7);
}

.menu-toggle:hover .menu-icon__line-left {
    width: 70%;
}

.menu-toggle:hover .menu-icon__line-right {
    width: 70%;
    left: 30%;
}

/* --- Navigation Links --- */
.nav-links {
    list-style: none; /* Remove default list style */
    display: flex; /* Horizontal layout for desktop */
    align-items: center; /* Vertically align items */
    margin: 0;
    padding: 0;
    list-style: none; /* Remove default list style */
}

.nav-links li {
    margin: 0 5px; /* Spacing for desktop */

}

.nav-links a {
    color: #ffffff; /* White links for desktop */
    text-decoration: none;
    font-size: 1rem; /* Adjust as needed */
    font-weight: 500;
    font-family: "Winky Sans", sans-serif; /* Example font */
    transition: color 0.3s ease;
    text-transform: uppercase; /* Match screenshot style */
    display: inline-block;
    padding: 10px 15px;
    /**border: 2px solid #6b88e7;**/ /* Optional border */
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    text-align: center;

    }

    .nav-links a:hover {
        background-color: #6b88e7; /* Change to desired color on hover */

}

/* Contact Section Styles
.contact-info .whats , .email {
    border: 2px solid #6b88e7;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 5px;
}
.adress p {
    border: 2px solid #6b88e7;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 5px;
}
*/



/* Use a purple/magenta hover like the active mobile links */
.nav-links a:hover,
.nav-links a:focus {
    color: #3e085a; /* Vibrant purple/magenta */
}

/* --- Theme Toggle Button (Optional) --- */
.theme-toggle {
    background: #ff9500; /* Orange background */
    border: none;
    color: white;
    padding: 8px;
    border-radius: 50%; /* Circular */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px; /* Space between toggle and menu */
    /* Hide for now if not implemented */
    /* display: none; */
}
/* You'd add JS to swap the icon inside this button */

/* --- Responsive Styles (Mobile First Approach) --- */
@media (max-width: 768px) {
    .logo {
        font-size: 1.4rem; /* Slightly smaller logo on mobile */
        margin-right: -55px;
    }
    .logo-part1 {
        background: linear-gradient(135deg, #4858e3, #9608d8);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: transparent;
        font-family: "Playfair Display", serif;
        font-weight: 900;
        font-size: 1.4rem;
        margin-left: -120px; /* Adjusted from -60px to -40px for better spacing on mobile */
        position: relative;
        text-shadow: 0 0 10px rgba(72, 88, 227, 0.2);
        letter-spacing: 1px;
    }

    .logo-part2 {
        background: linear-gradient(135deg, #9608d8, #4858e3);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: transparent;
        font-family: "Playfair Display", serif;
        font-weight: 900;
        font-size: 1.4rem;
        position: relative;
        text-shadow: 0 0 10px rgba(150, 8, 216, 0.2);
        letter-spacing: 1px;
    }

    .menu-toggle {
        display: flex; /* Show hamburger on mobile with flex display */
    }
    #main-header img {
        width: 55px;
        height: 55px;
        margin-left: 5px;
        margin-right: 20px; /* Added margin-right for spacing on mobile */
        border-radius: 50%;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 0 15px rgba(72, 88, 227, 0.3);
        border: 2px solid rgba(72, 88, 227, 0.2);
        object-fit: cover;
    }


    .nav-links {
        /* Modern mobile menu */
        position: fixed;
        top: 0;
        right: -100vw; /* Use viewport width to ensure it's completely off-screen */
        width: 80%; /* Take up 80% of screen width */
        height: 100vh;
        background: rgba(15, 15, 30, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        flex-direction: column;
        align-items: flex-start; /* Left-align items */
        padding: 100px 40px 40px; /* More padding at top for header */
        transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
        z-index: 1000;
        border-left: 1px solid rgba(72, 88, 227, 0.2);
        visibility: hidden; /* Hide when off-screen */
    }

    /* Active state for the mobile menu */
    .nav-links.active {
        right: 0; /* Slide in from right */
        visibility: visible; /* Make visible when active */
    }

    .nav-links li {
        margin: 15px 0;
        width: 100%;
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        transition-delay: calc(0.05s * var(--item-index, 0));
    }

    /* Animate list items when menu is active */
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.7);
        padding: 12px 15px;
        border-radius: 8px;
        background: rgba(72, 88, 227, 0.1);
        width: 100%;
        display: flex;
        align-items: center;
        transition: all 0.3s ease;
    }

    .nav-links a i {
        margin-right: 12px;
        font-size: 1.2rem;
        color: rgba(150, 8, 216, 0.8);
        transition: transform 0.3s ease;
    }

    .nav-links a:hover,
    .nav-links a:focus {
        color: #ffffff;
        background: rgba(72, 88, 227, 0.2);
        box-shadow: 0 0 15px rgba(72, 88, 227, 0.2);
    }

    .nav-links a:hover i,
    .nav-links a:focus i {
        transform: translateX(5px);
        color: rgba(150, 8, 216, 1);
    }

    /* Modern animation for menu icon to 'X' when menu is active */

    /* Transform to X animation */
    .menu-toggle.active .menu-icon__line-left {
        transform: translateY(9px) rotate(45deg);
        width: 100%;
        left: 0;
    }

    .menu-toggle.active .menu-icon__line-middle {
        transform: translateX(-5px);
        opacity: 0;
    }

    .menu-toggle.active .menu-icon__line-right {
        transform: translateY(-9px) rotate(-45deg);
        width: 100%;
        left: 0;
    }

    /* Add glow effect when active */
    .menu-toggle.active .menu-icon__line {
        background: linear-gradient(90deg, #9608d8, #4858e3);
        box-shadow: 0 0 10px rgba(150, 8, 216, 0.8);
    }


     /* Optional: Hide theme toggle on smallest screens if needed */
    /* .theme-toggle {
        display: none;
    } */
}

/* Optional: Adjust padding/logo size for very small screens */
@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
     }
    #main-header {
        padding: 20px 0;
    }
    .logo {
        font-size: 1.2rem;
    }
}






/* Sections */
section {
    padding: 100px 20px;
    margin-top: 50px;
}

section h1 {
    font-size: 4em;
    background: linear-gradient(to right, #303dcc, #9608d8);
    -webkit-background-clip: text;
    background-clip: text; /* Standard property for compatibility */
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback for browsers that don't support background-clip */
    padding: 10px 20px;
    border-radius: 10px;
    margin: 0;
    font-family: "Playfair Display", serif;
    font-weight: 900;
    font-optical-sizing: auto;
    font-style: normal;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    /**
    -webkit-text-stroke: 1px white;
    text-stroke: 1px white; **/
}

#home {
    background: url('https://source.unsplash.com/1600x900/?technology,code') no-repeat center center/cover;
    height: 100%;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: -8px;
    margin-top: 60px;

}

#home a {
    display: flex;
    align-items: center;
    gap: 10px;
}

#thinkout {
    font-family: "Playfair Display", serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
    #home a {
        flex-direction: column-reverse; /* Stack items vertically in reverse order */
    }
    #home {
        margin-top: 25px;
    }

    /* Mobile styles for home action buttons */
    .home-action-buttons {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-bottom: 25px;
        width: 95%;
    }

    .home-button {
        padding: 6px 10px;
        font-size: 0.7rem;
        min-width: 90px;
        max-width: 120px;
    }

    /* Mobile styles for follow me section */
    .follow-me-section {
        margin-top: 15px;
        margin-bottom: 30px;
    }

    /* Extra small screens */
    @media (max-width: 380px) {
        .home-button {
            padding: 5px 8px;
            font-size: 0.65rem;
            min-width: 0;
            max-width: none;
            width: 48%;
        }

        .home-action-buttons {
            gap: 6px;
            width: 90%;
            max-width: 280px;
        }

        .home-button i {
            font-size: 0.65rem;
        }
    }

    /* Very small screens */
    @media (max-width: 320px) {
        .home-button {
            padding: 4px 6px;
            font-size: 0.6rem;
        }

        .home-action-buttons {
            width: 95%;
        }
    }

    .follow-me-icons {
        gap: 15px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .about-container {
        flex-direction: column;
        align-items: center;
    }

    .about-image, .about-text {
        max-width: 100%;
        width: 100%;
    }

    .about-image {
        margin-bottom: 5px;
    }

    .download-cv-container {
        margin-top: 10px;
    }
}

#home h3 {
    font-size: 3em;
    margin: 0;
    padding: 5px 20px;
    font-family: "Playfair Display", serif;
    color: #7a4adb;
    font-weight: bold;
    text-align: center;
    margin-top: -30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
#contact img {
    border-radius: 50%;
}
#profile-photo {
    pointer-events: none; /* Prevents interactions */
    -webkit-user-drag: none; /* Prevents dragging */
    user-select: none; /* Prevents selecting the image */
}

#about span {
    display: inline-block;
    background: linear-gradient(135deg, rgba(72, 88, 227, 0.9), rgba(150, 8, 216, 0.9));
    color: #fff;
    padding: 12px 28px;
    margin-top: 20px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(72, 88, 227, 0.3);
    z-index: 1;
}
#about span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(150, 8, 216, 0.9), rgba(72, 88, 227, 0.9));
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

#about span:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(72, 88, 227, 0.4);
}



/*
#home span {
    font-size: 4em;
    background: linear-gradient(to right, #343acc, #9608d8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    padding: 10px 20px;
    border-radius: 10px;
    margin: 0;
    font-family: "Winky Sans", sans-serif;
    font-weight: bold;
    margin-bottom: -10px;
    margin-top: -10px;
}

*/
h2 {
    font-size: 2.8em;
    background: linear-gradient(to right, #4858e3, #9608d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    padding: 10px 20px;
    margin: 0;
    display: inline-block;
    font-family: "Playfair Display", serif;
    font-weight: 700;
    position: relative;
    letter-spacing: 1px;
    margin-top: -20px;
}

h2::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #4858e3, #9608d8);
    border-radius: 3px;
}



#projects, #skills, #contact, #experiences {
    background: rgba(15, 15, 30, 0.5);
    border-radius: 20px;
    margin: 30px 20px;
    padding: 50px 40px;
    border: 1px solid rgba(72, 88, 227, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2),
                0 0 20px rgba(72, 88, 227, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#projects:hover, #skills:hover, #contact:hover, #experiences:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3),
                0 0 25px rgba(72, 88, 227, 0.2);
}


 /* About Section styles */

#about {
    background: rgba(15, 15, 30, 0.5);
    border-radius: 20px;
    margin: 30px 20px;
    padding: 50px 40px;
    text-align: center;
    border: 1px solid rgba(72, 88, 227, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2),
                0 0 20px rgba(72, 88, 227, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: -20px;
}

#about:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3),
                0 0 25px rgba(72, 88, 227, 0.2);
}

#about h2 {
    text-align: center; /* Or align as needed */
    font-size: 2.5em; /* Adjust size */
    color: #fff;
    margin-bottom: 40px;
}

.about-container {
    /* display: flex; align-items: flex-start; gap: 40px; */ /* Kept inline for demo, move to CSS */
    align-items: flex-start; /* Align items to the top */
}
.about-image a {
    text-decoration: none; /* Remove underline from link */
    color: #fff; /* White text for the button */
}

.about-image {
    flex-basis: 40%; /* Adjust width ratio */
    max-width: 350px; /* Max image width */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-image img {
    width: 75%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
}

.download-cv-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.about-text {
    flex-basis: 60%;
}

.greeting-name {
    font-size: 2.8em;
    margin-bottom: -15px;
    color: #754bc4;
    font-weight: bold;
}
.q1 {
    font-size: 2.5em;
    margin-bottom: -5px;
    color: #fff;
    margin-top: -8px;
    font-family: "Playfair Display", serif;
    font-weight: 900;
}

.about-text .job-title {
    font-size: 1.5em;
    color: #fff;
    margin-bottom: -8px;
    font-weight: bold;
}

.paragraph1 {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #ccc; /* Light grey for paragraph text */
}



.about-text .contact-details p {
    margin-bottom: 10px;
    color: #fff; /* White for contact details */
    font-size: 15px;
}

.contact-details .label {
    display: inline-block;
    width: 80px; /* Adjust width as needed for alignment */
    font-weight: bold;
    color: #bbb; /* Slightly dimmer labels */
}

.btnn.download-cv-btn {
    display: inline-block;
    background: linear-gradient(135deg, rgba(72, 88, 227, 0.9), rgba(150, 8, 216, 0.9));
    color: #fff;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(72, 88, 227, 0.3);
    z-index: 1;
    align-items: center;
    justify-content: center;
}

.btnn.download-cv-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(150, 8, 216, 0.9), rgba(72, 88, 227, 0.9));
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.btnn.download-cv-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(72, 88, 227, 0.4);
}

.btnn.download-cv-btn:hover::before {
    width: 100%;
}
.contact-details .label {
    font-size: 1em; /* Slightly smaller label text */
}

/* --- Responsive CSS for Phones --- */
@media (max-width: 768px) { /* Adjust breakpoint (e.g., 600px) if needed */
    .about-container {
        flex-direction: column; /* Stack elements vertically */
        display: flex;
        gap: 25px;
        align-items: center;
    }

    /* --- Reordering for mobile --- */
    .about-text {
        order: 1; /* Text first on mobile */
        width: 100%;
        max-width: 100%;
        text-align: center;
        margin-bottom: -20px;
        margin-top: -10px;
    }

    .about-image {
        order: 2; /* Image second on mobile */
        width: 100%;
        max-width: 100%;
        margin-bottom: 5px;
    }

    /* Switch desktop/mobile visibility */
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
        order: 3; /* Button third on mobile */
        width: 100%;
        justify-content: center;
        margin-bottom: 20px;
        margin-top: 10px;
    }

    /* --- Text Styling --- */
    .about-text p {
        text-align: center;
    }

    .greeting-name,
    .job-title,
    .paragraph1 {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center text elements */
        text-align: center;   /* Center the text content itself */
        width: 100%; /* Allow text block to take full width */
    }

    /* --- Image Styling --- */
    .about-image img {
        display: block; /* Remove potential extra space below image */
        width: 40%;   /* Make image fill its container */
        max-width: 300px; /* Limit width on mobile */
        height: auto;
        margin: 0 auto; /* Center image */
        border-radius: 8px;
    }

    /* --- Contact Details Styling --- */
    .contact-details {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .contact-details p {
        margin-bottom: 8px; /* Adjust spacing */
        font-size: 0.9em;  /* Slightly smaller text */
        text-align: center;
    }

    .contact-details .label {
        font-size: 1em; /* Slightly smaller label text */
        display: inline-block;
        width: auto;
        margin-right: 5px;
    }
}


#projects div {
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;

}
.intro-text {
    max-width: 500px;
    text-align: left;
    font-family: "JetBrains Mono", monospace;
    margin-bottom: 30px;
}

/* Home Action Buttons */
.home-action-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    margin-top: -10px;
    width: 90%;
    max-width: 400px;
}

.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 30px;
    font-family: "JetBrains Mono", monospace;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-width: 120px;
    max-width: 160px;
    flex: 1;
}

.contact-me-btn {
    background: linear-gradient(135deg, rgba(72, 88, 227, 0.9), rgba(150, 8, 216, 0.9));
    color: white;
    box-shadow: 0 4px 15px rgba(72, 88, 227, 0.3);
}

.download-cv-btn {
    background: white;
    color: #333;
    border: 1px solid rgba(72, 88, 227, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.home-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.contact-me-btn::before {
    background: linear-gradient(135deg, rgba(150, 8, 216, 0.9), rgba(72, 88, 227, 0.9));
}

.download-cv-btn::before {
    background: rgba(72, 88, 227, 0.1);
}

.home-button:hover {
    transform: translateY(-3px);
}

.contact-me-btn:hover {
    box-shadow: 0 7px 20px rgba(72, 88, 227, 0.4);
}

.download-cv-btn:hover {
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.15);
}

.home-button:hover::before {
    width: 100%;
}

.home-button i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.home-button:hover i {
    transform: translateY(-2px);
}

/* Follow Me Section */
.follow-me-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -10px;
    margin-bottom: 40px;
}

.follow-me-text {
    font-size: 1.2rem;
    color: #7a4adb;
    font-weight: 600;
    font-family: "JetBrains Mono", monospace;

    margin-top: 6.5px;
}

.follow-me-icons {
    display: flex;
    gap: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    color: #333;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.social-icon i {
    font-size: 1.2rem;
}

.linkedin:hover {
    background: #0077b5;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 119, 181, 0.3);
}

.github:hover {
    background: #333;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.3);
}

.twitter:hover {
    background: #000;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(29, 161, 242, 0.3);
}


/* Skills Section */
#skills p {
    font-size: 0.9em;
    line-height: 1.6;

}
#skills div {
flex-wrap: wrap;
max-width: 900px;
margin: 0 auto;
align-items: center;
justify-content: center;
font-family: "JetBrains Mono", monospace;
}
#skills div img {
    width: 20px;
    height: 20px;
    margin: 1px;
    transition: transform 0.3s ease-in-out;
    border-radius: 5%;
}
#skills div img:hover {
    transform: scale(1.2);
    transition: transform 0.3s ease-in-out;
    border-radius: 5%;
    margin-left: 1px;
    margin-top: 1px;
    margin-bottom: 1px;

}
.skillhover:hover {
    transform: translateY(-5px); /* Move the box up slightly */
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.3); /* Add a shadow */
}




.social-link {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    flex-direction: row; /* Ensure horizontal layout */
    width: 100%; /* Take full width of container */
}

.social-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(15, 15, 30, 0.5);
    border: 1px solid rgba(72, 88, 227, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin: 0 5px; /* Add horizontal margin */
    text-decoration: none; /* Remove underline */
    color: inherit; /* Use parent's text color */
}

.social-link a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(72, 88, 227, 0.2), rgba(150, 8, 216, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.social-link i {
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .social-link {
        gap: 10px;
        justify-content: center;
        flex-direction: row; /* Force horizontal layout */
        flex-wrap: wrap;
    }

    .social-link a {
        width: 40px;
        height: 40px;
        margin: 0 5px 10px; /* Add bottom margin for potential wrapping */
        text-decoration: none; /* Ensure no underline on mobile */
    }

    .social-link i {
        font-size: 1.2rem;
    }
}


/* Profile Image Animation */
#profile-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(72, 88, 227, 0.5),
                0 0 30px rgba(150, 8, 216, 0.3);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

#profile-photo::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(72, 88, 227, 0.5), rgba(150, 8, 216, 0.5));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

@media (max-width: 768px) {
    #profile-photo {
        margin-top: 10px; /* Reduce margin-top for phones */
        margin-bottom: -20px;
    }
}

#profile-photo:hover {
    transform: scale(1.05) rotate(5deg);
    animation-play-state: paused;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4),
                0 0 30px rgba(72, 88, 227, 0.7),
                0 0 40px rgba(150, 8, 216, 0.5);
}

#profile-photo:hover::before {
    opacity: 0.6;
    animation: spin 10s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.photo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5rem;
    gap: 1rem;
    margin-top: -200px;
}

.photo img {
    transition: transform 0.3s ease-in-out;
}
.photo:hover img {
    transform: scale(1.1);
}

.social-link a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(72, 88, 227, 0.3);
    border-color: rgba(150, 8, 216, 0.5);
}

.social-link a:hover::before {
    opacity: 1;
}

.social-link a:hover i {
    transform: scale(1.2);
    color: rgba(255, 255, 255, 1);
}




.about-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
    gap: 30px;
}

.about-text {
    flex: 1;
    max-width: 500px;
    text-align: left;
    font-family: "JetBrains Mono", monospace;
    order: 2; /* For desktop view */
}

.about-image {
    flex-basis: 40%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 1; /* For desktop view */
}

.about-image img {
    width: 75%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Desktop and mobile specific display */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;

}

.download-cv-container {
    width: 100%;
    justify-content: space-between;
    margin-top: 15px;
}

.about-text p {
    font-size: 1.1em;
    line-height: 1.6;
}

/* Scroll to top button */
#scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(72, 88, 227, 0.9), rgba(150, 8, 216, 0.9));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
}

#scroll-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

#scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(72, 88, 227, 0.5);
}

/* Modern Footer */
.modern-footer {
    background: linear-gradient(135deg, rgba(15, 15, 30, 0.95), rgba(30, 30, 60, 0.95));
    padding: 20px 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(72, 88, 227, 0.3);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: -50px;
}

.footer-text {
    text-align: center;
}

.footer-text p {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.footer-text strong {
    color: white;
    font-weight: 600;
}

.heart {
    color: #ff3366;
    display: inline-block;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.footer-social {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(72, 88, 227, 0.2);
    color: white;
    text-decoration: none; /* Explicitly remove underline */
    transition: all 0.3s ease;
    border: none; /* Ensure no border */
}

.footer-social a:hover {
    background: linear-gradient(135deg, rgba(72, 88, 227, 0.8), rgba(150, 8, 216, 0.8));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(72, 88, 227, 0.4);
}


/* Projects Section */
#projects {
    text-align: center;
}



.project h3 {
    color: #ff8c00;
    font-family: "JetBrains Mono", monospace;
}

.project p {
    font-size: 1.1em;
    font-family: "JetBrains Mono", monospace;
}

.project img {
    width: 45%;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 15px;
    position: relative;
    filter: brightness(0.9);
    border: 2px solid transparent;
}

.project img:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3),
                0 0 15px rgba(72, 88, 227, 0.3);
    filter: brightness(1.1);
    border: 2px solid rgba(72, 88, 227, 0.5);
}


/* Contact Section */
#contact {
    padding: 60px 40px;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info,
.contact-form {
    flex: 1;
    min-width: 300px;
}

.section-title {
    margin-bottom: 30px;
    text-align: center;
}

.section-title span {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #4858e3, #9608d8);
    border-radius: 3px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.contact-item {
    text-align: center;
}

.contact-item h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
}

.contact-item h4 i {
    margin-right: 8px;
    color: rgba(150, 8, 216, 0.8);
}

.contact-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    color: white;
    transform: translateY(-2px);
}

.social h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
    text-align: center;
}

.social h4 i {
    margin-right: 8px;
    color: rgba(150, 8, 216, 0.8); /* Match the color of other icons */
}

.form-group {
    margin-bottom: 20px;
}

.form-group.text-center {
    text-align: center;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(72, 88, 227, 0.3);
    border-radius: 8px;
    background-color: rgba(15, 15, 30, 0.5);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(150, 8, 216, 0.6);
    box-shadow: 0 4px 15px rgba(72, 88, 227, 0.3);
    background-color: rgba(15, 15, 30, 0.7);
    transform: translateY(-2px);
}

.contact-button {
    background: linear-gradient(135deg, rgba(72, 88, 227, 0.9), rgba(150, 8, 216, 0.9));
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(72, 88, 227, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(150, 8, 216, 0.9), rgba(72, 88, 227, 0.9));
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(72, 88, 227, 0.4);
}

.contact-button:hover::before {
    width: 100%;
}

/* Responsive adjustments for contact section */
@media (max-width: 768px) {
    #contact {
        padding: 30px 15px;
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-left: -11px;
    }

    .contact-info,
    .contact-form {
        width: 100%;
        max-width: 100%;
    }

    .section-title {
        margin-bottom: 20px;
    }

    .section-title span {
        font-size: 1.5rem;
    }

    .contact-details {
        gap: 20px;
        width: 100%;
        align-items: center;
    }

    .contact-item {
        width: 100%;
        max-width: 300px;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        font-size: 16px; /* Better for mobile touch */
    }
}

@media (max-width: 480px) {
    #contact {
        padding: 25px 10px;
    }

    .contact-container {
        gap: 25px;
    }

    .section-title span {
        font-size: 1.3rem;
    }

    .contact-item h4 {
        font-size: 1.1rem;
    }

    .contact-link {
        font-size: 1rem;
    }
}



.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(72, 88, 227, 0.9), rgba(150, 8, 216, 0.9));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    margin-top: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(72, 88, 227, 0.3);
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(150, 8, 216, 0.9), rgba(72, 88, 227, 0.9));
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(72, 88, 227, 0.4);
}

.btn:hover::before {
    width: 100%;
}


/* Social Media Styles */
.social {

    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
    text-align: center;
}

/* Ensure consistent icon styling across all viewports */
.social h4 i {
    margin-right: 8px;
    color: rgba(150, 8, 216, 0.8);
}

@media (max-width: 480px) {
    .social {
        margin-top: -5px;
    }
    .contact-item {
        margin-bottom: -20px;
        margin-top: -10px;
    }
    .contact-info {
        margin-bottom: -5px;
        margin-top: 20px;
    }
}

#experiences {
    /*background: #16213e;*/ /*originally #16213e; */
    /*background: linear-gradient(to right, #0f0c29, #3025f8);*/
    border-radius: 10px;
    padding: 100px 20px;
    margin: 20px;
    text-align: center;
    padding-top: 40px; /* Adjust padding to compensate for removed margin */
    padding-bottom: 40px; /* Adjust padding to compensate for removed margin */

}

/* Grid Layout for Experience Cards */
.experiences-grid {
    display: grid;
    /* Responsive grid: 1 column on small screens, up to 3 on larger screens */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; /* Space between cards */
    margin-top: 40px; /* Space below title */
}

/* Individual Experience Card Styling */
.experience-card {
    background-color: rgba(50, 50, 70, 0.3); /* Semi-transparent background */

    border-radius: 12px; /* Rounded corners */
    padding: 25px;
    backdrop-filter: blur(5px); /* Optional: Adds a blur effect like the image */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
    overflow: hidden; /* Ensure content stays within bounds */
}

.experience-card:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); /* Shadow on hover */
}

/* Date Tag Styling */
.date-tag {
    display: inline-block; /* Allows setting padding and margins correctly */
    padding: 6px 18px;
    border-radius: 20px; /* Pill shape */
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px; /* Space below the tag */
    /* Default Gradient (can be overridden by specific classes) */
    background: linear-gradient(to right, #300258, #3025f8);
}

/* Specific gradients for different tags (matching image approx.) */
.tag-present { background: linear-gradient(to right, #9944e3, #3025f8); } /* Purple -> Red */
.tag-past1  { background: linear-gradient(to right, #9944e3, #3025f8); } /* Purple -> Red */
.tag-past2  { background: linear-gradient(to right, #a855f7, #f77777); } /* Purple -> Red */
.tag-past3  { background: linear-gradient(to right, #9944e3, #3025f8); } /* Purple -> Red */
.tag-past4  { background: linear-gradient(to right, #a855f7, #f77777); } /* Purple -> Red */
/* Add more classes if you want distinct colors */


/* Card Content Layout (Text + Icon) */
.card-content {
    display: flex;
    justify-content: space-between; /* Pushes text and icon apart */
    align-items: center; /* Vertically aligns text and icon */
    gap: 15px; /* Space between text block and icon */
}

.card-text {
    flex-grow: 1; /* Allows text block to take available space */
}

/* Company/Location Styling */
.company-location {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
}

/* Job Title Styling */
.job-title {
    font-size: 1rem;
    color: #c0c0c0; /* Slightly dimmer color */
    line-height: 1.4;
}

/* Icon Placeholder Styling */
.card-icon {
    flex-shrink: 0; /* Prevents icon from shrinking */
    background-color: rgba(255, 255, 255, 0.15); /* Icon background */
    padding: 10px;
    border-radius: 8px; /* Rounded corners for icon background */
    display: flex; /* Center the SVG inside */
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 24px; /* Control icon size */
    height: 24px;
    fill: rgba(255, 255, 255, 0.7); /* Icon color */
}


/* Responsive Adjustments (Example) */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
     .experiences-grid {
        /* Already responsive with auto-fit, but could force 1 column if needed */
         grid-template-columns: 1fr;
     }
    .experience-card {
        padding: 20px;
    }
}



@media (max-width: 1023px) {
    #home h1 {
        font-size: 1.5em;
        margin-top: -20px;
    }
    #home h2 {
        font-size: 1.5em;
    }
    #home h3 {
        font-size: 1.3em;
        margin-top: 8px;
    }

    #home span {
        font-size: 2em;
       /* background: linear-gradient(90deg, #303dcc, #9608d8); */
        padding: 10px 20px;
        border-radius: 10px;
        margin: 0; /* Remove space between Home and My photo */
        font-family: "Winky Sans", sans-serif;
        margin-bottom: -10px; /* Add space below the span */
        margin-top: -10px; /* Add space above the span */
    }

    #about, #projects, #skills, #contact {
        padding: 20px;
    }
    #about-container {
        flex-direction: column;
    }
    .about-text {
        max-width: 100%;
    }
    .photo {
        margin-right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.01rem;
        margin-top: -150px;
    }

    #profile-photo {
        width:130px;
        height:130px;
        object-fit:cover;
        border-radius: 50%;
    }


    .social-link {
        display: flex;
        align-items: center;

        height: 30px;
        transition: transform 0.3s ease-in-out;
        border-radius: 50%; /* Makes icons round */
        margin-bottom: auto;
        margin-top: auto;
        align-items: center;

        padding: 25px;

    }

    .contact-form {
        margin: 0 auto;
        text-align: center;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        width: 90%;
        padding: 10px;
        margin: 5px 0;
        border: 1px solid #ccc;
        border-radius: 8px;
    }

    .contact-form {
        width: 50%;
        padding: 1px;


    }

    .contact-form button {
        background-color: #4CAF50;
        color: white;
        padding: 10px 20px;
        border: none;
        border-radius: 40px;
        cursor: pointer;
    }
    header {
        padding: 6px;
        height: auto;
    }



    nav ul li a {
        font-size: 1.2em;
    }

    .contact-form {
    order: 1; /* Contact form first */
    }

    .contact-info {
    order: 2; /* Contact info second */
    }
    .adress {
    order: 3; /* Address third */
    margin-top: 20px; /* Add some space */
    }

    .social {
    order: 4; /* Social media links last */

    }
    #main-header {
        background-color: rgba(15, 15, 30, 0.8); /* Match desktop style */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(72, 88, 227, 0.2);
        border-bottom: 1px solid rgba(72, 88, 227, 0.2);
    }

}



