* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body {
    background: #0f0c1a;
    color: #fff;
}


nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    background: rgba(8, 8, 8, 0.4);
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
    box-sizing: border-box;
}

/* Logo */
.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0e37ed;
    text-shadow: 0 0 10px rgba(0, 245, 212, 0.6);
    cursor: pointer;
}

/* Links */
nav ul {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 0;
    padding: 0;
}

nav ul li {
    list-style: none;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a:hover {
    color: #ffd700;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #00f5d4;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Mobile buttons */
.fas.fa-bars, .fas.fa-times {
    display: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Mobile menu */
@media (max-width: 900px) {
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background: rgba(8, 8, 8, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
    }

    nav ul.show {
        right: 0;
    }

    .fas.fa-bars, .fas.fa-times {
        display: block;
    }
}





/* ---- Animated gradient background with blobs ---- */
#header {
    width: 100%;
    height: 100vh;
    background: linear-gradient(-45deg, #ff004f, #1d524b, #321a3c, #00f5d4, #ffd700);
    background-size: 500% 500%;
    animation: gradientAnimation 20s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---- Floating blobs ---- */
#header::before,
#header::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: floatBlobs 15s ease-in-out infinite;
}

#header::before {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #ff004f, transparent);
    top: 10%;
    left: -100px;
    animation-delay: 0s;
}

#header::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #00f5d4, transparent);
    bottom: -150px;
    right: -150px;
    animation-delay: 7s;
}

@keyframes floatBlobs {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -50px) scale(1.2); }
}

/* ---- Header text animation ---- */
.header-text {
    text-align: center;
    color: #fff;
    z-index: 2;
}

.header-text p {
    animation: fadeInUp 1s ease forwards;
}

.header-text h1 {
    font-size: 2.8rem;
    margin: 0.5em 0;
    animation: fadeInUp 1.2s ease forwards;
}

.header-text h1 span {
    color: #05342d;
    text-shadow: 0 0 8px #00f5d4, 0 0 16px rgba(0, 245, 212, 0.6);
    animation: glow 2s ease-in-out infinite alternate;
}

.header-text .lead {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
    opacity: 0.85;
    animation: fadeInUp 1.4s ease forwards;
}

/* Glow animation for name */
@keyframes glow {
    from { text-shadow: 0 0 8px #00f5d4, 0 0 16px rgba(0, 245, 212, 0.6); }
    to { text-shadow: 0 0 20px #00f5d4, 0 0 40px rgba(0, 245, 212, 0.9); }
}

/* Reuse fadeInUp from your existing code */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}










/* ----------ABOUT---------- */
.about-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #12122e, #151336); /* Dark gradient background */
  color: #fff;
}

.about-section .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.about-col-1 {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  animation: slideInLeft 1s ease-out forwards;
}

.about-col-1 img {
  width: 100%;
  max-width: 340px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-col-1 img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.8);
}

.about-col-2 {
  flex: 1 1 55%;
  animation: slideInRight 1s ease-out forwards;
}

.about-col-2 .sub-title {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: #ff6f61; /* Highlight title in coral */
}

.about-description {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 25px;
  color: #e0e0e0;
}

/* Tabs */
.tab-titles {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.tab-links {
  font-weight: bold;
  font-size: 1.1rem;
  color: #ccc;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.tab-links:hover {
  color: #ff6f61;
}

.tab-links.active-link {
  color: #ff6f61;
}

.tab-links.active-link::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background: #ff6f61;
  left: 0;
  bottom: -5px;
}

/* Tab Content */
.tab-contents ul {
  list-style: none;
  padding: 0;
}

.tab-contents li {
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: #ddd;
}

.tab-contents span {
  font-weight: bold;
  color: #ffd700; /* Gold for highlights */
}

/* Animations */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .about-section .row {
    flex-direction: column;
    text-align: center;
  }
  .about-col-1, .about-col-2 {
    flex: 1 1 100%;
  }
  .about-col-2 .sub-title {
    font-size: 2rem;
  }
  .about-description {
    font-size: 1rem;
  }
}







/* Dark Theme Background */
.about-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
  color: #f5f5f5; /* All text white-ish */
}

/* Headings */
.about-col-2 .sub-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #27a2ea; /* Bright orange for headings */
}

/* Tab Titles */
.tab-titles {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.tab-links {
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  color: #ccc; /* Light gray default */
  transition: color 0.3s ease;
}

.tab-links:hover {
  color: #27a2ea; /* Hover orange */
}

.tab-links.active-link {
  color: #27a2ea; /* Active tab text */
}

.tab-links.active-link::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background: #27a2ea; /* Active underline */
  left: 0;
  bottom: -5px;
}

/* Tab Content */
.tab-contents {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.tab-contents.active-tab {
  display: block;
}

.tab-contents ul li {
  margin-bottom: 12px;
  font-size: 1rem;
}

.tab-contents span {
  font-weight: bold;
  color: #ff9800; /* Highlighted skill/degree text */
}

/* Fade animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}












/* ----------SERVICES---------- */
#services {
    padding: 30px 0;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.services-list div {
    background: #262626;
    padding: 40px;
    font-size: 15px;
    line-height: 30 px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s;
}

.services-list div i {
    font-size: 50px;
    margin-bottom: 30px;
}

.services-list div h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}

