/* Light mode (default) */
/* body.light-mode {
  background-color: #ffffff;
  color: #000000;
}

body.dark-mode {
  background-color: #121212;
  color: #ffffff;
} */

/* Optional: transition */
body {
  transition: background-color 0.3s, color 0.3s;
}

:root {
    /* Color System - Light Mode */
    --primary-50: #ecfeff;
    --primary-100: #cffafe;
    --primary-200: #a5f3fc;
    --primary-300: #67e8f9;
    --primary-400: #22d3ee;
    --primary-500: #2DD4BF;
    --primary-600: #0891b2;
    --primary-700: #0e7490;
    --primary-800: #155e75;
    --primary-900: #164e63;

    --dark-50: #f9fafb;
    --dark-100: #f3f4f6;
    --dark-200: #e5e7eb;
    --dark-300: #d1d5db;
    --dark-400: #9ca3af;
    --dark-500: #6b7280;
    --dark-600: #4b5563;
    --dark-700: #374151;
    --dark-800: #1f2937;
    --dark-900: #111827;

    --bg-color: #ffffff;
    --text-color: var(--dark-900);
    --text-color-light: var(--dark-600);
    --border-color: var(--dark-200);

    /* Spacing System - Based on 8px */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-12: 3rem;
    /* 48px */
    --space-16: 4rem;
    /* 64px */
    --space-20: 5rem;
    /* 80px */
    --space-24: 6rem;
    /* 96px */

    /* Typography */
    --font-light: 300;
    --font-regular: 500;
    --font-bold: 700;
}

/* Dark Mode Variables */
.dark {
    --bg-color: #030712;
    --text-color: #ffffff;
    --text-color-light: var(--dark-300);
    --border-color: var(--dark-700);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: var(--space-4) 0;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(var(--bg-color-rgb), 0.9);
    backdrop-filter: blur(8px);
    padding: var(--space-2) 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: var(--font-bold);
    color: var(--primary-500);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-menu {
    display: flex;
    gap: var(--space-6);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: var(--font-regular);
    color: var(--text-color-light);
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-500);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-500);
    transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(156, 163, 175, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.theme-toggle:hover {
    background-color: rgba(156, 163, 175, 0.2);
}

.theme-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-500);
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    padding-top: var(--space-24);
    padding-bottom: var(--space-16);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-12);
}

.hero-content {
    flex: 1;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: var(--font-regular);
    color: var(--primary-500);
    margin-bottom: var(--space-2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: var(--font-bold);
    margin-bottom: var(--space-2);
    line-height: 1.1;
}

.a1 {
    font-size: 24px;
    font-family: monospace;
    transition: all 0.3s ease-in-out;
}

.hero-institution {
    font-size: 1.5rem;
    font-weight: var(--font-regular);
    margin-bottom: var(--space-4);
}

.hero-specialization {
    font-size: 1.5rem;
    font-weight: var(--font-regular);
    margin-bottom: var(--space-8);
}

.hero-btns {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.btn {
    padding: var(--space-3) var(--space-6);
    border-radius: 0.375rem;
    font-weight: var(--font-regular);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-500);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-600);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-500);
    border: 1px solid var(--primary-500);
}

.btn-outline:hover {
    background-color: rgba(45, 212, 191, 0.1);
    transform: translateY(-2px);
}

.sl {
    margin-top: 10px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.3s;
    color: #333;
}

.social-link:hover {
    background-color: #f0f0f0;
    transform: scale(1.1);
}

.social-link svg {
    width: 36px;
    height: 36px;
}

.social-links {
    display: flex;
    gap: var(--space-4);
}

.social-link {
    width: 20px;
    height: 20px;
    color: var(--dark-400);
    transition: all 0.2s ease;
}

.social-link:hover {
    color: var(--primary-500);
    transform: scale(1.2) rotate(5deg);
}

.profile-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
}

.profile-blur {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-400), var(--primary-600));
    opacity: 0.7;
    filter: blur(16px);
    animation: pulse 3s infinite alternate;
}

.profile-border {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid var(--primary-500);
    padding: var(--space-1);
    animation: borderPulse 2s infinite alternate;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-16);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
}

.scroll-text {
    font-size: 0.875rem;
    color: var(--dark-400);
    transition: color 0.2s ease;
}

.scroll-arrow {
    color: var(--primary-500);
    animation: bounce 2s infinite;
}

.scroll-indicator:hover .scroll-text {
    color: var(--primary-500);
}

