* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.content-wrapper {
    transition: filter 0.4s ease;
}

.content-wrapper.blur {
    filter: blur(5px);
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

#backgroundimg {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#backgroundimg .background-layer {
    position: absolute;
    top: -20px;  
    left: -20px; 
    width: calc(100% + 40px);  
    height: calc(100% + 40px); 
    background-image: url('assets/BCI/eeg-main.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: gentleFloat 9s ease-in-out infinite;
    z-index: 0;
}

@keyframes gentleFloat {
    0% {
        transform: translateX(0px) translateY(0px);
    }
    25% {
        transform: translateX(8px) translateY(-6px);
    }
    50% {
        transform: translateX(-5px) translateY(-12px);
    }
    75% {
        transform: translateX(-8px) translateY(6px);
    }
    100% {
        transform: translateX(0px) translateY(0px);
    }
}


.mainpage-text {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.logo {
    position: absolute;
    left: 50px;
    top: 19px;
    font-size: 30px;
    color: white;
    z-index: 2;
}

/*#background-video {*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    object-fit: cover;*/
/*    z-index: 0;*/
/*    will-change: transform;*/
/*}*/

.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    font-size: 36px;
    color: white;
    margin-left: 30px;
    font-weight: bold;
    z-index: 1000;
}

.mainpage-text {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 0 20px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    #background-video {
        height: 100vh;
        height: 100dvh;
    }
    
    .mainpage-text h1 {
        font-size: 28px;
        padding: 0 15px;
        margin-bottom: 20px;
    }
}

#backgroundimg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.explore-btn {
    position: relative;
    z-index: 2;
}

.explore-btn.hidden {
    display: block;
}

/* Explore Button hover effect */
.explore-btn a {
    display: inline-block;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border: 1.5px solid white;
    position: relative;
    overflow: hidden;
    transition: color 3s, background 2s;
}
.logo {
    position: absolute;
    left: 50px;
    top: 19px;
    font-size: 30px;
    color: white;
}

/* Overlay */

.mainpage-text {
    color: white;
    text-align: center;
    padding-top: 15vh;
}

.mainpage-text h1 {
    font-size: 55px;
    margin-bottom: 10px;
}

.mainpage-text p {
    margin: 5px 0 20px;
    font-size: 30px;
    text-align: center;
    width: 100%;
}

.explore-btn a span {
    height: 100%;
    width: 0; 
    position: absolute;
    top: 0;
    left: 0;
    background: white; 
    z-index: -1; 
    transition: width 1s; 
}

.explore-btn a:hover span {
    width: 100%; 
}

.explore-btn a:hover {
    color: black; 
    background: rgba(255, 255, 255, 0.8); 
    letter-spacing: 5px; 
    transition: 1.5s;
}

nav ul {
    padding: 20px;
    list-style: none;
}

nav ul li {
    margin: 50px 0;
}

nav ul li a {
    text-decoration: none;
    color: white;
    padding: 10px 15px;
    display: block;
    transition: background 0.3s;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.container {
    width: 80%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

section {
    padding: 60px 0;
}

/* About Me */
#about-me {
    background-color: #f8f9fa;
    padding: 8rem 2rem;
    position: relative;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Header */
.about-header {
    margin-bottom: 6rem;
    text-align: center;
}

.welcome-text {
    display: inline-block;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #555;
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 4rem;
}

.welcome-text::before,
.welcome-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 3rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, #555);
}

.welcome-text::before {
    left: 0;
    transform: scaleX(-1);
}

.welcome-text::after {
    right: 0;
}

.title {
    font-size: 3.2rem;
    color: #1a1a1a;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
}

.title-decoration {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #1a1a1a, #4a4a4a);
    margin: 2rem auto 0;
    border-radius: 1px;
}

.intro-section {
    display: grid;
    gap: 5rem;
    align-items: center;
}

.image-section {
    position: relative;
    max-width: 355px;
    margin: 0 auto;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transition: transform 0.6s ease;
}

.image-wrapper:hover {
    transform: translateY(-10px);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1), transparent);
}

.background-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid #1a1a1a;
    z-index: -1;
    opacity: 0.1;
}

