

/* __NAVBAR_STACKING_FIX__ */
#navbar, #navbar.scrolled {
    z-index: 9999 !important; /* Ensure header stays above hero/effects */
    pointer-events: auto;      /* Ensure taps/clicks are received */
}
#navbar .nav-links {
    position: relative;
    z-index: 9998;             /* Keep menu above page content */
}
/* __END_NAVBAR_STACKING_FIX__ */

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    height: 100%;
    background: #f3fcfd;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto/Roboto-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SketchingUniverse';
    src: url('fonts/SketchingUniverse.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SugarSnow';
    src: url('fonts/SugarSnow.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}



/*---Scroll Bar---*/
/* Regular thumb */
::-webkit-scrollbar-thumb { 
    background-color: #2196F3; /* Solid blue */
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

/* Hover thumb */
::-webkit-scrollbar-thumb:hover {
    background-color: #1E88E5; /* Lighter blue on hover */
}

/* Active thumb */
::-webkit-scrollbar-thumb:active {
    background-color: #1976D2; /* Even lighter blue when clicked */
}




#navbar, #navbar.scrolled {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    transition: background-color 0.3s, color 0.3s, padding 0.3s;
    z-index: 1000;
    box-sizing: border-box;
}

#navbar {
    background: transparent;
     transition: background-color 0.3s, color 0.3s, padding 0.3s;
}

#navbar.scrolled {
    background: white;
    padding: 8px 5%;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 40px; /* Adjust as needed */
    margin-right: 20px;
}

.logo-icon-white {
    display: block;
}

.logo-icon-black {
    display: none;
}

.logo {
    font-family: 'Sugar Snow', cursive;
    font-size: 2.5em;
    font-weight: normal;
    color: white;
}

.logo {
    /* ... other properties ... */
    line-height: 2; /* Adjust as needed */
}

#navbar nav .nav-container {
    display: flex;
    justify-content: flex-end;
    width: 80%; /* Adjust this value to control how far right the tabs appear */
}

#navbar nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

#navbar nav ul li a {
    color: black;
}

#navbar.scrolled .logo {
    color: black;
    font-family: 'Sugar Snow', cursive;
}

#navbar nav {
    display: flex;
    justify-content: flex-end; /* Change from center to flex-end */
    align-items: center;
    flex-grow: 1;
    padding-right: 5%; /* Adjust this value to move tabs more or less to the right */
}

#navbar nav ul {
    list-style: none;
    display: flex;
    gap: 30px; /* Increase gap between nav items */
    margin: 0;
    padding: 0;
}

#navbar nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.2em;
    transition: all 0.3s ease;
    padding: 10px 15px;
    position: relative;
    border-radius: 10px; /* Add border-radius */
}

#navbar nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--accent-color-primary);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

#navbar nav ul li a:hover::after,
#navbar nav ul li a.active::after {
    width: 100%;
}

#navbar nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#navbar nav ul li a:active {
    background-color: rgba(255, 255, 255, 0.2);
}

#navbar.scrolled nav ul li a {
    color: black;
}

#navbar.scrolled nav ul li a:hover,
#navbar.scrolled nav ul li a.active {
    color: #6e45e2;
    background-color: transparent;
}

#navbar.scrolled nav ul li a::after {
    background-color: #6e45e2;
}

/* --- #navbar.scrolled nav ul li a:hover {
    background-color: rgba(0, 0, 0, 0.1);
}
    --- */

#navbar.scrolled nav ul li a:active {
    background-color: rgba(0, 0, 0, 0.2);
}


.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none; /* Remove link underline */
    transition: opacity 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

/* Hover effect for the entire logo area */
.logo-container:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

/* Ensure the logo text maintains its styling when it's a link */
.logo-container .logo {
    font-family: 'Sugar Snow', cursive;
    font-size: 1.8em;
    color: var(--text-color-light); /* Initial color for logo text */
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.5s ease; /* Smooth transition for logo text color */
    text-decoration: none; /* Ensure no underline */
}

/* Maintain color changes when scrolled */
#navbar.scrolled .logo-container .logo {
    color: var(--text-color-dark); /* Darker color for logo text when scrolled */
}

/* Logo icon styling remains the same */
.logo-container .logo-icon {
    height: 40px;
    margin-right: 10px;
}

/* Maintain logo visibility swap on scroll */
#navbar .logo-container .logo-icon-white { display: block; }
#navbar .logo-container .logo-icon-black { display: none; }

#navbar.scrolled .logo-container .logo-icon-white { display: none; }
#navbar.scrolled .logo-container .logo-icon-black { display: block; }

.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    background: transparent;
    border: none;
    padding: 0;
}

.hamburger .line {
    width: 100%;
    height: 2px;
    background-color: #333;
    position: absolute;
    left: 0;
    transition: background-color 0.3s ease;
    border-radius: 2px; /* Add curve to the lines */
}

.hamburger .line:nth-child(1) {
    top: 0; 
    transform-origin: top left;
}

.hamburger .line:nth-child(2) {
    top: 50%; 
    transform: translateY(-50%);
}

.hamburger .line:nth-child(3) {
    bottom: 0;
    transform-origin: bottom left;
}

.hamburger:hover .line {
    background-color: #6e45e2; /* Change color on hover */
}

.hamburger.active .line:nth-child(1) {
    transform: rotate(45deg);
    top: -2px;
    left: 5px;
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(3) {
    transform: rotate(-45deg);
    bottom: -2px;
    left: 5px;
}

#navbar.scrolled .hamburger .line {
    background: black;
}

#hero {
    height: calc(100vh - 80px); /* Subtract navbar height from full viewport height */
    width: 100%;
    background: url('../works/images/EugeneAntwiPortfolio_BG.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    margin-bottom: 0%;
}

.hero-container {
    max-width: 1440px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 0 auto;
}

.hero-content {
    text-align: left;
    flex: 1;
    max-width: 50%;
    padding-left: 5%;
    z-index: 1; /* Ensure content is above the image */
}

.hero-content h1 {
    font-size: 1.8em;
    color: white;
    margin: 0 0 10px 0; /* Add some bottom margin */
}