/* About section placeholder */
.about {
    padding: var(--space-20) 0;
}
#id1{
    background-color:#1e2b30;
}
/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .profile-wrapper {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        padding: var(--space-6);
        flex-direction: column;
        align-items: center;
        gap: var(--space-8);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: var(--space-8);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-institution {
        font-size: 1.25rem;
    }

    .social-links {
        justify-content: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .profile-wrapper {
        width: 240px;
        height: 240px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-institution {
        font-size: 1.125rem;
    }

    .hero-specialization {
        font-size: 1rem;
    }

    .profile-wrapper {
        width: 200px;
        height: 200px;
    }

    .btn {
        padding: var(--space-2) var(--space-4);
        font-size: 0.875rem;
    }
}

.about-section {
    background-color: #1e2b30;
    color: #e0f7fa;
    padding: 60px 20px;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1100px;
    margin: auto;
    flex-wrap: wrap;
}

.about-logo img {
    width: 180px;
    opacity: 0.2;
}

.about-content {
    max-width: 600px;
}

.about-content h2 {
    color: #64ffda;
    font-size: 32px;
    margin-bottom: 20px;
}

.about-content .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 16px;
    color: rgb(20, 3, 251); /* Changed from #00e5ff to match other primary */
    border: 2px solid rgb(20, 3, 251); /* Changed from #00e5ff to match other primary */
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.about-content .btn:hover {
    background-color: rgb(20, 3, 251); /* Changed from #00e5ff to match other primary */
    color: #1e2b30;
}

.social-icons {
    margin-top: 20px;
}

.social-icons img {
    width: 32px;
    margin-right: 10px;
    border-radius: 50%;
    background: white;
    padding: 4px;
}

.tab1 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.table1 {
    width: 80%;
    border-collapse: collapse;
    table-layout: fixed;
}

.td1, th {
    width: 50%;
    text-align: center;
    padding: 20px;
    border: 1px solid #ccc;
    vertical-align: middle;
    height: 100px;
}
td:hover{
    background-color: rgb(170, 3, 3);
    color: yellow;
    -ms-zoom-animation: default;
}

td:hover span, th:hover span {
    transform: scale(1.5);
}

.tab1 td > div:hover {
  background-color: rgba(255, 255, 0, 0.05); /* Light yellow */
  color: yellow;
  box-shadow: 0 0 20px rgba(255, 255, 0, 0.4);
  transform: scale(1.01);
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
}
@media (max-width: 768px) {
  .tab1 h1 {
    font-size: 18px;    /* Slightly larger for readability */
    line-height: 1.2;
    text-align: center;
    margin-bottom: 10px;
  }
}

.tab1 button:hover{
  background-color: red;
}
.tab1 td > div {
  transition: all 0.3s ease-in-out;
}
/* .tab1 tr:hover {
  background-color: red;      
  color: yellow;
  transform: scale(1.01);
  box-shadow: 0 4px 15px rgba(255, 255, 0, 0.4); 
  transition: all 0.3s ease-in-out;
  border-radius: 8px;
}


.tab1 td {
  background-color: inherit;
  color: inherit;
  transition: all 0.3s ease-in-out;
} */



.portfolio-heading-wrapper {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.portfolio-heading {
    font-size: 2.8rem;
    color: #00ffff;
    font-weight: bold;
}

.portfolio-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px;
}

.pp {
    text-align: center;
    background-color: #121212;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    max-width: 200px;
    transition: transform 0.3s ease;
}

.pp:hover {
    transform: scale(1.05);
}

.pp img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.visit-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    background-color: #00ffff;
    color: black;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.visit-btn:hover {
    background-color: #00cccc;
}

* {
    box-sizing: border-box;
}
/* Reset defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: sans-serif;
}

/* Full-width grid */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Create two equal columns */
    gap: 20px;
    padding: 40px;
    width: 100%;
}

/* Header spans both columns */
.grid-header {
    grid-column: span 2;
    font-size: 2rem;
    text-align: center;
    padding: 20px;
    background-color: #0077cc;
    color: white;
    border-radius: 8px;
}

/* Full-width row */
.grid-row1 {
    grid-column: span 2;
    background-color: black;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 1.2rem;
    border-radius: 8px;
}

/* Two side-by-side boxes */
.grid-row2 {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
}

.img11{
    height: 24px;
    width: 24px;
}

#contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.contact-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: inherit;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

.img11 {
    width: 24px;
    height: 24px;
}


.certificate-slider {
    width: 900px; /* wider container */
    overflow: hidden;
    margin: 0 auto;
}

.certificate-track {
    display: flex;
    width: calc(450px * 8); /* increased width per slide */
    animation: scrollCertificates 32s linear infinite;
}

.slide {
    width: 450px; /* increased width */
    flex-shrink: 0;
    background-color: #1e1e1e;
    margin: 15px;
    padding: 20px;
    border-radius: 10px;
    color: white;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.slide img {
    width: 100%;
    height: 250px; /* increased height */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.slide button {
    margin-top: 10px;
    background-color: teal;
    padding: 10px 16px;
    border: none;
    border-radius: 5px;
}

.slide button a {
    color: white;
    text-decoration: none;
}

@keyframes scrollCertificates {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1800px); } /* 450px * 4 slide-pairs = 8 total slides */
}

.innnn1{
    width: 30%;
    height:50%;
}
#tab1 {
    opacity: 0;
    transform: translateY(-150px);
    transition: all 0.8s ease-out;
}

#tab1.show {
    opacity: 1;
    transform: translateY(0);
}

#tab1 tr :hover{
    background-color: red;
    color: yellow;
    font-size: large;
}
#tab1 button:hover{
  background-color: #00ffff;
  color: white;
}
.tabz{
  background-color: grey;
}

/* skills */
#skill11 {
    position: relative;
    width: 800px;
    margin: auto;
    height: auto;
    min-height: 90vh;
    border: 2px solid #00bcd4;
    border-radius: 10px;
    overflow: hidden;
    background-color: #1a1a1a;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    padding: 10px;
    gap: 0;
    display: flex;
    align-items: center;
    /* Add this for 3D perspective */
    perspective: 1000px;
}

.box {
    width: 25%;
    height: 100px;
    background: linear-gradient(145deg, #00bcd4, #007c8e);
    color: white;
    font-weight: bold;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.1) inset,    inset 0 0 10px rgba(0, 0, 0, 0.3);
    
    
    animation: fallDown 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards, 
               float3D 6s ease-in-out infinite; 
    
    opacity: 0; 
    margin: 0;
    padding: 0px;
    margin-bottom: 0px;
    
    transform-style: preserve-3d;
    transform: rotateX(5deg) rotateY(-5deg);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.box:hover {
    transform: translateY(-8px) scale(1.05) rotateX(0deg) rotateY(0deg); 
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.6),
        0 0 0 3px rgba(255, 255, 255, 0.2) inset;
}

