


/* ======================================================
   GLOBAL COLOR SYSTEM — APPLIES TO THE ENTIRE WEBSITE
   ====================================================== */

:root[data-theme="light"] {
    --page-bg: #ffffff;
    --surface-bg: #f7f8fa;
    --card-bg: #ffffff;

    --text-primary: #111;
    --text-secondary: #555;

    --border-color: #ddd;

    --accent-blue: #1e90ff;
    --accent-pink: #ff6fb5;
    --accent-purple: #8b5cf6;
    --accent-green: #2ecc71;

    --overlay-filter-bg: rgba(255, 255, 255, 0.22);
    --overlay-filter-effect: brightness(0.88) blur(2px);
}

:root[data-theme="dark"] {
    --page-bg: #010101;
    --surface-bg: #0b0b10;
    --card-bg: #141418;

    --text-primary: #eaeaea;
    --text-secondary: #bbbbbb;

    --border-color: #222;

    --accent-blue: #5390d9;
    --accent-pink: #56cfe1;
    --accent-purple: #72efdd;
    --accent-green: #80ffdb;

    --overlay-filter-bg: rgba(0, 0, 0, 0.45);
    --overlay-filter-effect: brightness(0.6) blur(3px);
}

/* DEFAULT THEME (LIGHT) */
:root {
    --page-bg: #ffffff;
}
html {
    scroll-padding-top: 80px; /* height of your navbar */
}

/* Site background and text */
body {
    background: var(--page-bg);
    color: var(--text-primary);
}

/* Make logo container a flex container for proper alignment */
.logo a {
    display: flex;
    align-items: center; /* vertically centers image and text */
    text-decoration: none;
    color: inherit;
}

/* Circular logo image */
.logo img.logo-img {
    height: 40px;       /* adjust as needed */
    width: 40px;
    margin-right: 10px; /* space between image and name */
    border-radius: 50%;
    object-fit: cover;
}

/* Optional: Adjust font to align better with nav items */
.logo a span {
    display: inline-block;
    line-height: 1; /* ensures text vertically aligns */
    font-weight: bold;
}



.thought-of-day {
    margin-top: 30px;
    
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.3rem;
    font-weight: 300;
    color: #1a73e8; /* soft blue */
    width: 70vw;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 20px;
    border-left: 5px solid #ff9800; /* stylish accent */
    background: rgba(255, 255, 255, 0.05); /* subtle background */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#thought-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    border-right: .15em solid #ff9800;
    animation: typing 4s steps(40, end), blink-caret 0.75s step-end infinite;
}

/* Typing Animation */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Blinking Caret */
@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #ff9800; }
}

/* Optional: fade-in effect after typing */
.thought-of-day p {
    opacity: 0;
    animation: fadeIn 1s 4s forwards; /* delay to appear after typing */
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@media (max-width: 1500px) {
    /* Adjust general container styling for smaller screens */
    .thought-of-day {
        padding: 10px 15px;
        /* Reduce font size for readability on small phones */
        font-size: 1.1rem; 
    }
    
    /* CRITICAL FIX for the typing effect */
    #thought-text {
        /* 1. Allow text to wrap normally */
        white-space: normal; 
        
        /* 2. Remove the cursor border which breaks on wrapping */
        border-right: none; 
        
        /* 3. Disable the typing animation and switch to a simple fade-in */
        width: auto;
        opacity: 0;
        animation-name: fadeIn; 
        animation-duration: 1.5s;
        animation-delay: 0.5s;
        animation-fill-mode: forwards;
        
        /* Remove other typing/blinking animations */
        animation-timing-function: ease-in;
    }

    /* Redefine fadeIn keyframes (if not already defined globally in a non-responsive way) */
    @keyframes fadeIn {
        to { opacity: 1; }
    }
}



/* HERO OVERLAY */
.cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--overlay-filter-bg);
    backdrop-filter: var(--overlay-filter-effect);
    pointer-events: none;
}





:root {
    --neon-blue: #5390d9;
    --neon-pink: #56cfe1;
    --neon-purple: #72efdd;
    --neon-green: #80ffdb;
    --dark-bg: #010101;
    --darker-bg: #0a0a0a;
    --text-color: #eee;
    --nav-height: 80px; /* Define nav height for consistent top padding */
}