.hero-content h2 {
    font-family: 'Sugar Snow', cursive;
    font-size: 120px;
    text-align: left; /* Align to the left */
    color: #ffffff;
    text-shadow: 0px 20px 0px rgba(75,37,152,0.8);
    margin: 0;
    padding: 0;
    line-height: 0.9; /* Adjust line height for tighter spacing */
}
  
.hero-content h2.top {
    margin-bottom: 20px; /* Adjust this value to bring the two lines closer */
}


.hero-content p {
    font-size: 1.5em;
    color: white;
    margin: 10px 0;
}

.hero-tagline {
    font-size: 1em;
    font-weight: 1000;
    font-style: italic;
    color: #ffffff;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    text-transform: lowercase;
    letter-spacing: 1px;
    animation: fadeIn 1.5s ease;
    width: fit-content;
    max-width: 90%;
    box-sizing: border-box;
  
    /* Align tagline with other content */
    margin: 10px 0 0 0;
    text-align: left;
    margin-left: 0; /* Align to the left */
  }
  
  

.hero-subcontent {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px; /* Add space between elements */
}

/* Optional fade-in animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-top: 20px;
  }

#typing-text {
    font-size: 1.3em;
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-flex;
    min-height: 1.5em; /* Set a minimum height */
    margin-bottom: 20px; /* Add space between typing text and button */
}

#typing-text .bold {
    font-weight: bold;
}

#explore-button {
    padding: 10px 30px;
    font-size: 1.1em;
    font-weight: bolder;
    color: white;
    background-color: transparent;
    border: 2px solid white;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    align-self: flex-start; /* Align button to the left */
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: pulse 2s infinite ease-in-out;
}

#explore-button .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 5px;
}

#explore-button:hover .arrow {
    animation: bounce 0.8s infinite;
}

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

@keyframes pulse {
    0% {
      transform: scale(1);
      box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }
    50% {
      transform: scale(1.05);
      box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }
    100% {
      transform: scale(1);
      box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }
  }

#explore-button:hover {
    background-color: white;
    color: #6e45e2;
    animation: none;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

#explore-button:active,
#explore-button.active {
    background-color: rgba(255, 255, 255, 0.7);
    color: white; /* Ensure text color remains white */
}

.hero-image {
    position: relative;
    right: -5%;
    bottom: 0;
    height: 100%;
    width: 50%;
    max-width: 50%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    overflow: hidden;
}

.hero-image img {
    height: 100%;
    width: auto;
    max-width:130%;
    object-fit: scale-down;
    object-position: bottom right;
}

.hero-image img {
    position: relative;
    z-index: 2;
}

/* Glitter effect styles */
.hero-image {
    position: relative;
    overflow: hidden;
}

#glitter-container {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    transform-origin: center center;
}

.glitter {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.9); /* Adding a subtle glow */
}

.scroll-indicator {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10; /* Ensure it's above other elements */
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .scroll-indicator-link {
    text-decoration: none;
    cursor: pointer;
    display: block; /* Ensure it's a block element for easier clicking */
}

.scroll-indicator-link:hover .scroll-indicator {
    opacity: 0.8;
    transform: translateX(-50%) scale(1.1);
}

.scroll-indicator-link:focus {
    outline: none;
}

.scroll-indicator-link:focus .scroll-indicator {
    opacity: 0.8;
    transform: translateX(-50%) scale(1.1);
}
  
  .mouse {
    width: 30px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
  }
  
  .wheel {
    width: 4px;
    height: 8px;
    background-color: #fff;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
  }
  
  .arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
  }
  
  .arrows span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin: -5px;
    animation: arrow 1.5s infinite;
  }
  
  .arrows span:nth-child(2) {
    animation-delay: 0.2s;
  }

  .scroll-indicator-link:hover .scroll-indicator,
.scroll-indicator-link:focus .scroll-indicator {
    opacity: 0.8;
    transform: translateX(-50%) scale(1.1);
}
  
  @keyframes scroll {
    0% {
      opacity: 0;
      transform: translate(-50%, 0);
    }
    50% {
      opacity: 1;
      transform: translate(-50%, 10px);
    }
    100% {
      opacity: 0;
      transform: translate(-50%, 20px);
    }
  }
  
  @keyframes arrow {
    0% {
      opacity: 0;
      transform: rotate(45deg) translate(-5px, -5px);
    }
    50% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      transform: rotate(45deg) translate(5px, 5px);
    }
  }

@media (min-width: 1441px) {
    .hero-container {
        max-width: 1440px;
    }
}

@media (max-width: 1440px) {
    .hero-container {
        max-width: 100%;
        padding: 0 20px; /* Add some padding on smaller screens */
    }
}

@media screen and (max-width: 1218px) {
    .glitter {
      left: 48%; /* Adjust so glitter stays behind the image */
    }
  }

@media (max-width: 1024px) {
    .hero-image {
        width: 45%;
        max-width: 45%;
    }
}

@media (max-width: 825px) and (min-width: 769px) {
    .logo {
        font-size: 2em; /* Reduce font size slightly */
        white-space: nowrap; /* Prevent line break */
    }
}

@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
}

@media (max-width: 768px) {
    #navbar {
        background: transparent;
    }

    #navbar, #navbar.scrolled {
        padding: 15px 5%;
        background: white;
    }

    #navbar.scrolled {
        padding: 10px 5%;
        background: white;
    }

    #navbar nav ul li a {
    color: black !important;
}

