/* ---------------- GLOBAL & BASIC STYLES ---------------- */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: white;
    overflow-x: hidden;
    background: black;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* ---------------- TOGGLE INTRO BUTTON ---------------- */
#toggle-intro {
    position: fixed;
    bottom: 20px; /* Placed below the "Back to Top" button */
    right: 20px; /* Aligned with the "Back to Top" button */
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    z-index: 150; /* Slightly lower than "Back to Top" */
    transition: all 0.3s ease-in-out;
}
#toggle-intro:hover {
    background: rgba(0, 204, 255, 0.8);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.8);
}
#toggle-intro:active {
    transform: scale(0.9);
    background: rgba(0, 204, 255, 0.9);
}

@media (max-width: 768px) {
    .back-to-top,
    #toggle-intro {
        right: 10px; /* Adjust alignment for smaller screens */
        padding: 8px 12px;
        font-size: 1rem; /* Slightly smaller font size */
    }

    .back-to-top {
        bottom: 70px; /* Adjust position above "Toggle Intro" */
    }

    #toggle-intro {
        bottom: 10px; /* Adjust position closer to the bottom */
    }
}

/* ---------------- HIDDEN CLASS ---------------- */
.hidden {
    opacity: 0; 
    height: 0; 
    overflow: hidden; 
    pointer-events: none;
    transition: opacity 0.5s ease, height 0.3s ease;
    display: hidden;
}
#bg.hidden {
    display: none;
}

/* ---------------- HEADER & NAV ---------------- */
header {
    position: fixed;
    display: flex;
    justify-content: space-between; /* Ensures space between logo and navigation */
    align-items: center;
    top: 0;
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    overflow: visible;
}

/* Logo */
.logo {
    flex: 1; /* Ensures the logo remains on the left */
    display: flex;
    align-items: center;
    margin-left: 20px;
}
.logo img {
    height: 50px; /* Adjust as needed */
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    object-fit: contain;
}
.logo img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px #00ccff);
}

/* Navigation */
nav {
    flex: 2;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    margin: 0;
    padding-right: 90px;
    overflow: visible;
    flex-wrap: nowrap;
    flex-direction: column; /* Overridden in your JS for large screens? */
    position: absolute;
}
nav ul li {
    display: relative;
}
nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    position: relative;
    padding: 10px 15px;
    transition: color 0.3s ease;
}
nav ul li a:hover {
    color: #00ccff;
}
nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #00ccff;
    transition: width 0.3s ease;
}
nav ul li a:hover::after {
    width: 100%;
}
nav ul li a.active {
    color: #00ccff;
    font-weight: bold;
}

/* Hamburger Icon */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    right: 60px;
    top: 30px;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: transform 0.3s ease, background 0.3s ease;
}
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Menu */
nav ul {
    flex-direction: row; /* Default for larger screens if needed */
}
@media (max-width: 768px) {
    .hamburger {
        display: flex; 
    }
    nav ul {
        flex-direction: column; 
        background: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        display: none; /* Hidden by default on mobile */
        gap: 15px;
        padding: 20px;
        z-index: 999;
    }
    nav ul.visible {
        display: flex !important; /* Ensure visibility */
        flex-direction: column;
        align-items: center; /* Show the menu when toggled */
    }
    nav ul li {
        text-align: center;
    }
}

/* ---------------- HERO SECTION ---------------- */
.hero {
    position: relative;
    height: 100vh; /* Full viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.7); /* Subtle overlay */
    backdrop-filter: blur(8px); 
    transition: opacity 0.5s ease-in-out, transform 0.5s ease;
    z-index: 1;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: glow 2s infinite alternate;
}
.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    line-height: 1.6;
}
.hero-text h1 {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(0, 204, 255, 0.8), 0 0 30px rgba(0, 204, 255, 0.5);
    animation: textGlow 2s infinite alternate;
}
.hero-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 10px;
    line-height: 1.6;
    animation: fadeInUp 2.3s ease-in-out; /* uses single fadeInUp below */
}
.typing-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00ccff;
    text-shadow: 0 0 10px rgba(0, 204, 255, 0.8), 0 0 20px rgba(0, 204, 255, 0.5);
    display: inline-block;
}
.cursor {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00ccff;
    animation: blink 0.8s infinite;
}