/* Global Reset and Typography */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

body { 
    background-color: var(--dark-bg); 
    color: var(--text-color); 
    overflow-x: hidden; /* Prevents horizontal scrolling from wide elements */
    min-height: 100vh;
}

h1, h2, h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Navigation */
nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 1rem 5%; 
    height: var(--nav-height);
    position: fixed; 
    width: 100%; 
    z-index: 100; 
    background-color: rgba(10, 10, 10, 0.8); 
    backdrop-filter: blur(10px);
}
.logo { 
    font-size: 1.8rem; 
    font-weight: 700; 
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink)); 
    -webkit-background-clip: text; 
    background-clip: text; 
    color: transparent; 
    text-shadow: 0 0 10px rgba(0, 136, 255, 0.3);
}
.nav-links { 
    display: flex; 
    gap: 1.5rem; 
}
.nav-links a { 
    color: var(--text-color); 
    text-decoration: none; 
    font-weight: 500; 
    position: relative; 
    transition: all 0.3s ease; 
}
.nav-links a:hover { 
    color: var(--neon-blue); 
}
.nav-links a::after { 
    content: ''; 
    position: absolute; 
    bottom: -3px; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink)); 
    transition: width 0.3s ease; 
}
.nav-links a:hover::after { 
    width: 100%; 
}

/* Hamburger (Mobile Menu) */
.hamburger { 
    display: none; 
    flex-direction: column; 
    cursor: pointer; 
    gap: 5px; 
}
.hamburger div { 
    width: 25px; 
    height: 3px; 
    background: var(--text-color); 
    transition: all 0.3s ease; 
}
.nav-active { 
    display: flex !important; 
    flex-direction: column; 
    position: fixed; 
    top: var(--nav-height); 
    right: 0; 
    width: 200px; 
    background-color: var(--darker-bg); 
    padding: 1rem; 
    gap: 1rem; 
    border-left: 1px solid var(--neon-blue); 
}

/* Hero Section */
.hero { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-around; /* Changed to space-around for better separation on desktop */
    align-items: center; 
    min-height: 100vh; 
    padding: var(--nav-height) 5% 5%; 
    gap: 2rem; 
}
.hero-content { 
    max-width: 600px; 
    text-align: left; /* Aligned left for better flow when side-by-side */
    z-index: 2; 
}
/* IMPROVED: Adjusted min-font-size in clamp for better mobile scaling */
.hero h1 { 
    font-size: clamp(1.6rem, 5vw, 3.5rem); 
    margin-bottom: 1rem; 
    line-height: 1.2; 
    text-align: inherit; /* Inherit text-align from hero-content */
}
.hero h1 span { 
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink), var(--neon-purple)); 
    -webkit-background-clip: text; 
    background-clip: text; 
    color: transparent; 
    animation: gradientShift 5s ease infinite; 
    background-size: 200% 200%; 
}
/* IMPROVED: Adjusted min-font-size in clamp for body text */
.hero p { 
    font-size: clamp(0.9rem, 2.5vw, 1.2rem); 
    margin-bottom: 2rem; 
    line-height: 1.6; 
    color: #ccc; 
    text-align: inherit;
}
.cta-button { 
    display: inline-block; 
    padding: 0.8rem 2rem; 
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink)); 
    color: white; 
    border-radius: 30px; 
    font-weight: 600; 
    text-decoration: none; 
    cursor: pointer; 
    box-shadow: 0 0 15px rgba(0, 136, 255, 0.5); 
    position: relative; 
    overflow: hidden; 
    transition: all 0.3s ease; 
}
.cta-button:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 0 25px rgba(0, 136, 255, 0.8);
}
.cta-button::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: 0.5s; 
}
.cta-button:hover::before { 
    left: 100%; 
}