#navbar nav ul li a:hover,
#navbar nav ul li a.active {
    color: #6e45e2 !important;
}


    .logo-icon-white {
        display: none;
    }

    .logo-icon-black {
        display: block;
    }

    #navbar.scrolled .logo-icon-white {
        display: none;
    }

    #navbar.scrolled .logo-icon-black {
        display: block;
    }

    .logo {
        color: rgb(0, 0, 0);
    }

    #navbar.scrolled .logo {
        color: black;
    }

    #navbar nav {
        justify-content: flex-end; /* Align hamburger to the right */
        padding-right: 0;
    }

    #navbar nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px 0; /* Add some vertical padding */
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        align-items: center;
    }

    #navbar nav ul.open {
        display: flex;
    }

    #navbar nav ul li {
        padding: 15px 0;
        border-bottom: 1px solid #e0e0e0;
        width: 80%; /* Reduce width to bring tabs closer to center */
        text-align: center;
    }

    #navbar nav ul li:last-child {
        border-bottom: none; /* Remove border from last item */
    }

    #navbar nav ul li a {
        display: inline-block;
        width: auto;
        color: #333;
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 1.3em;
        padding: 10px 20px;
        position: relative;
        border-radius: 15px;
    }

    #navbar nav ul li a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 5px;
        left: 50%;
        background-color: #6e45e2;
        transition: all 0.3s ease;
    }

    #navbar nav ul li a:hover,
    #navbar nav ul li a:active,
    #navbar nav ul li a.active {
        color: #6e45e2;
    }

    #navbar nav ul li a:hover::after,
    #navbar nav ul li a.active::after {
        width: calc(100% - 40px);
        left: 20px;
    }

    #navbar nav ul li a:hover {
        background-color: rgba(110, 69, 226, 0.1);
    }

    #navbar nav ul li a:active {
        background-color: rgba(110, 69, 226, 0.2);
    }

    #navbar.scrolled nav ul li a {
        color: black;
    }

    #navbar.scrolled .hamburger .line {
        background-color: black;
    }

    .hamburger {
        display: block;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 1001; /* Ensure it's above the nav menu */
    }

    .hamburger .line {
        width: 100%;
        height: 3px;
        background-color: black;
        transition: all 0.3s ease;
    }

    #hero {
        height: calc(100vh - 80px);
    }

    .hero-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-content h1,
    .hero-content h2,
    #typing-text,
    #explore-button {
        font-weight: bold;
    }

    .hero-content, .hero-image {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 1.8em;
    }

    .hero-content h2 {
        font-size: 8em;
    }

    .content-wrapper {
        align-items: center;
    }

    #typing-text {
        font-size: 1.2em;
    }

    #explore-button {
        padding: 10px 25px;
        font-size: 1em;
        font-weight: bolder;
        background-color: transparent;
        border: 2px solid #ffffff;
        color: #ffffff;
        border-radius: 15px;
        cursor: pointer;
        transition: background-color 0.3s, color 0.3s;
        align-self: center;
    }

    #explore-button:hover {
        background-color: white;
        color: #6e45e2;
    }

    #explore-button:active,
    #explore-button.active {
        background-color: rgba(255, 255, 255, 0.7);
        color: #6e45e2;
    }

    

    .hero-content p {
        font-size: 1.2em;
    }

    #explore-button {
        font-size: 1.5em;
    }

    .hero-image {
        display: none;
    }

    .hero-image img {
        width: 100%;
        height: auto;
        max-height: 50vh;
        object-fit: contain;
        object-position: bottom center;
    }

    #glitter-container {
        transform: scale(0.9);
    }

    .scroll-indicator {
        bottom: 120px; /* Adjust for smaller screens */
    }
    
    .mouse {
        width: 26px;
        height: 44px;
    }

    .wheel {
        width: 3px;
        height: 7px;
    }

    .arrows span {
        width: 9px;
        height: 9px;
    }
}

@media (max-width: 768px) and (min-width: 501px) {
    .hero-container {
        flex-direction: row; /* Keep side-by-side layout */
        align-items: center;
        height: 100%;
    }

    .hero-content {
        max-width: 50%;
        padding-right: 20px;
    }

    .hero-content h2 {
        font-size: 120px; /* Reduce font size */
    }

    .hero-image {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: 50%; /* Adjust this value to control image height on mobile */
    }

    .hero-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: bottom right;
    }
}

@media (max-width: 600px) {
    #navbar, #navbar.scrolled {
        position: fixed; /* Change back to fixed */
        background: white; /* Ensure background is white */
    }

    #navbar .logo {
        color: black; /* Ensure logo text is visible */
    }

    #navbar nav ul li a {
        color: black; /* Ensure nav links are visible */
    }

    #hero {
        min-height: 100vh;
        height: auto;
        background-size: cover;
        background-position: center;
    }

    .hamburger .line {
        background-color: black; /* Ensure hamburger lines are visible */
    }

    .hero-container {
        min-height: 100vh;
        padding-bottom: 20px; /* Add some padding at the bottom */
    }

    .hero-content {
        max-width: 100%;
        padding: 20px 5%;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 1.5em;
    }

    .hero-content h2 {
        font-size: 8em; /* Reduce font size further */
    }

    #typing-text {
        font-size: 1.1em;
    }

    #explore-button {
        font-size: 1.5em;
        padding: 8px 20px;
    }

    .hero-content, .hero-image {
        max-width: 100%;
    }

    .hero-image {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 40vh; /* Limit image height */
        margin-top: 20px;
    }

    .hero-image img {
        max-height: 40vh;
        object-fit: contain;
        object-position: bottom center;
    }

    .scroll-indicator {
        bottom: 50px;
    }
    
    .mouse {
        width: 22px;
        height: 38px;
    }
    
    .wheel {
        width: 3px;
        height: 6px;
    }
    
    .arrows span {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 500px) {
    .hero-container {
        flex-direction: column;
        padding: 20px;
    }

    .hero-content, .hero-image {
        max-width: 100%;
    }

    .hero-content h2 {
        font-size: 120px;
    }

    .hero-image {
        height: auto;
        max-height: 40vh; /* Further limit height for very small screens */
    }

    .scroll-indicator {
        bottom: 50px;
    }
    
    .mouse {
        height: 30px;
    }
    
    .arrows {
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    #navbar {
        padding: 10px 3%; /* Further reduce padding for very small screens */
    }

    .hero-content {
        padding-bottom: 60%; /* Increase bottom padding for smaller screens */
    }

    .logo {
        font-size: 1.5em; /* Reduce logo size if necessary */
        line-height: 1.2;
    }

    .hero-content h2 {
        font-size: 100px;
    }

    .hero-image {
        max-height: 55%; /* Slightly increase max-height for smaller screens */
    }

    .hero-image img {
        max-height: 40vh;
    }

    .hamburger {
        width: 25px; /* Slightly smaller hamburger for very small screens */
        height: 18px;
    }

    #glitter-container {
        transform: scale(0.8);
    }

    .scroll-indicator {
        bottom: 50px;
    }
    
    .mouse {
        width: 20px;
        height: 34px;
    }
    
    .wheel {
        width: 2px;
        height: 5px;
    }
    
    .arrows span {
        width: 7px;
        height: 7px;
    }
}