@media (max-width: 767px) {
    .box {
        width: 48%;

        height: 70px; 
       }
    #skill11 {
        height: auto;  
          min-height: 60vh; 
        width: 95%;    
         padding: 5px; 
        gap: 2%;    }
    .box:hover {
        transform: translateY(-5px) scale(1.02) rotateX(0deg) rotateY(0deg); /* Adjust hover for smaller screens */
    }
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 0.8;
    }
}

@keyframes borderPulse {
    0% {
        border-color: rgba(45, 212, 191, 0.8);
    }

    100% {
        border-color: rgba(45, 212, 191, 0.4);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(-4px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fallDown {
    0% {
        transform: translateY(-200px) rotateX(90deg) scale(0.5);
        opacity: 0;
    }
    60% {
        transform: translateY(10px) rotateX(-10deg) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0) rotateX(5deg) rotateY(-5deg) scale(1); 
                opacity: 1;
    }
}

@keyframes float3D {
    0% { transform: translateY(0px) rotateX(5deg) rotateY(-5deg); } 
    25% { transform: translateY(-3px) rotateX(7deg) rotateY(-8deg); } 
    50% { transform: translateY(0px) rotateX(5deg) rotateY(-5deg); }
    75% { transform: translateY(3px) rotateX(3deg) rotateY(-2deg); }
    100% { transform: translateY(0px) rotateX(5deg) rotateY(-5deg); }
}


#skill11 {
    position: relative;
    width: 800px;
    margin: auto;
    height: auto;
    min-height: 90vh;
    border: 2px solid #00bcd4;
    border-radius: 10px;
    overflow: hidden;
    background-color: #1a1a1a;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    padding: 10px;
    gap: 0;
    display: flex;
    align-items: center;
    perspective: 1200px; 
}

.box {
    width: 25%;
    height: 100px;
    background: linear-gradient(135deg, #00c6ff 0%,#007bff 100%);
    color: white;
    font-weight: bold;
    border-radius: 8px; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    transform-style: preserve-3d;
    transform: rotateX(15deg) rotateY(-15deg);
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
    opacity: 0;
    margin: 0;
    padding: 0px;
    margin-bottom: 0px;
    box-shadow:
        5px 5px 20px rgba(0, 0, 0, 0.6),
        2px 2px 10px rgba(0, 0, 0, 0.4) inset, 
        0 0 0 1px rgba(255, 255, 255, 0.15) inset; 
    animation: fallDown 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards,
               float3D 6s ease-in-out infinite;
}

.box:hover {
    transform: translateZ(10px) rotateX(0deg) rotateY(0deg) scale(1.08);
    box-shadow:
        8px 8px 30px rgba(0, 0, 0, 0.7),
        3px 3px 15px rgba(0, 0, 0, 0.5) inset,
        0 0 0 2px rgba(255, 255, 255, 0.2) inset;
}

@media (max-width: 767px) {
    .box {
        width: 48%;
        height: 80px; 
        border-radius: 6px; 
        box-shadow:
            3px 3px 15px rgba(0, 0, 0, 0.5),
            1px 1px 8px rgba(0, 0, 0, 0.3) inset,
            0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    }
    #skill11 {
        perspective: 800px;
        padding: 5px;
        gap: 3%; 
    }
    .box:hover {
        transform: translateZ(5px) rotateX(0deg) rotateY(0deg) scale(1.05);
        box-shadow:
            5px 5px 20px rgba(0, 0, 0, 0.6),
            2px 2px 10px rgba(0, 0, 0, 0.4) inset,
            0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    }
}

@keyframes fallDown {
    0% {
        transform: translateY(-200px) rotateX(90deg) rotateY(0deg) scale(0.6);
        opacity: 0;
    }
    60% {
        transform: translateY(10px) rotateX(-15deg) rotateY(5deg) scale(1.05);
        opacity: 0.9;
    }
    100% {
        transform: translateY(0) rotateX(15deg) rotateY(-15deg) scale(1);
        opacity: 1;
    }
}

@keyframes float3D {
    0% { transform: translateY(0px) rotateX(15deg) rotateY(-15deg) translateZ(0px); }
    25% { transform: translateY(-5px) rotateX(18deg) rotateY(-18deg) translateZ(-2px); }
    50% { transform: translateY(0px) rotateX(15deg) rotateY(-15deg) translateZ(0px); }
    75% { transform: translateY(5px) rotateX(12deg) rotateY(-12deg) translateZ(2px); }
    100% { transform: translateY(0px) rotateX(15deg) rotateY(-15deg) translateZ(0px); }
}

.box:hover {
    transform: perspective(800px) rotateY(20deg) scale(1.05);
    box-shadow:
        10px 10px 40px rgba(0, 0, 0, 0.8),
        5px 5px 20px rgba(0, 0, 0, 0.6) inset;
    z-index: 10;
}

#skill11 {
    perspective: 800px; 
}