/* Content*/
.content-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-decoration {
    width: 3px;
    height: 50px;
    background: linear-gradient(180deg, #1a1a1a, transparent);
    margin-bottom: 1rem;
}

.main-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #2a2a2a;
    margin: 0;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

.subtitle-text {
    font-size: 1.1rem;
    color: #555;
    font-style: italic;
    margin: 0;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (min-width: 992px) {
    .intro-section {
        grid-template-columns: 480px 1fr;
    }
    
    #about-me {
        padding: 10rem 2rem;
    }
    
    .title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 2.8rem;
    }
    
    .title-decoration {
        width: 120px;
    }
    
    .main-text {
        font-size: 1.1rem;
    }
    
    #about-me {
        padding: 6rem 1.5rem;
    }
}

/* PROJECTS */

.project-link {
    text-decoration: none; 
}

.projects-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1a365d 0%, #2c5382b6 100%);
    color: #ffffff;
    border-radius: 0;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.205) 0%, transparent 70%);
    animation: rotate 70s linear infinite;
    z-index: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.projects-header {
    text-align: center;
    margin-bottom: 3rem;
}

.projects-title {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    font-weight: 800;
    letter-spacing: 2px;
    text-decoration: none;
}

.projects-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 5px;
    background: linear-gradient(90deg, #4299e1, #2b6cb0);
    border-radius: 1px;
}

.projects-grid-container {
    position: relative;
}

.projects-grid {
    display: flex;
    gap: 2rem;  
    padding: 1.5rem; 
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    position: relative;
}

.projects-grid::-webkit-scrollbar {
    display: none;
}

.project-card {
    flex: 0 0 auto;
    width: 320px;
    background: linear-gradient(145deg, #2d5a9c 0%, #1e3c6e 100%);  
    border-radius: 0.2rem;  
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);  
    scroll-snap-align: start;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 
                0 0 0 1px rgba(255, 255, 255, 0.1),
                0 0 20px rgba(66, 153, 225, 0.15);  
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),  
                0 0 0 1px rgba(255, 255, 255, 0.2),
                0 0 30px rgba(66, 153, 225, 0.25);  
    border-color: rgba(255, 255, 255, 0.3);  
}

.project-card:hover::before {
    opacity: 1;
}

.project-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);  
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-content {
    padding: 1.75rem;  
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);  
}

.project-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
    font-weight: bold;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);  
}

.project-card:hover .project-title {
    color: #63b3ed;
}

.project-description {
    color: #e2e8f0;
    line-height: 1.6; 
    font-size: 1rem;
    margin-bottom: 1.25rem;  
    opacity: 0.95;
    text-decoration: none;
}

.read-more {
    display: inline-block;
    color: #ffffff;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4299e1, #2b6cb0);
    transform: scaleX(0);
    transition: transform 0.5s ease;
    transform-origin: right;
}