.services-list div a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    margin-top: 20px;
    display: inline-block;
}

.services-list div:hover {
    background: rgba(0, 123, 255, 0.3); /* Transparent blue */
    transform: translateY(-10px);
}



.services-list div {
    transition: background 0.3s ease, transform 0.3s ease;
}












/* ----------PORTFOLIO---------- */
#portfolio {
    padding: 50px 0;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.work {
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.work img {
    width: 100%;
    border-radius: 12px;
    display: block;
    transition: transform 0.5s ease;
}

.layer {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(187, 216, 247, 0.7), rgba(0, 0, 139, 0.85));
    border-radius: 12px;
    position: absolute;
    left: 0;
    bottom: 0;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 16px;
    color: #fff;
    transition: opacity 0.5s ease;
}

.layer h2 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
}

.layer p {
    font-size: 14px;
    opacity: 0.9;
}

.layer a {
    margin-top: 20px;
    color: #fff;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    transition: background 0.3s ease;
}

.layer a:hover {
    background: rgba(255,255,255,0.4);
}

.work:hover img {
    transform: scale(1.1);
}

.work:hover .layer {
    opacity: 1;
}

.btn {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #007bff;
    padding: 14px 50px;
    border-radius: 6px;
    color: #007bff;
    background: transparent;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #007bff;
    color: #fff;
}












.video-section {
  padding: 40px 20px;
  background: #090f1d;
  text-align: center;
}

.video-container {
  max-width: 800px; /* Limit the size */
  margin: 0 auto; /* Center horizontally */
}

.video-section h2 {
  font-size: 26px;
  margin-bottom: 8px;
  color: #ececec;
}

.video-section p {
  font-size: 15px;
  color: #c2c2c2;
  margin-bottom: 20px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(236, 231, 231, 0.15);
  background: #0f172a /* Prevent white flash before load */
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

















#contact {
    padding: 60px 0;
    background: #0f172a; /* dark navy background */
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    background: #1e293b; /* dark card color */
    max-width: 1000px;
    margin: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    overflow: hidden;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
    padding: 30px;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #fff;
}

.contact-info p {
    margin: 10px 0;
    font-size: 1rem;
    color: #cbd5e1; /* light gray */
}

.social-icons a {
    margin: 10px 10px 0 0;
    font-size: 1.5rem;
    color: #38bdf8; /* light blue */
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #0ea5e9; /* brighter blue on hover */
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    margin-bottom: 15px;
    background: #0f172a; /* darker background for fields */
    border: 1px solid #334155;
    border-radius: 8px;
    font-size: 1rem;
    color: #e2e8f0; /* text inside fields */
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 6px rgba(56,189,248,0.4);
}

.btn3 {
    background: #38bdf8;
    color: #0f172a;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn3:hover {
    background: #0ea5e9;
}



footer {
    background: #0f172a; /* dark navy */
    padding: 20px 0;
    border-top: 1px solid #334155;
}

.footer-container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-container p {
    color: #94a3b8; /* soft gray */
    font-size: 0.9rem;
}

.footer-links a {
    color: #38bdf8; /* blue links */
    margin-left: 15px;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #0ea5e9; /* brighter blue on hover */
}












/* ----------CSS FOR SMALL SCREEN---------- */
@media only screen and (max-width: 600px) {
    #header {
        background-image: url(images/phone-background.png);
    }

    .header-text {
        margin-top: 100%;
        font-size: 16px;
    }

    .header-text h1 {
        font-size: 30px;
    }

    nav .fas {
        display: block;
        font-size: 25px;
    }

    nav ul {
        background: #b54768;
        position: fixed;
        top: 0;
        width: 200;
        right: 0;
        height: 100vh;
        padding-top: 50px;
    }

    nav ul li {
        display: block;
        margin: 25px;
    }

}








/* ----------CSS FOR SMALL SCREEN---------- */
@media only screen and (max-width: 600px) {

    /* Adjust the header image and text size for small screens */
    #header {
        background-image: url(images/phone-background.png);
    }

    .header-text {
        margin-top: 100%;
        font-size: 16px;
    }

    .header-text h1 {
        font-size: 30px;
    }

    /* Show the navigation menu on small screens */
    nav ul {
        display: none;
    }

    nav .fas {
        display: block;
        font-size: 25px;
    }

    nav ul {
        background: #b54768;
        position: fixed;
        top: 0;
        width: 200px;
        /* Increased the width to accommodate the menu items */
        right: 0;
        height: 100vh;
        padding-top: 50px;
        transform: translateX(200px);
        /* Off-canvas menu, initially hidden */
        transition: transform 0.3s ease-in-out;
    }

    nav ul.show {
        transform: translateX(0);
        /* Show the menu when 'show' class is applied */
    }

    nav ul li {
        display: block;
        margin: 25px;
    }
}