@media (max-width: 400px) and (min-width: 300px){
    .hero-content h2 {
        font-size: 5em;
        text-shadow: 0px 16px 0px rgba(75,37,152,0.8);
    }

    #typing-text {
        font-size: 1em;
    }

    #explore-button {
        font-size: 1.5em;
        padding: 6px 15px;
    }
}

/* About Section */

#about {
    background-color: white;
    width: 100%;
    margin: 0;
    padding: 60px 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
  
.section-title {
    font-size: 48px;
    color: #6e45e2;
    margin-bottom: 20px;
    font-family: 'Sugar Snow', cursive;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.about-text-and-info {
    flex: 0 0 60%;
}
  
  .about-text p {
    font-size: 16px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.6;
    color: #9ea8b6;
    margin-bottom: 15px;
  }
  
  .personal-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}
  
  .info-column {
    flex: 0 0 48%;
  }
  
 .info-item {
    display: flex;
    align-items: flex-start;
}
  
  .info-icon {
    width: 40px;
    margin-right: 15px;
    flex-shrink: 0;
  }
  
  .info-icon img {
    width: 100%;
    height: auto;
  }
  
  .info-content {
    flex-grow: 1;
  }

  .info-content h3 {
    font-size: 24px;
    font-family: 'Roboto Black', sans-serif;
    color:  #2f3742;
    margin: 0 0 5px 0;
  }
  
  .info-content p, .info-content a {
    font-size: 20px;
    font-weight: bolder;
    color: #9ea8b6;
    margin: 0;
    text-decoration: none;
  }

  .info-content a:-webkit-any-link {
    color: #2196f3;
    cursor: pointer;
    text-decoration: none;
}

.info-content a:hover {
color: #0d66af;
transition: all 0.3s ease;
}
  
  .language-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .language-list li {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
  }
  
  .language-list span {
    font-size: 20px;
    font-weight: bolder;
    color: #9ea8b6;
    width: 60px;
  }
  
  .language-bar {
    width: 100px; /* Adjust as needed */
    height: 7px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-left: 20px;
    overflow: hidden;
}

.language-progress {
    height: 100%;
    background-color: #6e45e2;
    border-radius: 4px;
    width: 0%; /* Start with width 0% */
    transition: width 1s ease-out; /* Smooth animation for width */
}

  .hobbies-item {
    margin-top: auto;
  }

  .hobbies-column {
    align-self: flex-end;
  }

  .skills-section {
    margin-top: 30px;
  }
  
  .skills-section h3 {
    font-size: 24px;
    color: #6e45e2;
    margin-bottom: 20px;
  }
  
  .skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .skill-pill {
    background-color: #6e45e2;
     border-color: #391e81;
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 16px;
    transition: all 0.3s ease;
  }

  .skill-pill:hover {
    background-color: #391e81;
    border-color: #391e81;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(110, 69, 226, 0.2);
}

  .skills-divider {
    height: 1.2px;
    background-color:  #bbc6d4;
    margin: 30px 0;
}
  
/* REPLACE the existing .download-resume styles in your styles.css with this */

.download-resume {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #6e45e2, #9b7de2);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(110, 69, 226, 0.4);
}

.download-resume::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.download-resume:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(110, 69, 226, 0.6);
}

.download-resume:hover::before {
    left: 100%;
}

.download-resume:active {
    transform: translateY(-1px);
}

.download-resume .icon {
    font-size: 1.1em;
    margin-left: 0;
    margin-right: 0;
}

  .about-image {
    flex: 0 0 40%;
    max-width: 40%;
}

.about-image img {
    width: 100%;
}

@media (max-width: 768px) {
    #about {
        padding: 40px 0; /* Adjust padding for smaller screens */
    }

    .about-content {
        flex-wrap: nowrap;
    }

    .about-container {
        padding: 0 15px;
        flex-direction: column-reverse;
    }

    .about-text, .personal-info, .skills-section {
        flex-basis: 60%;
    }
    
    .about-text-and-info, .about-image {
        flex: 0 0 100%;
    }

    .about-content, .about-image {
        flex: 1;
        max-width: 100%;
        padding-right: 0;
    }

    .about-image {
        flex-basis: 30%;
    }

    .personal-info {
        grid-template-columns: 1fr;
        margin-bottom: 25px;
    }

    .info-column {
        flex: 0 0 100%;
        margin-bottom: 20px;
      }

    .info-item{
        margin-bottom: 20px;
    }
    
      .info-column:last-child .info-item {
        margin-bottom: 50px;
      }
}

/* Services Section - Fixed Grid Layout */
#services {
    background: #f3fcfd;
    padding: 80px 0;
    position: relative;
}

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

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #6e45e2;
    margin-bottom: 60px;
    font-family: 'Sugar Snow', cursive;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Services Grid Container */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Service Item Card - Fixed dimensions to prevent overlap */
.service-item {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Fixed dimensions to prevent overlap */
    width: 100%;
    height: 350px; /* Fixed height for consistency */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box; /* Include padding in width/height calculation */
}

/* Enhanced Hover Effect - Keep existing behavior */
.service-item:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 
        0 25px 50px rgba(110, 69, 226, 0.25),
        0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #6e45e2;
    z-index: 10;
}

/* Service Icon Container */
.service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.service-icon .icon-animated {
    opacity: 0;
}

.service-item:hover .service-icon .icon-static {
    opacity: 0;
}

.service-item:hover .service-icon .icon-animated {
    opacity: 1;
}

/* Service Title */
.service-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
    transition: color 0.3s ease;
    line-height: 1.3;
    flex-shrink: 0;
    min-height: 50px; /* Consistent title height */
    display: flex;
    align-items: center;
    text-align: center;
}

.service-item:hover h3 {
    color: #6e45e2;
}

/* Service Description */
.service-item p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    flex-grow: 1;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