/* Profile Container */
.profile-container { 
    position: relative; 
    width: 80vw; 
    max-width: 300px; 
    aspect-ratio: 1/1; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    flex-shrink: 0; /* Ensures it doesn't shrink aggressively */
}
.profile-pic { 
    width: 90%; 
    height: 90%; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 5px solid transparent; 
    box-shadow: 0 0 20px var(--neon-blue), 0 0 40px var(--neon-purple), 0 0 60px var(--neon-pink); 
    animation: glow 4s ease-in-out infinite alternate, float 6s ease-in-out infinite; 
    z-index: 1; 
}
.profile-border { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    border-radius: 50%; 
    border: 2px dashed var(--neon-green); 
    animation: spin 20s linear infinite; 
}
.profile-border::before { 
    content: ''; 
    position: absolute; 
    top: -10px; 
    left: -10px; 
    right: -10px; 
    bottom: -10px; 
    border-radius: 50%; 
    border: 2px dashed var(--neon-blue); 
    animation: spin 15s linear infinite reverse; 
}
.tech-icons { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    pointer-events: none; 
}
.tech-icon { 
    font-size: clamp(0.8rem, 4vw, 1.5rem); 
    color: var(--neon-green); 
    position: absolute; 
    filter: drop-shadow(0 0 5px var(--neon-green)); 
}

/* Animations */
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes glow { 0% { box-shadow: 0 0 20px var(--neon-blue), 0 0 40px var(--neon-purple), 0 0 60px var(--neon-pink); } 100% { box-shadow: 0 0 30px var(--neon-pink), 0 0 60px var(--neon-purple), 0 0 90px var(--neon-blue); } }
@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0); } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Sections & Grid Layout */
section { 
    padding: 1rem 5%;
    /* Ensure content inside section doesn't cause overflow */
    width: 100%; 
    overflow: hidden; 
}



/* 🌟 About Section */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.timeline-item {
  background: #f8f8f8;
  padding: 20px;
  border-left: 4px solid #6c63ff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.timeline-item h3 {
  margin: 0;
  color: #333;
}

.timeline-duration {
  font-weight: bold;
  color: #555;
  margin: 5px 0;
}



/* ====== EDUCATION & EXPERIENCE STYLING ====== */

.education, .experience {
  padding: 80px 20px;
  background: #f9fbfd;
  position: relative;
}

.education h2, .experience h2 {
  text-align: center;
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 50px;
  position: relative;
}

.education h2::after, .experience h2::after {
  content: "";
  width: 80px;
  height: 4px;
  background: #3498db;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Timeline container */
.timeline {
  position: relative;
  margin: 0 auto;
  padding-left: 40px;
  max-width: 800px;
}

/* Vertical line */
.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #3498db, #9b59b6);
  border-radius: 2px;
}

/* Timeline item */
.timeline-item {
  position: relative;
  background: #fff;
  margin-bottom: 40px;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Dot marker */
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 25px;
  width: 14px;
  height: 14px;
  background: #3498db;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(52,152,219,0.3);
}

/* Hover lift */
.timeline-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(52,152,219,0.15);
}

/* Headings */
.timeline-item h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #34495e;
}

.timeline-item h4 {
  margin: 4px 0 10px;
  color: #7f8c8d;
  font-weight: 500;
}

