/* 🔹 General Page Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #0f0f0f;
    color: #ffffff;
}
/* Header nav bar - Clean & Floating */
header {
    position: fixed;
    width: 100%;
    top: 20px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    padding: 0 40px;
    background: transparent; /* Remove the black box */
}

.logo-container {
    position: relative;
    z-index: 1001;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    transition: 0.3s;
    text-shadow: 0px 0px 10px rgba(0, 230, 230, 0.7);
}

.logo:hover {
    color: #00e6e6;
}

/* Navbar Styling - Now Transparent */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.08); /* Subtle glass effect */
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 15px;
    transition: all 0.3s ease-in-out;
}

/* Futuristic Hover Glow */
.nav-links a:hover {
    color: #00e6e6;
    text-shadow: 0px 0px 10px rgba(0, 230, 230, 0.8);
}

/* Underline Effect on Hover */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #00e6e6;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

/* Language Switcher */
.language-switcher {
    margin-left: 20px;
}

#language-select {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

#language-select:focus {
    outline: none;
}

/* Responsive Navigation */
@media screen and (max-width: 900px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 10px 20px;
    }

    .logo-container {
        margin-bottom: 10px;
    }

    .nav-container {
        padding: 10px 20px;
    }

    .nav-links {
        gap: 20px;
    }
}
/* 🔹 About Me Section - Full White Background */
.about-me-section {
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    gap: 50px; /* Space between text and image */
    padding: 120px 10%; /* Balanced padding */
    background-color: #ffffff; /* Full white section */
    color: #0f0f0f;  
    position: relative;
    margin-top: 90px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-in-out forwards 0.5s;
}

/* 🔹 Push Down the Section Below Navbar */
.about-me-section::before {
    content: "";
    display: block;
    height: 80px; /* 🔥 Adjust this based on navbar height */
}

/* 🔹 Left: Text Content */
.about-me-text {
    font-size: 20px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.85);
    line-height: 1.8;
    max-width: 50%;
    text-align: left;
    padding-right: 30px;
    opacity: 0;
    transform: translateX(-50px);
    animation: fadeInLeft 0.8s ease-in-out forwards 0.8s;
}

/* 🔹 Right: Image Box */
.about-me-image {
    width: 30%;
    max-width: 250px;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateX(50px);
    animation: fadeInRight 0.8s ease-in-out forwards 1s;
}

/* 🔹 Image Inside */
.about-me-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* 🔹 Keyframe Animations (Same Smooth Effects) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* 🔹 Skills Wrapper */
.skills-wrapper {
    padding: 150px 50px;
    text-align: center;
    max-width: 1200px;
    margin: auto;
}

.section-title {
    font-size: 30px;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00e6e6;
}

/* 🔹 Two-Column Layout */
.skills-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.languages-box, .coding-box {
    flex: 1;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 12px rgba(0, 230, 230, 0.2);
    border-radius: 10px;
    text-align: center;
}

/* 🔹 Titles */
.sub-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: #00e6e6;
}

/* 🔹 Language Skill Bars */
.language {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    margin-bottom: 10px;
}

.bar-container {
    width: 70%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.bar {
    height: 100%;
    background: #00e6e6;
    transition: width 1s ease-in-out;
}

.fill-full { width: 100%; }
.fill-high { width: 80%; }
.fill-mid { width: 50%; }
.fill-low { width: 30%; }

/* 🔹 Coding Skills Grid */
.coding-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    max-width: 600px;
    margin: auto;
}

.coding-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.main-lang { background: #00e6e6; color: #0f0f0f; }
.secondary-lang { background: rgba(0, 230, 230, 0.7); }
.basic-lang { background: rgba(0, 230, 230, 0.4); }

.coding-item:hover {
    transform: scale(1.05);
}

/* 🔹 Skill Level Legend */
.skill-legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-box {
    width: 22px;
    height: 10px;
    border-radius: 5px;
    display: inline-block;
}

/* Updated Colors for Clarity */
.expert-level { background: #00e6e6; }  /* Brightest, Strongest */
.proficient-level { background: rgba(0, 230, 230, 0.7); } /* Medium Intensity */
.basic-level { background: rgba(0, 230, 230, 0.4); } /* Faintest */

/* 🔹 App Skills Section */
.app-skills-section {
    padding: 100px 50px;
    text-align: center;
    background-color: #ffffff; /* Swapped to White */
    color: #0a0a0a; /* Dark text for contrast */
}

/* 🔹 Section Title */
.section-title {
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    color: #00b2b2; /* Adapted for contrast on white */    
    letter-spacing: 1px;
    margin-bottom: 40px;
    position: relative;
}

/* 🔹 Animated Grid Layout */
.app-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: auto;
}

/* 🔹 Individual App Item */
.app-item {
    background: rgba(0, 0, 0, 0.08); /* Light gray for contrast */
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* 🔥 Hover Effect - Glow & Scale */
.app-item:hover {
    background: rgba(0, 230, 230, 0.15); /* Light blue hover effect */
    transform: scale(1.05);
}

/* 🔹 App Logo */
.app-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    transition: transform 0.3s ease-in-out;
}

/* 🔥 App Logo Animation */
.app-item:hover img {
    transform: rotate(10deg) scale(1.1);
}

/* 🔹 App Title */
.app-item h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #0a0a0a; /* Dark text for readability */
}

/* 🔹 App Description */
.app-item p {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7); /* Darker gray for readability */
}