/* Responsive Design - Maintain proportions */
@media (max-width: 1200px) {
    .services-container {
        max-width: 1000px;
        padding: 0 15px;
    }
    
    .services-grid {
        gap: 25px;
        max-width: 900px;
    }
    
    .service-item {
        height: 330px;
        padding: 25px 18px;
    }
    
    .service-item h3 {
        font-size: 1.1rem;
        min-height: 45px;
    }
    
    .service-item p {
        font-size: 0.82rem;
    }
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 750px;
        gap: 20px;
    }
    
    .service-item {
        height: 320px;
        padding: 25px 15px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .service-icon {
        width: 65px;
        height: 65px;
        margin-bottom: 18px;
    }
    
    .service-item h3 {
        font-size: 1.05rem;
        min-height: 42px;
        margin-bottom: 12px;
    }
    
    .service-item p {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    #services {
        padding: 60px 0;
    }
    
    .services-container {
        padding: 0 15px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 500px;
    }
    
    .service-item {
        height: 300px;
        padding: 20px 15px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .service-item h3 {
        font-size: 1rem;
        min-height: 40px;
        margin-bottom: 10px;
    }
    
    .service-item p {
        font-size: 0.78rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 300px;
    }
    
    .service-item {
        height: 280px;
        padding: 20px 15px;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .service-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 12px;
    }
    
    .service-item h3 {
        font-size: 0.95rem;
        min-height: 38px;
        margin-bottom: 8px;
    }
    
    .service-item p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

@media (max-width: 360px) {
    .services-grid {
        max-width: 260px;
    }
    
    .service-item {
        height: 260px;
        max-width: 260px;
    }
}

/* Accessibility improvements */
.service-item:focus-within {
    outline: 3px solid #6e45e2;
    outline-offset: 3px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .service-item,
    .service-icon img,
    .service-item h3 {
        transition: none;
    }
    
    .service-item:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-item {
        border: 2px solid #000;
    }
}

/* --- Footer --- */

#footer {
    background-color: #2f3742;
    color: white;
    padding: 40px 0 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Keep this as flex-start */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-left, .footer-center, .footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.footer-left {
    margin-top: 0px;
}

.footer-left h4, .footer-center h4 {
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-left ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-left ul li {
    margin-bottom: 10px;
}

.footer-left ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-left ul li a:hover {
    color: #6e45e2;
}

.footer-center {
    text-align: center;
    position: relative;
    z-index: 10;
    overflow: visible;
}

.social-icons {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 20;
    gap: 25px;
    margin-top: auto;
}

.social-icons a {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    color: #ffffff;
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
    filter: brightness(0) saturate(100%) invert(100%);
}

.social-icons a::before {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%; /* Change this from bottom: 100% to top: 100% */
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 8px; /* Reduce padding to make the box smaller */
    color: white;
    border-radius: 4px;
    font-size: 12px; /* Reduce font size */
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
    z-index: 1000;
    top: calc(100% + 10px);
    margin-top: 5px;
}

.social-icons a:hover::before {
    opacity: 1;
    visibility: visible;
}

.social-icons a::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    bottom: -15px;
    transition: opacity 0.3s, visibility 0.3s;
}

.social-icons a:hover::after {
    opacity: 1;
    visibility: visible;
}


.social-icons a:hover {
    filter: brightness(0) saturate(100%) invert(37%) sepia(74%) saturate(1645%) hue-rotate(227deg) brightness(91%) contrast(98%);
}

.footer-right {
    display: flex;
    align-items: flex-end;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.footer-logo img {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
}

.footer-logo-text {
    font-family: 'SketchingUniverse', sans-serif;
    font-size: 24px;
    line-height: 1.5; /* Adjust line height to remove extra space */
    text-align: center;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-left, .footer-center, .footer-right {
        margin-bottom: 30px;
        text-align: center;
    }

    .footer-right {
        justify-content: center;
    }
}


/* Portfolio Section */
#portfolio {
    /* background-color: #f9f9f9; */
    background-color: white;
    padding: 80px 0;
    position: relative;
}



.portfolio-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.section-title {
    font-size: 3.5em;
    margin-bottom: 40px;
    color: #6e45e2;
    text-align: center;
    padding: 0 20px; /* Only the title gets padding */
}

.portfolio-reel-container {
    width: 100%;
    margin: 0;
    overflow: hidden;
    position: relative;
    background: #000; /* Fallback background */
}

.portfolio-reel {
    width: 100%;
    height: 400px; /* Fixed height for wide cinematic look */
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.portfolio-reel-container:hover .portfolio-reel {
    transform: scale(1.02);
}


/* Animated gradient border for the portfolio section */
#portfolio::before,
#portfolio::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 4px; /* Adjust thickness as needed */
    background: linear-gradient(to right, #2196F3, #24FF72, #2196F3); /* Looping gradient */
    background-size: 300% 100%; /* Larger background for smoother animation */
    animation: animateGradient 6s linear infinite; /* Continuous animation */
}

#portfolio::before {
    top: 0;
}

#portfolio::after {
    bottom: 0;
}

/* Keyframes for continuous looping gradient */
@keyframes animateGradient {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 0%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.explore-btn {
    
    border: 2px solid white;
    background: transparent;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.portfolio-link {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #ffffff;
    border-radius: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.portfolio-link:hover {
    background-color: #ffffff;
    color: #6e45e2;
}

.portfolio-cta {
    text-align: center;
    margin-top: 40px;
    padding: 0 20px; /* Only the CTA gets padding */
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(45deg, #6e45e2, #6e45e2);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #5636b8;
    box-shadow: 0 8px 20px rgba(110, 69, 226, 0.6);
    transform: translateY(-3px);
}

/* Responsive Design */


@media (max-width: 1024px) {
    .portfolio-reel {
        height: 350px;
    }
    
    .section-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    #portfolio {
        padding: 60px 0 30px 0;
    }
    
    .portfolio-reel {
        height: 280px;
    }
    
    .section-title {
        font-size: 2em;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .portfolio-cta {
        padding: 0 15px;
    }
    
    .cta-button {
        font-size: 16px;
        padding: 12px 25px;
    }
}

@media (max-width: 480px) {
    .portfolio-reel {
        height: 220px;
    }
    
    .section-title {
        font-size: 1.8em;
        padding: 0 10px;
    }
    
    .portfolio-cta {
        padding: 0 10px;
    }
}

/* Remove the old portfolio grid styles and animations */
.portfolio-grid,
.portfolio-item,
.portfolio-slideshow,
.portfolio-overlay {
    display: none; /* Remove old portfolio cards */
}

/* Testimonial section */
#testimonials {
    background-color: #f3fcfd;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Glassmorphism Testimonial card styling */
.testimonial-item {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(110, 69, 226, 0.15);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    text-align: left;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Glassmorphism gradient overlay */
.testimonial-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(110, 69, 226, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(110, 69, 226, 0.08) 100%);
    border-radius: 20px;
    z-index: 1;
    pointer-events: none;
}

/* Content positioning above overlay */
.testimonial-item > * {
    position: relative;
    z-index: 2;
}

.testimonial-item-centered {
    grid-column: 2 / 3;
    grid-row: 2;
}

/* Ensure first 3 items stay in first row */
.testimonial-item:nth-child(1) { grid-column: 1; grid-row: 1; }
.testimonial-item:nth-child(2) { grid-column: 2; grid-row: 1; }
.testimonial-item:nth-child(3) { grid-column: 3; grid-row: 1; }

/* Enhanced hover effect */
.testimonial-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(110, 69, 226, 0.25);
    border: 1px solid rgba(110, 69, 226, 0.4);
}

.testimonial-item:hover::before {
    background: linear-gradient(135deg, 
        rgba(110, 69, 226, 0.15) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(110, 69, 226, 0.12) 100%);
}

/* Styling for the testimonial image */
.testimonial-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(110, 69, 226, 0.6);
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(110, 69, 226, 0.2);
    transition: all 0.3s ease;
}

.testimonial-item:hover .testimonial-image {
    border-color: rgba(110, 69, 226, 0.8);
    box-shadow: 0 6px 20px rgba(110, 69, 226, 0.3);
    transform: scale(1.05);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Testimonial text */
.testimonial-item p {
    font-style: italic;
    color: #333;
    margin-bottom: 15px;
    font-size: 1em;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.testimonial-item h4 {
    font-weight: bold;
    color: #6e45e2;
    margin-top: 10px;
    font-size: 1.1em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments - Stack cards on smaller screens */
@media (max-width: 1024px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .testimonial-item-centered {
        grid-column: 1 / -1;
        grid-row: auto;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Mobile responsive - Full width stacked cards like your image */
@media (max-width: 768px) {
    #testimonials {
        padding: 60px 0;
    }
    
    .testimonials-container {
        padding: 0 15px;
    }
    
    .testimonial-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
    }
    
    .testimonial-item,
    .testimonial-item-centered {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 25px;
        border-radius: 15px;
        grid-column: unset;
        grid-row: unset;
    }
    
    .testimonial-item::before {
        border-radius: 15px;
    }
    
    /* Reset all grid positioning for mobile */
    .testimonial-item:nth-child(1),
    .testimonial-item:nth-child(2),
    .testimonial-item:nth-child(3) { 
        grid-column: unset;
        grid-row: unset;
    }
}

@media (max-width: 480px) {
    .testimonials-container {
        padding: 0 10px;
    }
    
    .testimonial-item {
        padding: 20px;
        margin: 0;
    }
    
    .testimonial-image {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
    
    .testimonial-item p {
        font-size: 0.95em;
        margin-bottom: 12px;
    }
    
    .testimonial-item h4 {
        font-size: 1em;
    }
}



/* Call to Action Section */
#call-to-action {
    background-color: #6e45e2;
    color: white;
    padding: 60px 0;
    text-align: center;
}

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

.cta-container h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    background: white;
    color: #6e45e2;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #5636b8;
    color: white;
    box-shadow: 0 8px 20px rgba(110, 69, 226, 0.6);
    transform: translateY(-3px);
}


/* Contact Section */
#contact {
    background-color: #f9f9f9;
    padding: 80px 0;
    text-align: center;
}

/* Make form label text black */
form label {
    color: #1a1a1a !important;
}

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

.section-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #6e45e2;
}

.contact-container p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 40px;
}

.contact-form {
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    color: #333;
}

.contact-button {
    background-color: #6e45e2;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: #5636b8;
}

.contact-info {
    margin-top: 30px;
}

.contact-info p {
    font-size: 1.1em;
    color: #333;
}

.contact-info a {
    color: #6e45e2;
    text-decoration: none;
}

.contact-info a:hover {
    color: #5636b8;
}



/* INTERACTIVE ANIMATION */
/* --------------------- */

/* Scroll-triggered fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Hover effect for portfolio items */
.portfolio-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* (Pulse Animation for CTA Button */
.cta-button {
    background-color: #6e45e2;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
}

.cta-button:hover {
    background-color: #5636b8;
    box-shadow: 0 0 15px rgba(110, 69, 226, 0.5);
    transform: scale(1.05);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(110, 69, 226, 0.7);
    }
    70% {
        box-shadow: 0 0 10px 20px rgba(110, 69, 226, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(110, 69, 226, 0);
    }
}

/* Bounce Animation for Scroll Indicator */
.scroll-indicator {
    animation: bounce 2s infinite;
}

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


/* ----EXPLORE BUTTON ARROW REDIFINE--- */
#explore-button .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 5px;
}

/* Left-right movement on hover */
#explore-button:hover .arrow {
    animation: moveLeftRight 0.8s infinite;
}

@keyframes moveLeftRight {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px); /* Adjust distance as needed */
    }
}