/* Keyframes for hero text glowing & blink */
@keyframes blink {
    50% {
        opacity: 0;
    }
}
@keyframes textGlow {
    from {
        text-shadow: 0 0 10px rgba(0, 204, 255, 0.6);
    }
    to {
        text-shadow: 0 0 20px rgba(0, 204, 255, 1);
    }
}
@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
    }
    to {
        text-shadow: 0 0 20px rgba(0, 255, 255, 1);
    }
}
/* Single fadeInUp used throughout */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------------- ABOUT SECTION ---------------- */
.about {
    position: relative;
    text-align: center;
    padding: 80px 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    margin: 20px auto;
    max-width: 100%;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}
.about-content {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards; /* Reuses same fadeInUp */
}
.about-content.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}
.about-content .highlight {
    background: linear-gradient(90deg, rgba(0, 204, 255, 0.5), rgba(0, 119, 255, 0.5));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: bold;
    animation: gradientMove 3s linear infinite;
}

/* Skills Animation */
.skills-list span {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1rem;
    color: white;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    animation: fadeInSkill 1s ease forwards;
}
.skills-list span:nth-child(1) { animation-delay: 0.2s; }
.skills-list span:nth-child(2) { animation-delay: 0.4s; }
.skills-list span:nth-child(3) { animation-delay: 0.6s; }
.skills-list span:nth-child(4) { animation-delay: 0.8s; }
.skills-list span:nth-child(5) { animation-delay: 1s; }
.skills-list span:nth-child(6) { animation-delay: 1.2s; }
.skills-list span:nth-child(7) { animation-delay: 1.4s; }

@keyframes fadeInSkill {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

/* 'Know More' Button */
.about-more-btn {
    padding: 12px 20px;
    font-size: 1rem;
    color: white;
    background: linear-gradient(90deg, #00ccff, #0077ff);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    margin-top: 20px;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.6s;
    opacity: 0;
}

/* Timeline Wrapper */
.timeline-wrapper {
    margin-top: 30px;
    display: none; /* Initially hidden */
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 0, 50, 0.9), rgba(0, 50, 100, 0.7));
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 204, 255, 0.2);
    animation: fadeInUp 1s ease-in-out;
}
.timeline-wrapper.visible {
    display: block;
}
.timeline-wrapper.hidden {
    opacity: 0;
    display: none;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    margin-top: 40px;
}
.timeline h3 {
    font-size: 2rem;
    display: inline-block;
    position: relative;
    margin-bottom: 30px;
    animation: textGlow 2s infinite alternate;
}
.timeline ul {
    list-style: none;
    padding: 0;
    position: relative;
}
.timeline ul li {
    position: relative;
    margin: 20px 0;
    padding-left: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.timeline ul li.visible {
    transform: scale(1.05) translateY(0);
    opacity: 1;
    transition: all 0.6s ease;
}
.timeline ul li:hover:before {
    background: linear-gradient(135deg, #00ccff, #ffffff);
    box-shadow: 0 0 15px #00ccff;
}
.timeline ul li:before {
    content: '';
    position: absolute;
    left: 20px;
    top: 10px;
    width: 20px;
    height: 20px;
    background: #00ccff;
    border: 2px solid white;
    border-radius: 50%;
    z-index: 10;
    background: radial-gradient(circle, #00ccff, #0077ff);
    animation: pulse 2s infinite;
}
.timeline ul li:after {
    content: '';
    position: absolute;
    left: 29px;
    top: 30px;
    width: 4px;
    height: calc(100% - 30px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(0, 0, 50, 0.5));
    z-index: 5;
}
.timeline ul li:last-child:after {
    display: none;
}

/* Timeline Content */
.timeline-content {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 204, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}
.timeline-content:hover {
    transform: translateY(-8px) scale(1.05);
    background: linear-gradient(135deg, rgba(0, 204, 255, 0.2), rgba(0, 0, 50, 0.8));
    box-shadow: 0 6px 15px rgba(0, 204, 255, 0.4);
}
.timeline .year {
    display: block;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 204, 255, 0.8);
}
.timeline-content p {
    color: white;
    font-size: 1rem;
    line-height: 1.6;
}
.timeline ul li .year {
    font-size: 1.3rem;
    font-weight: bold;
    color: #00ccff;
    text-shadow: 0 0 5px rgba(0, 204, 255, 0.7), 0 0 10px rgba(0, 204, 255, 0.5);
    margin-bottom: 5px;
}
.timeline ul li .timeline-content {
    background: rgba(0, 0, 0, 0.8);
    border-left: 5px solid #0077ff;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s ease, background 0.3s ease;
}
.timeline ul li .timeline-content:hover {
    transform: scale(1.05);
    background: rgba(0, 204, 255, 0.2);
}

/* Pulse Keyframe */
@keyframes pulse {
    0% {
        box-shadow: 0 0 5px rgba(0, 204, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 204, 255, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 204, 255, 0.5);
    }
}

/* ---------------- ABOUT / PROJECTS / CONTACT ---------------- */
.about,
.projects,
.contact {
    text-align: center;
    padding: 80px 20px;
    background: rgba(0, 0, 0, 0.8);
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

/* ---------------- PROJECTS ---------------- */
.projects {
    text-align: center;
    padding: 80px 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    margin: 20px auto;
    max-width: 96%;
}
.projects h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(0, 204, 255, 0.8);
}

/* Projects Grid */
.project-grid {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease-in-out;
    width: max-content; /* Fit the content dynamically */
    scroll-behavior: smooth;
    width: calc(100% - 80px);
}
.project-grid-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Project Cards */
.project-card {
    width: 300px;
    min-width: 300px;
    height: 300px;
    height: 500px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 204, 255, 0.4);
}
.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
}
.project-card:hover .card-inner {
    transform: rotateY(180deg);
}
.project-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.project-details {
    padding: 15px;
    color: white;
}
.project-details h3 {
    margin: 10px 0;
    font-size: 1.5rem;
    color: #00ccff;
}
.project-details p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.project-tags span {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    color: white;
    text-transform: uppercase;
}