/* projects */
/* Portfolio Container */

  .glow-wrapper {
  border-radius: 1rem;
  padding: 4px; /* thickness of glow border */
  background: linear-gradient(45deg, #00f0ff, #ff00ff, #ffff00, #ff0000);
  background-size: 400% 400%;
  animation: borderGlowRotate 6s linear infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

/* glowing animated gradient */
@keyframes borderGlowRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* actual card inside the glow border */
.pp1 {
  width: 100%;
  background: linear-gradient(180deg, rgb(0,183,255), rgb(255,48,255));
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  color: white;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
body {
      margin: 0;
      background-color: #121212;
      font-family: Arial, sans-serif;
    }

    #projectt {
      color: white;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 2rem;
    }

    .portfolio-heading {
      font-size: 2.5rem;
      margin-bottom: 2rem;
    }

    .a1 {
      color: #00b7ff;
    }

    .portfolio-row {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 2rem;
    }

    .card-and-button-group {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 300px;
    }


    

    .pp1:hover {
      transform: rotateY(10deg) rotateX(10deg) scale(1.02);
      box-shadow: 0 25px 40px rgba(0, 0, 0, 0.4);
    }

    .image-overlay-area img {
      width: 100%;
      border-radius: 0.5rem;
    }

    .subtitle {
      color: black;
      font-weight: bold;
      margin-top: 0.5rem;
    }

    .hide1 {
      opacity: 0;
      max-height: 0;
      overflow: hidden;
      transition: opacity 0.5s ease, max-height 0.5s ease;
      color: white;
      margin-top: 0.5rem;
      text-align: left;
    }

    .pp1:hover .hide1 {
      opacity: 1;
      max-height: 500px;
    }

    .visit-btn {
      margin-top: 0.75rem;
      padding: 0.5rem 1.5rem;
      background-color: white;
      color: black;
      border: none;
      text-decoration: none;
      border-radius: 0.5rem;
      font-weight: bold;
      transition: all 0.3s ease;
    }

    .visit-btn:hover {
      background-color: black;
      color: white;
      transform: scale(1.05);
    }

    @keyframes rotBGimg {
      0% { background-position: 0% 50%; }
      100% { background-position: 100% 50%; }
    }
   
    .pt1 {
  min-height: 280px;
}

.pt2 {
  min-height: 300px;
}

.pt3 {
  min-height: 320px;
}

.pt4 {
  min-height: 360px; /* Increase this as needed */
}


/* #portfolio {
  padding: 4rem 2rem;
  color: white;
}

.portfolio-heading {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 2rem;
  animation: fadeInDown 0.5s ease-in-out;
}

.portfolio-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  perspective: 1000px; 
}

.glow-wrapper {
  position: relative;
  border-radius: 14px;
  padding: 4px; 
  z-index: 0;
}

.glow-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, #01eeff, #d8832df5, #ebfc02, #ff0000);
  background-size: 400% 400%;
  border-radius: 14px;
  z-index: -1;
  animation: borderGlowRotate 6s linear infinite;

  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
  padding: 4px;
}

@keyframes borderGlowRotate {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


.pp1 {
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  background: linear-gradient(135deg, #d9f9de, #0fdc19);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
  animation: float 4s ease-in-out infinite;
}

.pp1:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.pp1:active {
  transform: rotateY(0deg) rotateX(0deg) scale(0.98);
}

.pp1 img {
  width: 100%;
  height: 70%;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  transition: filter 0.3s ease-in-out;
}

.pp1:hover img {
  filter: blur(5px);
}

.pp1 h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pp1 p {
  color: #000; 
  margin-bottom: 1rem;
}

.visit-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #00e1ff;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.visit-btn:hover {
  background-color: #0097a7;
}

.hide1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(42, 42, 41, 0.7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  text-align: left;
  font-size: 0.9em;
  border-radius: 12px;
  z-index: 2;
  white-space: pre-line;
  overflow-y: auto;
}

 .pp1:hover .hide1 {
  opacity: 1;
  visibility: visible;
  font-size: larger;
  color: white; 
} 

@keyframes fallIn {
  0% {
    transform: translateY(-30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .portfolio-row {
    grid-template-columns: 1fr;
  }

  .portfolio-heading {
    font-size: 2rem;
  }

  .pp1 {
    width: 100%;
    margin-left: 0;
  }
}


.portfolio-row {
  perspective: 1000px;
}

.pp1 {
  transform-style: preserve-3d;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.pp1:hover {
  transform: rotateY(10deg) rotateX(10deg) scale(1.02);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.4);
  color: white;
}
.pp1{
  background-image: linear-gradient(180deg,rgb(0,183,255),rgb(255,48,255));
  animation: rotBGimg 3s linear infinite;
}
 */


 








/* certificates */
/* certificates */




#certificates {
  height: auto;
  width: 100%;
  padding: var(--space-12) var(--space-4); /* Using your spacing variables */
  background-color: var(--bg-color); /* Using your background color variable for dark/light mode */
  font-family: 'Inter', sans-serif; /* Consistent with your general body font */
  color: var(--text-color); /* Using your text color variable */
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for dark mode */
}

/* Category styling */
.category {
  margin-bottom: var(--space-16); /* Increased space between categories for clear separation */
  display: block; /* Ensures categories are in separate rows */
  width: 100%; /* Ensures category takes full width for its own row */
}

.category h2 {
  font-size: 2.2rem; /* Larger heading */
  margin-bottom: var(--space-8); /* More space below heading */
  color: var(--primary-500); /* Use your primary accent color for headings */
  text-align: center;
  position: relative;
  padding-bottom: var(--space-3); /* Space for the underline effect */
  font-weight: var(--font-bold);
}

.category h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100px; /* Underline width */
  height: 4px; /* Underline thickness */
  background-color: var(--primary-500); /* Accent color for underline */
  border-radius: 2px;
}

/* Grid for certificates within each category */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Ensures approx 4 cards on larger screens */
  gap: var(--space-6); /* Consistent gap for better spacing */
  justify-content: center; /* Centers cards if they don't fill the row */
  align-items: center; /* Makes cards in the same row have similar height */
}