/* Skill Lit Loading Effect */
/* Initial state for skills (hidden) */
.skill-pill {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* When visible, animate skill pills */
.skill-pill.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-pill:hover {
transform: translateY(-8px);
transition: opacity 0.5s ease, transform 0.5s ease;
}


/* css/styles.css */

/* --- Color Variables (Adjust these to your exact palette) --- */
:root {
    --primary-bg-color: #000000; /* Dark background */
    --secondary-bg-color: #1a1a1a; /* Darker sections like footer/filter bar */
    --text-color-light: #ffffff; /* General light text */
    --text-color-dark: #333333; /* Text on light backgrounds */
    --accent-color-primary: #6e45e2; /* Purple-ish accent */
    --accent-color-secondary: #facc15; /* Re-introducing if it's for something specific, otherwise remove. */
    --border-color: #333333;
}

/* General Body and HTML styles */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color-light);
    line-height: 1.6;
}

/* For shared fonts (if used across pages) */
@import url('https://fonts.googleapis.com/css2?family=Sugar+Snow&display=swap');


/* --- Header (Navbar) Styles --- */
#navbar {
    background-color: transparent; /* Initial transparent background */
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.5s ease, box-shadow 0.5s ease; /* Smooth transition for background */
}

/* Scrolled state for the navbar */
#navbar.scrolled {
    background-color: #ffffff; /* White background on scroll */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-icon {
    height: 40px;
    margin-right: 10px;
}