/* Duration badge */
.timeline-duration {
  display: inline-block;
  background: #3498db;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* Description text */
.timeline-item p {
  color: #555;
  line-height: 1.6;
}

/* Icons inside timeline (optional aesthetic) */
.timeline-item::after {
  content: attr(data-icon);
  position: absolute;
  left: -48px;
  top: 18px;
  font-size: 1.1rem;
  color: #fff;
  background: #3498db;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(52,152,219,0.3);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

/* Assign icons dynamically */
.education .timeline-item::after { content: "\f19d"; } /* fa-graduation-cap */
.experience .timeline-item::after { content: "\f0b1"; } /* fa-briefcase */

/* Responsive adjustments */
@media (max-width: 768px) {
  .timeline { padding-left: 30px; }
  .timeline::before { left: 10px; }
  .timeline-item::before { left: -26px; }
  .timeline-item::after { left: -38px; }
}



.dropdown .dropbtn{
    position:absolute;
   top: -9px;
    left: 0px;
    text-align: center;
}



/* Responsive */
@media (max-width: 1400px) {
    .dropdown-content div a{
         text-align:left !important;
    }
    .dropdown .dropbtn {
        position:static;
        top:1px;
        padding:0px;
        margin: 0px;
       
    }
}

@media (max-width: 1400px) {
  .dropdown-content {
    display: none; /* hidden initially */
    position: absolute;
    right: 20px;
    background-color: black;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
   
}
}
 
@media (max-width: 1400px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Schedule Call Section */
.schedule-call {
    background-color: #f5f5f5; /* light background */
    padding: 50px 20px;
    text-align: center;
    margin-top: 30px;
    border-radius: 10px;
}

.schedule-call h2 {
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.schedule-call p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #555;
}

.schedule-call .cta-button {
    background-color: #28a745; /* green button */
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.schedule-call .cta-button:hover {
    background-color: #218838;
}


/* 🌟 About Section */
.about {
    padding: 90px 20px;
    background: linear-gradient(135deg, #f7faff, #eef4fb);
    overflow: hidden;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

/* 🌈 Circular Profile Image */
.about-image {
    position: relative;
    flex: 1 1 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circular-border {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 3px solid #3498db;
    animation: rotateBorder 6s linear infinite;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.6);
}

@keyframes rotateBorder {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-img {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    z-index: 1;
}

.about-img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* 🌟 Text Content */
.about-content {
    flex: 1 1 400px;
    color: #2c3e50;
    text-align: left;
}

.about-content h2 {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 10px;
    position: relative;
}

.about-content h2::after {
    content: '';
    width: 80px;
    height: 3px;
    background: #3498db;
    display: block;
    margin-top: 8px;
    border-radius: 2px;
}

.about-intro {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 15px;
    font-style: italic;
}

.about-description {
    font-size: 1.05rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #3498db;
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.about-btn:hover {
    background: #217dbb;
    transform: translateY(-3px);
}

/* 🌍 Responsive */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .circular-border {
        width: 220px;
        height: 220px;
    }

    .about-img {
        width: 200px;
        height: 200px;
    }

    .about-content h2 {
        font-size: 2rem;
    }
}
  

/* Blog Section */
.blog {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.blog h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    justify-items: center;
}

.category-card {
    display: block;
    padding: 20px 15px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}




/* Skills & Projects/Blog Grids */
.skills-grid, .projects-grid, .blog-grid {
    /* Refined grid setup for better mobile flow and responsiveness */
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 1.5rem; 
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.container {
    width: 100%;
    max-width: 700px;
    margin: auto;
}



.skill-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px auto;
}





/* =========================== */
/*      NEW SKILLS DESIGN      */
/* =========================== */




.skills-grid-new {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns by default */
    gap: 20px;
    max-width: 2000px;   /* optional, keeps content centered */
    margin: 0 auto;
}

/* Mobile Devices */
@media (max-width: 768px) {
    .skills-grid-new {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}





.skill-box {
    display: flex;
    align-items: center;       /* vertical alignment */
    justify-content: flex-start; /* icon + text stay left */
    gap: 15px;
    background: #141414;
    padding: 12px 25px;        /* horizontal padding larger than vertical */
    border-radius: 12px;
    color: #fff;
    width: 100%;
    min-height: 60px;          /* optional, keeps boxes uniform */
}
.skill-icon {
    width: 35px;
    height: 35px;
    object-fit: cover; /* ensures circle */
    border-radius: 50%;
    display: block;       /* keep block */
    margin: 0;            /* remove auto margins */
}



.skill-name {
    font-size: 1rem;
    font-weight: 500;
   
    
}


/* Container */
.blog-category-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Page Heading */
.blog-category-page h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #333;
}

/* Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Blog Card Link */
.blog-card-link {
    text-decoration: none;
    color: inherit;
}

/* Blog Card */
.blog-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Blog Image */
.blog-card .blog-img {
    width: 100%;
    height: auto;        /* let height adjust automatically */
    object-fit: contain;   /* scales image to fill width nicely */
    display: block;
    border-bottom: 1px solid #eee;
}

/* Blog Content */
.blog-card h3 {
    font-size: 1.4rem;
    margin: 15px;
    color: #ede1e1;
}

.blog-card .blog-excerpt {
    text-align: center;
    font-size: 0.95rem;
    color: rgb(234, 220, 220);
    margin: 0 15px 15px 15px;
    line-height: 1.4;
}

/* Read More */
.blog-card .read-more {
    margin: 0 15px 15px 15px;
    font-weight: 600;
    color: #007BFF;
    transition: color 0.2s ease;
}

.blog-card .read-more:hover {
    color: #0056b3;
}

/* Back Button */
.back-btn {
    display: inline-block;
    margin-top: 40px;
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;

}

.back-btn:hover {
    background-color: #0056b3;
}



/* Project & Blog Cards */
.project-card, .blog-card {
    background-color: var(--darker-bg); 
    border-radius: 10px; 
    border: 1px solid #333; 
    overflow: hidden; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    display: flex; 
    flex-direction: column;
}
.project-card:hover, .blog-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0, 136, 255, 0.2); 
    border: 1px solid var(--neon-blue);
}
.project-img, .blog-img {
    width: 100%; 
    height: 180px; 
    object-fit: contain;
    display: block;
}
.project-info, .blog-content {
    padding: 1rem 1.5rem; 
    display: flex; 
    flex-direction: column; 
    gap: 0.5rem;
    flex-grow: 1;
}
.project-info h3, .blog-content h3 {
    font-size: 1.2rem; 
    color: var(--neon-blue);
    text-align: left;
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.project-tech {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.project-tech .tech-tag {
    background-color: rgba(0, 136, 255, 0.2); 
    color: var(--neon-blue); 
    padding: 0.3rem 0.8rem; 
    border-radius: 20px; 
    font-size: 0.8rem;
    white-space: nowrap; /* Prevent tag text from wrapping unexpectedly */
}
.blog-meta {
    font-size: 0.8rem; 
    color: #aaa;
}
.blog-excerpt {
    font-size: 0.95rem; 
    color: #ccc; 
    line-height: 1.5;
}
.read-more {
    align-self: flex-start; 
    margin-top: 0.5rem; 
    font-size: 0.9rem; 
    color: var(--neon-pink); 
    text-decoration: none; 
    transition: color 0.3s ease;
}
.read-more:hover {
    color: var(--neon-blue);
}
.no-posts {
    grid-column: 1 / -1; /* Center message across the whole grid */
    text-align: center;
    color: #666;
}


/* Contact Form */
.contact-form {
    max-width: 600px; 
    margin: 0 auto; 
    display: grid; 
    gap: 1.5rem;
}
.form-group input, .form-group textarea {
    width: 100%; /* Ensure full width */
    padding: 0.8rem 1rem; 
    background-color: #222; 
    border: 1px solid #333; 
    border-radius: 5px; 
    color: white;
}
.form-group textarea {
    resize: vertical;
    min-height: 150px;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; 
    border-color: var(--neon-blue); 
    box-shadow: 0 0 10px rgba(0, 136, 255, 0.3);
}
.submit-btn {
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink)); 
    color: white; 
    border: none; 
    padding: 1rem; 
    border-radius: 5px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    box-shadow: 0 0 15px rgba(0, 136, 255, 0.3);
}
.submit-btn:hover {
    transform: translateY(-3px); 
    box-shadow: 0 0 25px rgba(0, 136, 255, 0.5);
}
/* Style the country select dropdown */
#country {
    width: 100%;
    padding: 12px 40px 12px 15px; /* space for custom arrow */
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
    color: #333;
    cursor: pointer;
    appearance: none; /* Remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='none' stroke='%23333' stroke-width='2' d='M2 4l4 4 4-4'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

/* Hover effect */
#country:hover {
    border-color: #4CAF50;
    background-color: #fff;
}

/* Focus effect */
#country:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.5);
}

/* Style the disabled placeholder */
#country option[disabled] {
    color: #999;
}
/* Styling for the label in the dark theme */
.contact-form .form-label {
    display: block; /* Ensures the label takes its own line */
    color: #f0f0f0; /* Light text color for visibility */
    margin-bottom: 5px; /* Space between label and select box */
    font-weight: bold; /* Make the label stand out slightly */
}




.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.service-card {
    background: #1e1e1e; /* dark background for contrast */
    color: #f0f0f0;       /* light text */
    border-radius: 8px;
    padding: 25px 15px;
    width: 280px;
    min-height: 220px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.service-card img.service-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    margin-left:30%;
}

.service-card i.service-icon {
    font-size: 30px;
    color: #4caf50;
    margin-bottom: 15px;
}

.service-card h3 {
    margin: 10px 0 5px;
    font-size: 18px;
    font-weight: bold;
}

.service-card p {
    font-size: 14px;
    color: #14919a; /* ensure visibility */
    line-height: 1.4;
}



.checkout {
    padding: 50px 20px;
    background: #000910;
    text-align: center;
}
.checkout h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}
.checkout p,h2 {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #1ec3ce;
}
.checkout .cta-button {
    display: inline-block;
    padding: 12px 25px;
    background: #4CAF50;
    color: #c5e8eb;
    font-size: 1rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.checkout .cta-button:hover {
    background: #45a049;
}



/* Footer */
footer {
    padding: 2rem; 
    text-align: center; 
    background-color: #0a0a0a;
}
footer .social-links {
    display: flex; 
    justify-content: center; 
    gap: 1.5rem; 
    margin-bottom: 1rem;
}
footer .social-links a {
    color: #ccc; 
    font-size: 1.5rem; 
    transition: all 0.3s ease;
}
footer .social-links a:hover {
    color: var(--neon-blue); 
    transform: translateY(-3px);
}
footer p {
    color: #666; 
    font-size: 0.9rem;
}

/* Cover section base */
.cover {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

/* Filter layer */
.cover::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: 0.3s ease-in-out;
}

/* Light mode overlay */
@media (prefers-color-scheme: light) {
    .cover::after {
        background: rgba(255, 255, 255, 0.25);
        backdrop-filter: brightness(0.85) blur(2px);
    }
}

/* Dark mode overlay */
@media (prefers-color-scheme: dark) {
    .cover::after {
        background: rgba(0, 0, 0, 0.45);
        backdrop-filter: brightness(0.6) blur(3px);
    }
}


/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--darker-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--neon-purple); 
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-pink);
}