/* Individual certificate card styling */
.cert-card {
  background-color: rgb(163, 216, 237);
  border: 1px solid var(--border-color); /* Use border color from variables */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: var(--space-4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%; /* Important for equal height in grid rows */
  position: relative; /* For fall animation */
  width: 300px;
  /* Fall Animation Initial State */
  opacity: 0;
  transform: translateY(50px);
  animation: fallIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  /* For staggered animation, you'd add animation-delay here dynamically with JS */
  padding: 20px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Hover effects */
.cert-card:hover {
  transform: translateY(-8px) scale(1.03); /* Lift and slightly enlarge */
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2); /* More prominent shadow on hover */
}

/* Image styling */
.cert-card img {
  width: 1000px;
  height: 80%;
  margin: 0;
  max-height: 180px; /* Slightly increased max-height */
  object-fit: contain; /* Ensures image fits without cropping, maintaining aspect ratio */
  margin-bottom: var(--space-3);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Subtle shadow for image */
}

/* Paragraph text styling */
.cert-card p {
  font-weight: var(--font-regular);
  font-size: 0.95rem;
  color: var(--text-color-light); /* Lighter text for description */
  line-height: 1.4;
  margin-bottom: var(--space-4);
  flex-grow: 1; /* Allows paragraph to take up available space */
  display: -webkit-box; /* For multi-line truncation */
  -webkit-line-clamp: 2; /* Limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis; /* Add ellipsis for truncated text */
}

/* Button styling */
.cert-card button {
  background-color: var(--primary-500); /* Primary blue from variables */
  color: white;
  border: none;
  padding: var(--space-3) var(--space-6);
  border-radius: 25px; /* Pill-shaped button */
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: var(--font-regular);
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
  width: 100%;
  max-width: 180px; /* Limit max width for aesthetic */
}

.cert-card button:hover {
  background-color: var(--primary-600); /* Darker primary on hover */
  transform: translateY(-2px); /* Slight lift on button hover */
  box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3); /* More prominent shadow */
}

.cert-card button a {
  color: inherit;
  text-decoration: none;
  display: block;
}

/* Fall Animation Keyframes */
@keyframes fallIn {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
  .cert-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .category h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  #certificates {
    padding: var(--space-8) var(--space-2);
  }
  .category h2 {
    font-size: 1.8rem;
    margin-bottom: var(--space-6);
  }
  .cert-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-4);
  }
  .cert-card {
    padding: var(--space-3);
  }
  .cert-card p {
    font-size: 0.9rem;
  }
  .cert-card button {
    padding: var(--space-2) var(--space-4);
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .cert-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .category h2 {
    font-size: 1.6rem;
    margin-bottom: var(--space-4);
  }
  .cert-card img {
    max-height: 150px;
  }
}

/* Dark Mode Specific Adjustments */
.dark .cert-card {
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.05); /* Lighter shadow for dark mode cards */
}

.dark .cert-card:hover {
  box-shadow: 0 12px 25px rgba(255, 255, 255, 0.1); /* Lighter hover shadow */
}


/* ========== CATEGORY SECTION STYLING ========== */
.category1 {
  padding: 3rem 2rem;
  /* background-color: #f9fafb;/ */
}

.category1 h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #1f2937;
  font-weight: 600;
}

/* ========== GRID LAYOUT ========== */
.cert-grid1 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  justify-content: center;
}