/* Logo visibility swap */
#navbar .logo-icon-white { display: block; } /* Visible initially */
#navbar .logo-icon-black { display: none; }  /* Hidden initially */

#navbar.scrolled .logo-icon-white { display: none; } /* Hide white logo when scrolled */
#navbar.scrolled .logo-icon-black { display: block; } /* Show black logo when scrolled */


.logo {
    font-family: 'Sugar Snow', cursive;
    font-size: 1.8em;
    color: var(--text-color-light); /* Initial color for logo text */
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.5s ease; /* Smooth transition for logo text color */
}

#navbar.scrolled .logo {
    color: var(--text-color-dark); /* Darker color for logo text when scrolled */
}


.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color-light); /* Initial color for nav links */
    font-weight: bold;
    font-size: 1.1em;
    position: relative;
    transition: color 0.3s ease, font-size 0.3s ease; /* Smooth transition for font size/color */
}

/* Font size and style change when scrolled (reverting to original intent) */
#navbar.scrolled .nav-links a {
    color: var(--text-color-dark); /* Darker color when scrolled */
    /* Add any other font styles that change on scroll, e.g., */
    /* font-size: 1em; */ /* Slightly smaller, if that was the original behavior */
}


.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--accent-color-primary); /* Purple-ish accent for underline */
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { /* Apply active style based on JS */
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-color-primary); /* Accent color on hover */
}

/* Hamburger menu for mobile */
.hamburger {
    display: none; /* Hidden by default for desktop */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
}

.hamburger .line {
    width: 100%;
    height: 3px;
    background-color: var(--text-color-light); /* Initial color for lines */
    transition: all 0.3s ease;
}

#navbar.scrolled .hamburger .line {
    background-color: var(--text-color-dark); /* Darker lines when scrolled */
}

/* Styles for active hamburger state (optional, if you use `is-active`) */
.hamburger.is-active .line:nth-child(2) { opacity: 0; }
.hamburger.is-active .line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-active .line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* ---      NEW NAVBAR STYLES --- */
/* css/styles.css */

/* ... (previous code including :root variables) ... */

/* --- Header (Navbar) Styles --- */
#navbar {
    background: transparent; /* Initial transparent background for index.html */
    /* ... other initial styles ... */
}

#navbar.scrolled {
    background: white; /* This is the key: white background when scrolled or on other pages */
    padding: 8px 5%; /* Adjust padding if it changes on scroll */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Add shadow for contrast */
}

/* Logo visibility swap */
#navbar .logo-icon-white { display: block; } /* Visible initially on index.html */
#navbar .logo-icon-black { display: none; }  /* Hidden initially on index.html */

#navbar.scrolled .logo-icon-white { display: none; } /* Hide white logo when scrolled/on other pages */
#navbar.scrolled .logo-icon-black { display: block; } /* Show black logo when scrolled/on other pages */

.logo {
    color: var(--text-color-light); /* Initial color for logo text (white) */
    /* ... other logo styles ... */
}

#navbar.scrolled .logo {
    color: var(--text-color-dark); /* Darker color for logo text when scrolled/on other pages (black) */
    /* ... font size change if any ... */
}

.nav-links a {
    color: var(--text-color-light); /* Initial color for nav links (white) */
    /* ... other nav link styles ... */
}

#navbar.scrolled .nav-links a {
    color: var(--text-color-dark); /* Darker color for nav links when scrolled/on other pages (black) */
    /* ... font size change if any ... */
}

.hamburger .line {
    background-color: var(--text-color-light); /* Initial color for lines (white) */
}

#navbar.scrolled .hamburger .line {
    background-color: var(--text-color-dark); /* Darker lines when scrolled/on other pages (black) */
}

/* ... (rest of your styles.css) ... */


/* --- Footer Styles --- */
#footer {
    background-color: #2f3742;
    padding: 40px 20px;
    color: var(--text-color-light); /* General text color for footer */
    font-size: 0.9em;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    gap: 30px;
}

.footer-left,
.footer-center,
.footer-right {
    flex: 1;
    min-width: 250px;
}

.footer-left h4,
.footer-center h4 {
    color: var(--text-color-light); /* Assuming these headings are light */
    margin-bottom: 20px;
    font-size: 1.2em;
}

.footer-left ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-left ul li {
    margin-bottom: 10px;
}

.footer-left ul li a {
    text-decoration: none;
    color: var(--text-color-light); /* Link color in footer */
    transition: color 0.3s ease;
}

.footer-left ul li a:hover {
    color: var(--accent-color-primary); /* Accent color on hover for footer links */
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.social-icons a:hover img {
    transform: translateY(-5px);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 10px;
}

.footer-logo-text {
    font-family: 'Sugar Snow', cursive;
    font-size: 1.5em;
    color: var(--text-color-light);
    letter-spacing: 1px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-color-light);
}

/* Scrollbar styles (from your index.html) */
::-webkit-scrollbar {
    width: 8px;
    background-color: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: var(--accent-color-primary); /* This was #6e45e2 */
    border-radius: 0px;
    transition: background-color 1.5s ease, opacity 0.5s ease;
}
::-webkit-scrollbar-track {
    background-color: transparent;
}
body.scroll-hidden ::-webkit-scrollbar-thumb {
    opacity: 0;
}
body.scroll-visible ::-webkit-scrollbar-thumb {
    opacity: 1;
}


/* Media Queries for responsiveness */
@media (max-width: 768px) {
    #navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-container {
        display: none;
        width: 100%;
        text-align: center; /* Center links on mobile */
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .hamburger {
        display: flex;
        position: absolute;
        right: 20px;
        top: 25px;
    }

    .nav-container.nav-active {
        display: flex;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        min-width: unset;
    }

    .footer-logo {
        align-items: center;
    }
}