/* Scroll container & buttons */
.scroll-container {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    max-width: 960px;
    margin: 0 auto;
}
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 5;
    transition: background 0.3s ease;
}
.scroll-btn.left-btn {
    left: -40px;
}
.scroll-btn.right-btn {
    right: -40px;
}
.scroll-btn:hover {
    background: rgba(0, 204, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.9);
}
.scroll-btn:active {
    transform: translateY(-50%) scale(0.9);
}
.left-btn {
    left: 10px;
}
.right-btn {
    right: 10px;
}

/* Projects Mobile Styles */
@media (max-width: 768px) {
    .project-grid {
        display: flex;
        gap: 10px;
        overflow-x: scroll; /* Allow horizontal scrolling on small screens */
        padding: 10px;
        width: 100%;
    }
    .project-grid::-webkit-scrollbar {
        display: none;
    }
    .project-card {
        flex: 0 0 calc(80% - 20px);
        width: auto;
        height: auto;
        margin-right: 10px;
    }
    .project-card img {
        height: auto;
    }
    .scroll-btn {
        display: none;
    }
    .project-card img {
        height: 120px;
    }
}

/* Project Class (Unused?) */
.project {
    background: white;
    color: black;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
.project:hover {
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.8), 0 0 20px rgba(0, 204, 255, 0.5);
    transform: scale(1.05);
}

/* Contact Form */
form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}
form input,
form textarea {
    margin-bottom: 10px;
    padding: 10px;
    width: 100%;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
}
form button {
    padding: 10px;
    background: #0077ff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}
form button:hover {
    background: #0055cc;
}

/* ---------------- FOOTER ---------------- */
.footer {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 40px 20px;
    text-align: center;
    font-size: 1rem;
    box-shadow: 0 -4px 10px rgba(255, 255, 255, 0.1);
}
.footer-container {
    display: flex;
    justify-content: space-between; /* Change this */
    align-items: center;
    max-width: 1000px;
    margin: auto;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}
.footer-left,
.footer-middle,
.footer-right {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}
.footer-left h3 {
    color: #00ccff;
    font-size: 1.5rem;
}
.footer-middle ul {
    list-style: none;
    padding: 0;
}
.footer-middle ul li a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}
.footer-middle ul li a:hover {
    color: #00ccff;
}
.social-icons a {
    display: inline-block;
    margin: 10px;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}