/* ========== CARD STYLING ========== */
.cert-card1 {
  /* background-color: white; */
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  background-color: yellow;
  text-align: center;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.cert-card1:hover {
  transform: translateY(-5px);
  background-color: rgb(20, 3, 251);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* ========== IMAGE STYLING ========== */
.cert-card1 img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

/* ========== TEXT & BUTTON STYLING ========== */
.cert-card1 p {
  margin: 0.8rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: #111827;
}

.cert-card1 button {
  background-color: wheat;
  color: black;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background-color 0.2s ease-in-out;
}

.cert-card1 button:hover {
  background-color: red;
}

.cert-card1 button a {
  color: black;
  text-decoration: none;
}

/* ========== RESPONSIVE GRID (OPTIONAL) ========== */
@media (max-width: 1200px) {
  .cert-grid1 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .cert-grid1 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .cert-grid1 {
    grid-template-columns: 1fr;
  }
}


.category2 {
  text-align: center;
  margin: 4rem auto;
  padding: 2rem;
   /* optional for visibility */
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.category2 h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.cert-grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-content: center;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
}

.cert-card2 {
  background: white;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  background-color: #ffa896;
}

.cert-card2:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  background-color: #cd1c18;
}

.cert-card2 img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.cert-card2 p {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.cert-card2 button {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #9b1313;
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

.cert-card2 button:hover {
  background-color: #38000A;
}

.cert-card2 a {
  color: white;
  text-decoration: none;
}


.cert-grid8 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.cert-card8 {
  /* background-color: white; */
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.cert-card8 img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.cert-card8 p {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.cert-card8 button {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  /* color: white; */
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

.cert-grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Changed from 3 to 4 */
  gap: 2rem;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.cert-card4 {
  /* background-color: white; */
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.cert-card4 img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.cert-card4 p {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.cert-card4 button {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  /* color: white; */
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

.ck1{
    background-color: rgb(163, 216, 237);
}
.ck1 button{
    background-color:var(--primary-500);;
}
.ck1:hover{
    background-color: rgb(1, 180, 251);
}
.ck1 button:hover{
    color: black;
    background-color:rgb(230, 232, 234);
}
.ck1 p,a{
    color: black;
}

.ck2{
    background-color: #CFFFDC;
}
.ck2 button{
    background-color: #2E6F40;
}
.ck2:hover{
    background-color: #68BA7F;
}
.ck2 button:hover{
    background-color: #253D2C;
}
.ck2 p{
    color: black;
}
.ck3{
    background-color: #fdfbd4;
}
.ck3 button{
    background-color: #bdb96a;
}
.ck3:hover{
    background-color: #c1bfff;
    color: white;
}
.ck3 button:hover{
    background-color: #cf6dfc;
}
.ck3 p{
    color: black;
}

.cert-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.cert-heading h1 {
  margin: 0;
  font-size: 2.5rem;
}

/* Add or modify this rule in your style.css */

/* And ensure the .fall-on-scroll.show applies the animation */
.fall-on-scroll.show {
    animation: fallIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 1;
    transform: translateY(0);
}

/* Individual certificate card styling */
/* Individual certificate card styling */
.cert-card {
  background-color: rgb(163, 216, 237);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: var(--space-4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
  width: 300px;
  /* Fall Animation Initial State - THESE LINES ARE REMOVED FROM HERE! */
  /* padding: 20px; <--- Keep this if it's needed */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
/* 1. Define the base hidden state for ALL animatable elements */
.fall-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  will-change: opacity, transform; /* Good for performance */
}

/* 2. Define the animation trigger when the 'show' class is added by JavaScript */
.fall-on-scroll.show {
  opacity: 1;
  transform: translateY(0);
  animation: fallIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* 3. The Keyframes for the falling effect (keep this as is) */
@keyframes fallIn {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Start hidden */
/*  */



/* education animation */
/* Initial state for elements that should animate on scroll */
/* These elements will be invisible and slightly below their final position */
.fall-on-scroll {
  opacity: 0;
  transform: translateY(50px); /* Starts 50px below its final position */
  transition: opacity 0s, transform 0s; /* Prevents initial flash/transition on page load */
}

/* When the 'show' class is added by JavaScript, trigger the animation */
.fall-on-scroll.show {
  opacity: 1; /* Fully visible */
  transform: translateY(0); /* Moves to its final vertical position */
  /* Apply the animation: name duration timing-function fill-mode */
  animation: fallIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Keyframes for the 'fallIn' animation */
/* Defines the steps of the animation from start (0%) to end (100%) */
@keyframes fallIn {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
 

/* Change .fall-on-scroll to .fall-on-scroll1 */
.fall-on-scroll1 {
  opacity: 0;
  transform: translateY(50px); /* Starts 50px below its final position */
  /* Ensure this line is REMOVED or commented out if it's still present
     from previous iterations and causing issues:
     transition: opacity 0s, transform 0s; */
}

/* When the 'show' class is added by JavaScript, trigger the animation */
/* Change .fall-on-scroll.show to .fall-on-scroll1.show */
.fall-on-scroll1.show {
  opacity: 1; /* Fully visible */
  transform: translateY(0); /* Moves to its final vertical position */
  /* Apply the animation: name duration timing-function fill-mode */
  animation: fallIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Keyframes for the 'fallIn' animation */
/* Defines the steps of the animation from start (0%) to end (100%) */
@keyframes fallIn {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Your existing CSS for other elements like profile-blur, profile-border, hero-container, etc.,
   should also be present in your stylesheet. This is just for the fall-on-scroll1 animation. */


   /* ========================================= */
/* General Responsive Adjustments            */
/* ========================================= */
body {
    overflow-x: hidden; /* Prevent horizontal scroll on smaller screens */
}

.container {
    padding: 0 1rem; /* Adjust container padding for smaller screens */
}

/* ========================================= */
/* Header & Navigation                       */
/* ========================================= */

/* Mobile Navigation (Hamburger Menu) */
@media (max-width: 768px) {
    #header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    nav {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-menu {
        display: none; /* Hide traditional nav menu on mobile */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: var(--primary-900); /* Use a dark background from your variables */
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        text-align: center;
        padding: 1rem 0;
    }

    .nav-menu.active {
        display: flex; /* Show menu when active */
    }

    .nav-menu li {
        margin: 0.5rem 0;
    }

    .nav-menu .nav-link {
        font-size: 1.2rem;
        padding: 0.5rem 0;
        display: block;
        color: white; /* Ensure links are visible */
    }

    .logo {
        font-size: 1.2rem; /* Smaller logo text */
    }

    .logo svg {
        width: 20px;
        height: 20px;
    }

    .menu-toggle {
        display: block; /* Show hamburger icon */
    }

    .right-nav {
        display: flex;
        align-items: center;
    }
}

@media (min-width: 769px) {
    .nav-menu {
        display: flex; /* Always show nav menu on larger screens */
    }
    .menu-toggle {
        display: none; /* Hide hamburger icon on larger screens */
    }
}

/* You'll need to add JavaScript to toggle the 'active' class on .nav-menu when .menu-toggle is clicked.
   Example JS (add to script.js):
   document.getElementById('menu-toggle').addEventListener('click', function() {
       document.getElementById('nav-menu').classList.toggle('active');
   });
   // Close menu when a link is clicked
   document.querySelectorAll('.nav-link').forEach(link => {
       link.addEventListener('click', () => {
           document.getElementById('nav-menu').classList.remove('active');
       });
   });
*/

/* ========================================= */
/* Home/Hero Section                         */
/* ========================================= */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column; /* Stack content and profile vertically */
        text-align: center;
        padding: 2rem 1rem;
    }

    .hero-content {
        margin-bottom: 2rem; /* Space between content and profile */
    }

    .profile-container {
        width: 80%; /* Adjust profile image width */
        max-width: 300px; /* Limit max width */
        margin: 0 auto; /* Center the profile image */
    }

    .hero-title {
        font-size: 2.5rem; /* Smaller title */
    }

    .hero-subtitle, .hero-institution {
        font-size: 1.2rem; /* Smaller subtitles */
    }

    .hero-specialization {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem; /* Even smaller title on phones */
    }
    .hero-subtitle, .hero-institution {
        font-size: 1rem;
    }
    .profile-container {
        width: 100%;
        max-width: 250px;
    }
}


/* ========================================= */
/* About Section                             */
/* ========================================= */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column; /* Stack logo and content */
        text-align: center;
    }

    .about-logo {
        margin-bottom: 2rem; /* Space between logo and text */
    }

    .about-logo img {
        max-width: 150px; /* Adjust logo size */
    }

    .about-content {
        padding: 0 1rem; /* Adjust content padding */
    }
}

@media (max-width: 576px) {
    .about-logo img {
        max-width: 120px;
    }
    .about-content h2 {
        font-size: 1.8rem;
    }
    .about-content p {
        font-size: 0.9em;
    }
}

/* ========================================= */
/* Skills Section                            */
/* ========================================= */
/* Assuming skill11 is a flex/grid container for skills */
@media (max-width: 768px) {
    #skill11 {
        /* If #skill11 is a flex container: */
        flex-direction: column; /* Stack skill items */
        align-items: center;
        /* If #skill11 is a grid container: */
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Auto-fit columns */
        gap: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    #skill11 {
        grid-template-columns: 1fr; /* Single column for skills on very small screens */
    }
}

/* ========================================= */
/* Experience Section                        */
/* ========================================= */
@media (max-width: 992px) {
    .tab1 table {
        width: 95% !important; /* Make tables take more width */
        margin: 0 auto; /* Center tables */
    }

    .tab1 th h1 {
        font-size: 1.8rem; /* Adjust heading size */
    }

    .tab1 td > div {
        flex-direction: column; /* Stack text and image within each table cell */
        text-align: center;
    }

    .tab1 td > div > div {
        min-width: unset !important; /* Remove min-width to allow full flexibility */
        width: 100%;
    }

    .tab1 td > div > div:first-child {
        margin-bottom: 1rem; /* Space between text and image */
    }

    .tab1 img {
        max-width: 250px !important; /* Limit image size */
        height: auto;
    }
}

@media (max-width: 576px) {
    .tab1 th h1 {
        font-size: 1.5rem;
    }
    .tab1 h3 {
        font-size: 1rem;
    }
    .tab1 p {
        font-size: 0.9em;
    }
    .tab1 button {
        font-size: 0.9em !important;
        padding: 8px 15px !important;
    }
    .tab1 img {
        max-width: 200px !important;
    }
}

/* ========================================= */
/* Certificates Section                      */
/* ========================================= */
@media (max-width: 992px) {
    .cert-heading h1 {
        font-size: 2rem;
    }
    .category h2, .category1 h2, .category2 h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    .cert-grid1, .cert-grid2, .cert-grid4, .cert-grid8 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust columns for tablets */
        gap: 1rem;
        padding: 0 1rem;
    }
    .cert-card1, .cert-card2, .cert-card4, .cert-card8 {
        padding: 0.8rem;
    }
    .cert-card1 img, .cert-card2 img, .cert-card4 img, .cert-card8 img {
        max-width: 100%;
        height: auto; /* Ensure images scale correctly */
    }
}

@media (max-width: 576px) {
    .cert-heading h1 {
        font-size: 1.8rem;
    }
    .category h2, .category1 h2, .category2 h2 {
        font-size: 1.3rem;
    }
    .cert-grid1, .cert-grid2, .cert-grid4, .cert-grid8 {
        grid-template-columns: 1fr; /* Single column for phones */
        gap: 1rem;
        padding: 0 0.5rem;
    }
    .cert-card1 p, .cert-card2 p, .cert-card4 p, .cert-card8 p {
        font-size: 0.9em;
    }
    .cert-card1 button, .cert-card2 button, .cert-card4 button, .cert-card8 button {
        padding: 0.4rem 0.8rem;
        font-size: 0.8em;
    }
}


/* ========================================= */
/* Education Section                         */
/* ========================================= */
@media (max-width: 992px) {
    .grid-layout {
        grid-template-columns: 1fr; /* Stack education entries vertically */
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .grid-header h1 {
        font-size: 2rem;
    }

    .grid-row1, .grid-row2 {
        padding: 1.5rem;
        text-align: center;
    }

    .grid-row1 h2, .grid-row2 h2 {
        font-size: 1.8rem;
    }
    .grid-row1 h3, .grid-row2 h3 {
        font-size: 1.1rem;
    }
    .grid-row1 h4, .grid-row2 h4 {
        font-size: 1rem;
    }
    .grid-row1 .btn2, .grid-row2 .btn2 {
        font-size: 0.9em;
        padding: 8px 15px;
    }
}

@media (max-width: 576px) {
    .grid-header h1 {
        font-size: 1.8rem;
    }
    .grid-row1, .grid-row2 {
        padding: 1rem;
    }
    .grid-row1 h2, .grid-row2 h2 {
        font-size: 1.5rem;
    }
    .grid-row1 h3, .grid-row2 h3 {
        font-size: 1rem;
    }
    .grid-row1 h4, .grid-row2 h4 {
        font-size: 0.9em;
    }
    .grid-row1 .btn2, .grid-row2 .btn2 {
        font-size: 0.8em;
        padding: 6px 12px;
    }
}

/* ========================================= */
/* Contact Section (Footer)                  */
/* ========================================= */
@media (max-width: 768px) {
    .contact-row {
        flex-direction: column; /* Stack contact items vertically */
        align-items: center; /* Center items when stacked */
    }

    .contact-item {
        margin-bottom: 1rem; /* Space between stacked items */
        text-align: center;
    }

    .contact-item span, .contact-item a {
        font-size: 0.9em;
    }

    .img11 {
        width: 25px; /* Smaller icons */
        height: 25px;
        margin-right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .contact-item span, .contact-item a {
        font-size: 0.8em;
    }
    .img11 {
        width: 20px;
        height: 20px;
    }
}

/* ===================== RESPONSIVE ADJUSTMENTS ===================== */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .profile-wrapper {
    width: 260px;
    height: 260px;
  }

  .portfolio-row {
    flex-direction: column;
    align-items: center;
  }

  .card-and-button-group {
    width: 80%;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .certificate-slider {
    width: 100%;
  }

  .slide {
    width: 90%;
  }

  table#tab1, table#tab2 {
    width: 100%;
    font-size: 14px;
  }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-institution, .hero-specialization {
    font-size: 1rem;
  }

  .a1 {
    font-size: 18px;
  }

  .profile-wrapper {
    width: 220px;
    height: 220px;
  }

  .nav-menu {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }

  .menu-toggle {
    display: block;
  }

  .about-logo img {
    width: 120px;
  }

  .portfolio-heading {
    font-size: 2rem;
  }

  .card-and-button-group {
    width: 90%;
  }

  .slide img {
    height: 200px;
  }
}

/* Extra Small Mobile (≤ 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .btn, .visit-btn {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }

  .box {
    width: 100%;
  }

  .pp1 {
    padding: 0.75rem;
  }

  .slide {
    padding: 1rem;
    font-size: 14px;
  }

  .slide img {
    height: 180px;
  }
}
@media (max-width: 767px) {
  .box {
    width: 48%;
    height: 80px;
    margin-bottom: 10px;
  }

  #skill11 {
    padding: 5px;
    gap: 2%;
  }
}

@media (max-width: 480px) {
  .box {
    width: 100%;
    height: 70px;
    font-size: 0.9rem;
    margin-bottom: 10px;
  }
}
 #skill11 {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: auto;
  min-height: 60vh;
  border: 2px solid #00bcd4;
  border-radius: 10px;
  background-color: #1a1a1a;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  padding: 10px;
  gap: 2%;
  justify-content: center;
  perspective: 1000px;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .tab1 table {
    width: 95% !important;
    font-size: 14px;
    word-break: break-word;
  }

  .tab1 td, .tab1 th {
    padding: 10px;
    display: block;
    width: 100%;
  }

  .tab1 img {
    width: 100%;
    height: auto;
    margin-top: 10px;
  }
}

#experience td, #experience th {
  background-color: #1a1a1a;
  color: #ffffff;
}
.dark #experience td, 
.dark #experience th {
  background-color: #1a1a1a;
  color: #ffffff;
}
@media (max-width: 768px) {
  #experience table {
    width: 100% !important;
  }

  #experience td, #experience th {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: left;
  }

  #experience img {
    max-width: 100%;
    height: auto;
  }

  #experience button {
    width: 100%;
    font-size: 15px;
  }

  #experience div[style*="display: flex"] {
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px;
  }
}
@media (max-width: 768px) {
  #experience table,
  #experience td,
  #experience th {
    width: 100% !important;
    display: block;
  }

  #experience td {
    padding: 16px !important;
  }

  #experience img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  #experience h3, 
  #experience p,
  #experience button {
    text-align: left;
    font-size: 1rem;
  }

  #experience div[style*="display: flex"] {
    flex-direction: column !important;
    align-items: center !important;
  }
}
#skill11 {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5%;
}

.box {
  width: 23%; /* For 4 boxes per row on large screens */
  min-width: 200px;
  height: 100px;
}
@media (max-width: 767px) {
  .box {
    width: 48%;
    height: 80px;
    font-size: 14px;
  }

  #skill11 {
    width: 95%;
    padding: 5px;
    gap: 3%;
  }
}

@media (max-width: 480px) {
  .box {
    width: 100%;
    margin-bottom: 10px;
  }
}
/* 🔥 Fix: Force InternPe Experience section to show on all screens */
#tab1 {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  width: 100% !important;
}

#tab1 th, 
#tab1 td {
  display: block;
  width: 100%;
  padding: 16px;
  box-sizing: border-box;
  color: white;
  text-align: left;
}

#experience div[style*="display: flex"] {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  gap: 1rem;
}

#experience img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* ✅ Style the InternPe image for all screen sizes */
.internpe-image {
  display: block;
  width: 100%;
  max-width: 400px;  /* fixed size on laptop */
  height: auto;
  margin: 0 auto;    /* center horizontally */
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* 🔁 Optional spacing and responsiveness on smaller screens */
@media (max-width: 768px) {
  .internpe-image {
    max-width: 100%;   /* use full width on small screens */
    margin-top: 1rem;
  }
}
/* ✅ Style InternPe image for all screen sizes */
.internpe-image {
  display: block;
  width: 40%;              /* Controls size */
  height: auto;            /* ✅ Keeps original aspect ratio */
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  object-fit: contain;     /* Optional: makes sure image fits inside box */
  max-height: 1000px;
}


/* 🔁 On mobile, make sure it scales down */
@media (max-width: 768px) {
  .internpe-image {
    max-width: 100%;
    margin-top: 1rem;
  }
}
@media (min-width: 769px) {
  #experience div[style*="display: flex"] {
    justify-content: center;
    gap: 40px;
  }
}



/* ||| */
/* === MOBILE MENU STYLES === */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 10px;
    background-color: #1a1a1a;
    width: 200px;
    border-radius: 10px;
    padding: 10px;
    z-index: 1000;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    margin: 10px 0;
    text-align: right;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
  }
}

/* === DESKTOP MENU === */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }

  .nav-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    gap: 20px;
  }
}
.nav-menu {
  transition: all 0.3s ease-in-out;
}