/* __HOME_MOBILE_BEHAVIOR__ */
@media (max-width: 768px) {
    /* Transparent at top on home (when not scrolled and menu closed) */
    body.is-home #navbar {
        background: transparent !important;
    }
    body.is-home #navbar:not(.scrolled) .logo,
    body.is-home #navbar:not(.scrolled) nav ul li a {
        color: white !important;
    }
    body.is-home #navbar:not(.scrolled) .hamburger .line {
        background-color: white !important;
    }
    body.is-home #navbar:not(.scrolled) .logo-icon-white { display: block !important; }
    body.is-home #navbar:not(.scrolled) .logo-icon-black { display: none !important; }

    /* When scrolled (or treated as scrolled while menu is open), use white background + dark text */
    body.is-home #navbar.scrolled {
        background: white !important;
    }
    body.is-home #navbar.scrolled .logo,
    body.is-home #navbar.scrolled nav ul li a {
        color: black !important;
    }
    body.is-home #navbar.scrolled .hamburger .line {
        background-color: black !important;
    }
    body.is-home #navbar.scrolled .logo-icon-white { display: none !important; }
    body.is-home #navbar.scrolled .logo-icon-black { display: block !important; }

    /* Make the mobile dropdown sit above content */
    #navbar nav ul.open {
        z-index: 9998;
    }
}
/* __END_HOME_MOBILE_BEHAVIOR__ */


/* __MOBILE_MENU_OVERLAY_FIX__ */
@media (max-width: 768px) {
  /* Ensure the dropdown menu overlays content and is always tappable */
  #navbar nav ul {
    position: fixed !important;
    top: 80px !important;   /* equal to navbar height */
    left: 0 !important;
    right: 0 !important;
    display: none;
    background: white;
    z-index: 10000 !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  }
  #navbar nav ul.open {
    display: flex !important;
  }
  /* Keep items centered vertically with sufficient touch target */
  #navbar nav ul li a {
    padding: 14px 20px;
  }
}
/* __END_MOBILE_MENU_OVERLAY_FIX__ */


/* __MOBILE_NAV_FIX__ */
@media (max-width: 768px) {
  /* When the hamburger toggles .nav-active on the wrapper, force the list to show */
  .nav-container.nav-active .nav-links {
    display: flex !important;
    flex-direction: column;
    width: 100%;
  }
  /* Prevent the dropdown from getting clipped on small screens */
  #navbar nav .nav-links {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
}
/* __END_MOBILE_NAV_FIX__ */


/* __MOBILE_NAV_COLOR_FIX__ */
/* Force black link text when the mobile menu is open */
@media (max-width: 768px) {
  /* When the dropdown is open, ensure readable dark text */
  body.is-home #navbar nav ul.open li a,
  #navbar nav ul.open li a,
  .nav-container.nav-active .nav-links li a {
    color: #000 !important;
  }
  /* Also make the hamburger lines dark while menu is open at the top */
  body.is-home #navbar:not(.scrolled) .hamburger.active .line {
    background-color: #000 !important;
  }
}




/* HOME PAGE MOBILE MENU ACTIVE UNDERLINE */
@media (max-width: 768px) {
    /* Mobile menu active underline for home page */
    body.is-home #navbar nav ul.open li a {
        position: relative;
    }
    
    body.is-home #navbar nav ul.open li a.active::after,
    #navbar nav ul.open li a.active::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: var(--accent-color-primary);
        bottom: -5px;
        left: 0;
        transition: width 0.3s ease;
    }
}


/* __END_MOBILE_NAV_COLOR_FIX__ */




/* =====================================================
   HOMEPAGE NAVBAR UNDERLINE FIXES
   ===================================================== */

/* Homepage navbar - BEFORE scrolling (transparent navbar) */
body.is-home #navbar:not(.scrolled) nav ul li a::after {
    background-color: white !important; /* White underlines before scrolling */
}

body.is-home #navbar:not(.scrolled) nav ul li a:hover::after,
body.is-home #navbar:not(.scrolled) nav ul li a.active::after {
    background-color: white !important; /* White underlines on hover and active */
    width: 100%;
}

/* Homepage navbar - AFTER scrolling (white navbar) */
body.is-home #navbar.scrolled nav ul li a::after {
    background-color: var(--accent-color-primary) !important; /* Purple underlines after scrolling */
}

body.is-home #navbar.scrolled nav ul li a:hover::after,
body.is-home #navbar.scrolled nav ul li a.active::after {
    background-color: var(--accent-color-primary) !important; /* Purple underlines on hover and active */
    width: 100%;
}

/* Ensure Home tab active underline is always visible */
body.is-home #navbar nav ul li a.active::after {
    width: 100% !important;
}

/* Text colors for homepage navbar */
body.is-home #navbar:not(.scrolled) nav ul li a {
    color: white !important;
}

body.is-home #navbar:not(.scrolled) nav ul li a:hover {
    color: white !important;
}

body.is-home #navbar.scrolled nav ul li a {
    color: black !important;
}

body.is-home #navbar.scrolled nav ul li a:hover {
    color: var(--accent-color-primary) !important;
}



/* =====================================================
   ACTIVE TAB UNDERLINE FIX - HIGHER SPECIFICITY
   ===================================================== */

/* Force active underline to show for Home tab - BEFORE scrolling */
body.is-home #navbar:not(.scrolled) nav ul li a.active::after,
body.is-home #navbar:not(.scrolled) .nav-links li a.active::after {
    content: '' !important;
    position: absolute !important;
    width: 100% !important;
    height: 3px !important;
    background-color: white !important;
    bottom: -5px !important;
    left: 0 !important;
    display: block !important;
}

/* Force active underline to show for Home tab - AFTER scrolling */
body.is-home #navbar.scrolled nav ul li a.active::after,
body.is-home #navbar.scrolled .nav-links li a.active::after {
    content: '' !important;
    position: absolute !important;
    width: 100% !important;
    height: 3px !important;
    background-color: var(--accent-color-primary) !important;
    bottom: -5px !important;
    left: 0 !important;
    display: block !important;
}