.social-icons a:hover {
    color: #00ccff;
    transform: scale(1.1);
}
.footer-bottom {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ---------------- MOBILE (UNDER 768PX) ---------------- */
@media (max-width: 768px) {
    /* Hero Section Adjustments */
    .hero {
        padding: 50px 20px;
    }
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.4;
    }
    .hero p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    .cta-button {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    /* About Section Adjustments */
    .about {
        padding: 60px 15px;
        margin: 10px auto;
    }
    .about-content h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    .about-content p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    .skills-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    .skills-list span {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    .highlights {
        padding: 15px;
        margin-top: 20px;
    }
    .highlights h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    .highlights ul {
        line-height: 1.4;
    }

    /* Navigation Bar */
    header {
        padding: 10px 15px;
    }
    header .logo img {
        width: 40px; /* Adjust logo size */
    }
    nav ul {
        gap: 15px;
    }
    nav ul li a {
        font-size: 1rem;
    }
    /* Hide Intro Button */
    .hide-intro {
        font-size: 0.9rem;
    }
}

/* ---------------- CTA BUTTON ---------------- */
.cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 1.2rem;
    color: white;
    background: linear-gradient(90deg, #00ccff, #0077ff);
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.6);
}
.cta-button:hover {
    transform: scale(1.1);
    background: linear-gradient(90deg, #0077ff, #00ccff);
    box-shadow: 0 0 20px rgba(0, 204, 255, 0.8);
}

/* ---------------- BACK TO TOP BUTTON ---------------- */
.back-to-top {
    position: fixed;
    bottom: 80px; /* Adjusted to sit above the toggle button */
    right: 20px;  /* Aligned with the toggle button */
    background: #00ccff;
    color: white;
    padding: 10px 15px;
    border-radius: 50%;
    text-align: center;
    font-size: 1.5rem;
    cursor: pointer;
    display: none; /* Initially hidden */
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}
.back-to-top.visible {
    display: block;
    opacity: 1;
    transform: scale(1);
}
.back-to-top:hover {
    background: #0077ff;
    transform: scale(1.2);
}

/* ---------------- FORM VALIDATION ---------------- */
input.invalid,
textarea.invalid {
    border: 2px solid red;
}
.error {
    color: red;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* ---------------- SOCIAL ICONS ---------------- */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}
.social-icons a {
    color: white;
    font-size: 2rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}
.social-icons a:hover {
    color: #00ccff;
    transform: scale(1.2);
    background: rgba(0, 204, 255, 0.3);
}

/* ---------------- CONTACT FORM ---------------- */
.contact {
    text-align: center;
    padding: 50px 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}
.contact h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: white;
}
.contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}
.contact form input,
.contact form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: box-shadow 0.3s ease;
}
.contact form textarea {
    resize: none;
    height: 120px;
}
.contact form input:focus,
.contact form textarea:focus {
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.8), 0 0 20px rgba(0, 204, 255, 0.5);
}
.contact form button {
    background: #00ccff;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.contact form button:hover {
    background: #0088cc;
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.8), 0 0 20px rgba(0, 204, 255, 0.5);
}
.contact form button:focus {
    outline: 2px solid #00ccff;
}
.contact .social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.contact .social-icons a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    transition: background 0.3s ease, transform 0.3s ease;
}
.contact .social-icons a:hover {
    background: rgba(0, 204, 255, 0.3);
    transform: scale(1.1);
}

/* Animation for Form */
.contact-content {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.contact.form-visible .contact-content {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE CONTACT */
@media (max-width: 768px) {
    .contact form {
        width: 90%;
        margin: 0 auto;
    }
    .contact .social-icons {
        flex-wrap: wrap;
    }
}