/* Responsive Media Queries */

/* Tablet & Smaller Desktop (below 992px) */
@media (max-width: 992px) {
    .hero {
        flex-direction: column; 
        text-align: center; 
        padding-top: calc(var(--nav-height) + 20px); /* Maintain top padding */
    }
    .hero-content {
        order: 2; /* Put content below image on smaller screens */
        text-align: center;
    }
    .profile-container {
        order: 1; /* Put image above content on smaller screens */
        margin-bottom: 2rem;
    }
    .hero h1, .hero p {
        text-align: center;
    }
    
    .about-content {
        flex: auto; /* Allow content to use available space */
        min-width: unset;
        text-align: center;
    }
}

/* Mobile Devices (below 768px) */
@media (max-width: 1400px) {
    .nav-links {
        display: none; /* Hide desktop nav links */
    } 
    .hamburger {
        display: flex; /* Show hamburger menu */
    }
    .logo {
        font-size: 1.6rem;
    }
    
    /* Center all main headings on mobile */
    h2 {
        text-align: center;
    }
}
/* 🌟 Gallery Section */
.gallery {
    padding: 60px 20px;
    background: #fff;
    text-align: center;
}

.gallery h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.gallery-item {
    position: relative;
    flex: 1 1 250px;
    background: #f5f8fc;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

/* Overlay Title on Hover */
.gallery-item h4 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    font-size: 1rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.2s ease;
    text-transform: capitalize;
}

.gallery-item:hover h4 {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback if no gallery */
.no-gallery {
    text-align: center;
    font-style: italic;
    color: #7f8c8d;
    margin-top: 20px;
}


/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

#lightbox-caption {
    margin: auto;
    display: block;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}
/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Button */
.dropbtn {
    padding: 10px 0px;
    cursor: pointer;
    display: inline-block;
    left:80px;
}

/* Dropdown Content */
.dropdown-content {
    display: none; /* hidden initially */
    position: absolute;
    right: -70px;
    background-color: #000000;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content div a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: center;
}

.dropdown-content div a:hover {
    background-color: #f1f1f1;
}



/* Show menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile fix */
.nav-active .dropdown-content {
    position: relative;
    box-shadow: none;
}



/* Small Mobile Devices (below 480px) */
@media (max-width: 1400px) {
    /* Critical fix for extremely narrow screens */
    .hero h1 {
        font-size: 1.4rem; /* Lock down the font size further for tiny screens */
    }
    .hero p {
        font-size: 0.9rem;
    }
    .hero {
        padding-left: 3%;
        padding-right: 3%;
    }
    
    .profile-container {
        max-width: 220px; /* Make the image smaller on very small screens */
    }
}