.project-card:hover .read-more::after {
    transform: scaleX(1);
    transform-origin: left;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(33, 58, 87, 0.772);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.scroll-btn:hover {
    background: rgba(44, 82, 130, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

.scroll-btn::before {
    content: '';
    width: 10px;
    height: 10px;
    border-top: 2px solid white;
    border-right: 2px solid white;
    display: block;
}

.scroll-left::before {
    transform: rotate(-135deg);
}

.scroll-right::before {
    transform: rotate(45deg);
}

.project-card.upcoming {
    background: linear-gradient(145deg, #2d5a9c 0%, #1e3c6e 100%);
    opacity: 0.5;
    backdrop-filter: blur(5px);
    pointer-events: none;
}

.project-card.upcoming:hover {
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .projects-title {
        font-size: 2.5rem;
    }

    .project-card {
        width: 250px;
    }
}

/* SKILLS */

.skills-section {
    padding: 8rem 2rem;
    background: 
        linear-gradient(135deg, rgba(228, 227, 227, 0.9) 0%, rgba(233, 236, 239, 0.9) 100%),
        url('assets/robotic-arm-background1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .skills-section {
        background-attachment: scroll;
        background-size: cover; 
        background-position: center;
    }
}

.skills-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(9,132,227,0.03) 0%, rgba(0,206,201,0.03) 50%, transparent 70%);
    animation: rotate 60s linear infinite;
}

.skills-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.skills-header {
    text-align: center;
    margin-bottom: 6rem;
    position: relative;
}

.skills-title {
    font-size: 2.4rem;
    color: #2d3436;
    margin: 0;
    position: relative;
    display: inline-block;
    padding-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.skills-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 5px;
    background: linear-gradient(90deg, #0984e3, #14389b);
    border-radius: 1px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    padding: 1rem;
}

.skill-card {
    background: white;
    border-radius: 15px;
    padding: 3rem 2.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(20px); 
    transition: opacity 0.6s ease, transform 0.6s ease; 
}

.skill-card.visible {
    opacity: 1;
    transform: translateY(0); 
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(9,132,227,0.1) 0%, rgba(0,206,201,0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.skill-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    border-color: rgba(9,132,227,0.2);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-icon {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: #0984e3;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #0984e3, #00cec9);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.skill-card:hover .skill-icon {
    transform: scale(1.15) rotate(5deg);
}

.skill-title {
    font-size: 1.8rem;
    color: #2d3436;
    margin-bottom: 1.5rem;
    position: relative;
    font-weight: 700;
    transition: color 0.3s ease;
}

.skill-card:hover .skill-title {
    color: #093b61;
}

.skill-description {
    color: #636e72;
    line-height: 1.8;
    font-size: 1.1rem;
    position: relative;
    margin: 0;
}

.skill-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0984e3, #14389b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.skill-card:hover::after {
    transform: scaleX(1);
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skills-title::after {
        width: 120px;
    }
    
    .skills-title {
        font-size: 2.5rem;
    }

    .skill-card {
        padding: 2.5rem 2rem;
    }
}

@media (min-width: 1600px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* CONTACT */
#contact {
    background: linear-gradient(145deg, rgba(5, 25, 55, 0.8), rgba(0, 77, 122, 0.2)), 
                url('assets/contact-background.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    color: #ffffff;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.animated-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(
        circle at center,
        rgba(79, 150, 255, 0.1) 0%,
        transparent 70%
    );
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-header h2 {
    font-size: 2.7rem;
    margin-bottom: 25px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 15px rgba(79, 150, 255, 0.2);
}

.header-line {
    width: 130px;
    height: 4px;
    background: linear-gradient(90deg, #1b478a, #7ba6e7);
    margin: 0 auto 25px;
    border-radius: 1px;
    position: relative;
    overflow: hidden;
}

.header-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
    animation: smoothShimmer 3s ease-in-out infinite;
}

@keyframes smoothShimmer {
    0% {
        left: -50%;
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        left: 150%;
        opacity: 0;
    }
}

.section-header p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 300;
}

.contact-info-wrapper {
    max-width: 650px;
    margin: 0 auto;
    perspective: 1000px;
}

.contact-info {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 80px rgba(79, 150, 255, 0.1) inset;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px) rotateX(2deg);
}

.contact-info h3 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #ffffff;
    position: relative;
    padding-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.info-grid {
    display: grid;
    gap: 15px;
}

.info-item {
    padding: 17px;
    background: rgba(255, 255, 255, 0.114);
    border-radius: 2px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.5s;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(79, 150, 255, 0.1) inset;
}

.info-item:hover::before {
    left: 100%;
}

.info-header {
    position: relative;
    margin-bottom: 15px;
}

.glow-effect {
    opacity: hidden;
}

.info-item:hover .glow-effect {
    opacity: 0.6;
}

.info-text {
    text-align: center;
}

.info-text strong {
    display: block;
    color: rgb(210, 209, 209);
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(79, 150, 255, 0.3);
}

.info-text span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    line-height: 1.6;
    font-weight: 300;
    display: block;
    transition: all 0.3s ease;
}

.info-item:hover .info-text span {
    color: #ffffff;
    transform: scale(1.02);
}

/* Responsive Design */
@media (max-width: 768px) {
    #contact {
        padding: 90px 0;
    }
    
    .header-line {
        width: 100px;
    }
    
    .section-header h2 {
        font-size: 2.8rem;
    }
    
    .contact-info {
        padding: 35px;
    }
    
    .info-grid {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    .contact-info {
        padding: 30px;
    }
    
    .info-item {
        padding: 25px;
    }
    
    .info-text strong {
        font-size: 1.2rem;
    }
    
    .info-text span {
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    #contact-form,
    .contact-info {
        height: auto;
    }
}

@media (max-width: 768px) {
    .mainpage-text h1 {
        font-size: 28px;
        padding: 0 15px;
        margin-bottom: 20px;
    }

    .logo {
        font-size: 24px;
        left: 20px;
        top: 25px;
    }

    #menu-button {
        right: 15px;
    }

    .explore-btn a {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Mobile - About */
@media (max-width: 768px) {
    #about-me {
        padding: 3rem 1rem;
    }

    .about-header h2 {
        font-size: 2rem;
    }

    .intro-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .image-container {
        max-width: 300px;
    }
    .image-wrapper {
        max-width: 275px;
    }
    .intro-text {
        font-size: 1.2rem;
        line-height: 1.5;
    }

    .intro-subtext {
        font-size: 1rem;
    }

    .overline::before,
    .overline::after {
        width: 20px;
        left: -30px;
    }

    .overline::after {
        right: -30px;
    }
}

/* Mobile -Projects */
@media (max-width: 768px) {
    .projects-section {
        padding: 2rem 1rem;
    }

    .projects-title {
        font-size: 2rem;
    }

    .project-card {
        width: 260px;
    }

    .project-content {
        padding: 1rem;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    .scroll-btn {
        width: 30px;
        height: 30px;
    }

    .projects-grid {
        gap: 1rem;
        padding: 0.5rem;
    }
}

/* Mobile - Skills */
@media (max-width: 768px) {
    .skills-section {
        padding: 4rem 1rem;
    }

    .skills-title {
        font-size: 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-card {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .skill-icon {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .skill-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .skill-description {
        font-size: 1rem;
    }
}

/* Mobile - Contact */
@media (max-width: 768px) {
    #contact {
        padding: 60px 0;
        background-attachment: scroll;
    }

    .container {
        padding: 0 20px;
    }

    .section-header h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .section-header p {
        font-size: 1rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    #contact-form,
    .contact-info {
        padding: 25px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-control {
        padding: 12px;
        font-size: 0.9rem;
    }

    .submit-btn {
        padding: 14px;
        font-size: 1rem;
    }

    .contact-info h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .info-item {
        padding: 15px;
    }

    .info-text strong {
        font-size: 1rem;
    }

    .info-text span {
        font-size: 0.9rem;
    }
}

/* small screen */
@media (max-width: 480px) {
    .mainpage-text h1 {
        font-size: 24px;
    }

    .logo {
        font-size: 20px;
    }

    #active-menu {
        width: 200px;
        right: -200px;
        padding-top: 10px;
    }

    nav ul li {
        margin: 20px 0;
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    .project-card {
        width: 240px;
    }

    .skill-card {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 768px) {
    .content-wrapper.blur {
        filter: none; 
    }
}


@media (max-width: 768px) {
    #active-menu {
        transition: right 0.3s ease;
    }

    #menu-button img {
        width: 18px;
    }
}

::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 2px;
    height: 180px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

.copyright-section {
    background: linear-gradient(145deg, #112647, #004d7a);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.copyright-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.copyright-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
}

.footer-extra {
    margin-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-extra .fa-heart {
    color: #ff6b6b;
    margin: 0 0.25rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .copyright-section {
        padding: 1.5rem 0;
    }
    
    .copyright-text p {
        font-size: 0.9rem;
    }
    
    .footer-extra {
        margin-top: 0.8rem;
        font-size: 0.8rem;
    }
}

/* Active menu */
#active-menu {
    height: 100vh;
    width: 237px;
    position: fixed;
    top: 0;
    right: -237px;
    background: rgba(12, 38, 80, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); 
    z-index: 999;
    will-change: transform;
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    padding-top: 15px;
}

#active-menu.menu-active {
    transform: translateX(-237px);
}

.content-wrapper {
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.content-wrapper.content-blur {
    opacity: 0.7;
}

@media (max-width: 480px) {
    #active-menu {
        width: 200px;
        right: -200px;
    }
    
    #active-menu.menu-active {
        transform: translateX(-200px);
    }
}

#menu-button {
    width: 45px;
    height: 45px;
    position: fixed;
    top: 18px;
    right: 30px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

#menu-button img {
    width: 20px;
    height: auto;
    will-change: opacity;
    transition: opacity 0.2s ease;
}

nav ul li a {
    text-decoration: none;
    color: white;
    padding: 10px 15px;
    display: block;
    transition: background 0.3s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255,255,255,0.1);
}