/* Footer Section */
.footer {
    background: #0a0a0a;
    padding: 20px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle Glowing Line */
.footer::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #00e6e6, transparent);
    top: 0;
    left: 0;
}

/* Footer Container */
.footer-container {
    max-width: 1000px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Footer Text */
.footer-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Footer Links */
.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

/* Hover Effects */
.footer-links a:hover {
    color: #00e6e6;
    text-shadow: 0px 0px 10px rgba(0, 230, 230, 0.8);
}

/* ===========================
   MOBILE (≤768px) — Skills page
   =========================== */
@media (max-width: 768px) {
  /* lock width; avoid horizontal scroll */
  html, body { max-width: 100vw; overflow-x: hidden; overscroll-behavior-x: none; touch-action: manipulation; }

  /* Header is not fixed; logo scrolls with page */
  header { position: static; padding: 14px 16px; background: transparent; }

  /* Floating toggle button (follows scroll) */
  .nav-toggle{
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    right: calc(env(safe-area-inset-right, 0px) + 12px);
    display: inline-flex; align-items:center; justify-content:center;
    width:44px; height:44px; border-radius:12px;
    border:1px solid rgba(255,255,255,.18);
    background: rgba(20,20,20,.68); backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0,0,0,.35);
    z-index:1100;
  }
  .nav-toggle span{ display:block; width:20px; height:2px; background:#fff; margin:3.8px 0; transition:transform .25s ease, opacity .25s ease; }
  .nav-toggle.is-open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2){ opacity:0; }
  .nav-toggle.is-open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

  /* Off-canvas menu panel */
  .nav-container{
    position: fixed; top:0; left:0; right:0; transform: translateY(-110%);
    transition: transform .28s ease;
    padding-top: calc(env(safe-area-inset-top, 0px) + 64px);
    padding-bottom:16px;
    background: rgba(12,12,12,.96);
    border-bottom:1px solid rgba(255,255,255,.08);
    box-shadow:0 10px 30px rgba(0,0,0,.45);
    z-index:1099;
    /* remove desktop glass look */
    border-radius:0; backdrop-filter:none; border:none; box-shadow:none;
  }
  .nav-container.is-open{ transform: translateY(0); }

  .nav-links{
    list-style:none; margin:0; padding:0 16px 8px;
    display:flex; flex-direction:column; gap:10px;
  }
  .nav-links a{
    display:block; padding:14px 16px; font-size:16px; line-height:1.2;
    background: rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.12);
    border-radius:12px;
  }
  .nav-links a::after{ display:none; }

  .language-switcher{ padding:6px 16px 14px; }
  #language-select{
    width:100%; padding:10px 12px; font-size:15px; color:#fff;
    background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:10px;
  }

  /* Prevent page scroll when menu is open (JS toggles .menu-open) */
  body.menu-open{ position: fixed; inset:0; overflow:hidden; }

  /* ------- Page sections ------- */
  .about-me-section{
    flex-direction: column;
    gap: 20px;
    padding: 56px 18px;
    margin-top: 0;
  }
  .about-me-section::before{ height:0; } /* remove spacer */
  .about-me-text{
    max-width: 100%;
    padding-right: 0;
    font-size: 16px;
    line-height: 1.7;
    text-align: left;
  }
  .about-me-image{ width: 85%; max-width: 360px; }

  .skills-wrapper{ padding: 64px 18px; }
  .section-title{ font-size: 28px; margin-bottom: 28px; }

  .skills-container{
    flex-direction: column;
    gap: 16px;
  }
  .languages-box, .coding-box{
    padding: 20px;
    text-align: left;
  }
  .language{ font-size: 16px; }
  .bar-container{ width: 60%; }

  .coding-container{
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 12px;
    max-width: 100%;
  }

  .skill-legend{
    flex-direction: column; gap: 8px; align-items: flex-start;
    font-size: 14px;
  }

  .app-skills-section{ padding: 56px 18px; }
  .app-skills-grid{ grid-template-columns: 1fr; gap: 14px; }
  .app-item{ padding: 20px; }
  .app-item img{ width: 54px; height: 54px; }
}

/* ===========================
   TABLET (769px–1024px) — Skills page
   =========================== */
@media (min-width: 769px) and (max-width: 1024px) {
  header{ padding: 16px 24px; }
  .logo{ font-size: 20px; }
  .nav-container{ padding: 10px 20px; }
  .nav-links{ gap: 18px; }
  .nav-links a{ font-size: 15px; padding: 8px 12px; }
  .language-switcher{ margin-left: 12px; }
  #language-select{ font-size: 13px; padding: 4px 8px; }
  .nav-toggle{ display:none; } /* keep inline nav on tablets */

  .about-me-section{
    gap: 28px;
    padding: 80px 28px;
    margin-top: 70px;
  }
  .about-me-text{
    max-width: 60%;
    font-size: 18px;
    padding-right: 10px;
  }
  .about-me-image{ width: 32%; max-width: 300px; }

  .skills-wrapper{ padding: 90px 28px; }
  .section-title{ font-size: 32px; }

  .skills-container{ gap: 28px; }
  .languages-box, .coding-box{ padding: 28px; }
  .bar-container{ width: 65%; }

  .coding-container{
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    max-width: 100%;
    gap: 14px;
  }

  .app-skills-section{ padding: 80px 28px; }
  .app-skills-grid{ grid-template-columns: repeat(2, minmax(240px, 1fr)); gap: 20px; }
}


/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
}
