/* Root Theme */
:root {
 --accent-color: #13a0a0; /* Deeper Teal */
 --primary-color: #1A324E; /* Dark Blue-Gray, for bold text */
 --text-color: #4A4A4A; /* Medium Gray for body text */
 --light-bg-color: #FFFFFF; /* Pure White for primary backgrounds */
 --secondary-bg-color: #F8FBFD; /* Very subtle light blue-gray for alternating sections */
 --card-radius: 12px;
 --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
 --header-height: 70px; /* Define header height for fixed positioning */
}

/* Local Font Imports (YOU MUST HAVE THESE FILES IN YOUR /fonts FOLDER) */
@font-face {
  font-family: 'Inter';
  src: url('./fonts/Inter-Regular.woff2') format('woff2'); /* Adjust filename if different */
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('./fonts/Inter-Medium.woff2') format('woff2'); /* Adjust filename if different */
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('./fonts/Inter-SemiBold.woff2') format('woff2'); /* Adjust filename if different */
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('./fonts/Inter-Bold.woff2') format('woff2'); /* Adjust filename if different */
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('./fonts/Inter-ExtraBold.woff2') format('woff2'); /* Adjust filename if different */
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('./fonts/PlayfairDisplay-Bold.woff2') format('woff2'); /* Adjust filename if different */
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('./fonts/PlayfairDisplay-Black.woff2') format('woff2'); /* Adjust filename if different */
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}


/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light-bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
}
.section {

 padding: 70px 0; /* More vertical padding */

 text-align: center;

 position: relative;

 overflow: hidden; /* Ensures content doesn't bleed during animations */

}



.section.alt-background {
background: linear-gradient(to right, #315b6d, #3fb1ab, #335375);

}



/* Section Titles */

.section-title {

 font-size: 3.2rem; /* Even larger heading */

 margin-bottom: 20px;

 font-weight: 700; /* Even bolder for Playfair Display */

 color: var(--primary-color);

 position: relative;

 display: inline-block; /* Allows underline effect */

}



.section-title::after {

 content: '';

 position: absolute;

 width: 80px; /* Short underline */

 height: 4px;

 background-color: var(--accent-color);

 bottom: -10px;

 left: 50%;

 transform: translateX(-50%);

 border-radius: 2px;

}
.publication-section-title::after {

 content: '';

 position: absolute;

 width: 80px; /* Short underline */

 height: 4px;

 background-color: var(--accent-color);

 bottom: -10px;

 left: 50%;

 transform: translateX(-50%);

 border-radius: 2px;

}
.section-header::after {

 content: '';

 position: absolute;

 width: 80px; /* Short underline */

 height: 4px;

 background-color: var(--accent-color);

 bottom: -10px;

 left: 50%;

 transform: translateX(-50%);

 border-radius: 2px;

}



.section-description {

 max-width: 800px;

 margin: 0 auto 50px auto;

 font-size: 1.15em;

 line-height: 1.8;

 color: var(--text-color);

 font-weight: 400;

}



/* Header Navigation */

.header {

background-color: white;

position: fixed; /* Changed to fixed for full-screen hero */

top: 0;

width: 100%;

z-index: 1000;

box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);

 height: var(--header-height);

 display: flex;

 align-items: center;

}





.nav {

display: flex;

justify-content: space-between;

align-items: center;

padding: 0 2rem; /* Adjusted padding as header has height */

 width: 100%; /* Make nav take full width of container */

}



.logo {

font-size: 1.8rem;

font-weight: 900;

color: var(--primary-color);

 letter-spacing: -0.5px;

}



.nav-links {

display: flex;

gap: 2rem; /* More space */

list-style: none;

}



.nav-links a {

text-decoration: none;

color: var(--primary-color);

font-weight: 600;

position: relative;

transition: color 0.3s ease-in-out;

 padding: 5px 0; /* Add padding for a clickable area */

}



.nav-links a::after {

 content: '';

 position: absolute;

 width: 0;

 height: 2.5px; /* Slightly thicker underline */

 bottom: -7px; /* Lower underline */

 left: 50%;

 transform: translateX(-50%);

 background-color: var(--accent-color);

 transition: width 0.3s ease-in-out;

}



.nav-links a:hover::after,

.nav-links a.active::after {

 width: 100%;

}



.nav-links a:hover {

color: var(--accent-color);

}
/* Scrolled header styles */
.header.scrolled {
  background-color: #e3e3e9b9; /* Darker background */
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  height: 80px;
  /* opacity:0.7; */
  
  transition: background-color 0.3s ease, color 0.3s ease, height 0.3s ease;
}

.header.scrolled .logo,
.header.scrolled .nav-links a {
  /* color: white; */
  opacity:1;
}




.burger {

display: none;

font-size: 1.8rem;

color: var(--primary-color);

cursor: pointer;

}
/* Add this to your existing CSS */
.social-icons {
    display: flex;
    list-style: none; /* Removes bullet points */
    padding: 0; /* Removes default padding */
    margin: 0; /* Removes default margin */
    gap: 1.3rem; /* Adjust space between icons */
    align-items: center; /* Vertically align icons */
}

.social-icons li a {
    color: var(--primary-color); /* Inherit color from your theme */
    font-size: 1.8rem; /* Adjust icon size as needed */
    transition: color 0.3s ease-in-out;
}

.social-icons li a:hover {
    color: var(--accent-color); /* Change color on hover */
}



/* --- HERO SECTION STYLING (The main event!) --- */

.hero {
  background-color: var(--light-bg-color);
  min-height: 100vh; /* Full height for an immersive feel */
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden; /* Important for the clip-path effect */
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
  gap: 2rem;
  width: 100%;
}

.hero-content {
  flex: 1; /* Allows content to take available space */
  max-width: 550px;
  text-align: left; /* Align text to the left */
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.2rem; /* Larger and more impactful */
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 2rem; /* Subtitle styling */
  color: var(--accent-color);
  font-family: 'Inter', sans-serif;
  /* font-weight: 500; */
  margin-bottom: 1rem;
}
.para{
  margin-top:0.8rem;
  text-align:justify;
  
}

/* --- HERO IMAGE STYLING (The "beautiful border" effect) --- */

.hero-image-wrapper {
  flex-shrink: 0; /* Prevents the image from shrinking */
  position: relative;
  width: 450px; /* Control the size of the image container */
  height: 600px;
  /* The "beautiful border" is created using a clip-path for a modern look */
  clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
  transition: transform 0.4s ease;
}

.hero-image-wrapper:hover {
    transform: scale(1.03); /* Subtle hover effect */
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image covers the area without distortion */
  object-position: top; /* Centers the image within its frame */
  filter: opacity(0.9);
  filter:brightness(0.9);
}

/* --- BUTTONS & ANIMATIONS (From your original CSS, slightly refined) --- */

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px; /* Pill-shaped buttons */
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn.primary {
  background-color: var(--accent-color);
  color: white;
}

.btn.primary:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.btn.secondary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn.secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* Animations */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in.delay-1 { transition-delay: 0.2s; }
.animate-in.delay-2 { transition-delay: 0.4s; }

/* A simple way to trigger animation on load with JS, or use an Intersection Observer */
/* For this example, we assume a class is added when the element is in view */
.in-view {
  opacity: 1;
  transform: translateY(0);
}


/* Scroll Animation for Sections */
.scroll-animate > * { /* Target direct children for initial state */
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  /* transition-delay set by JS */
}

.scroll-animate.in-view > * { /* When parent is in view, children transition */
  opacity: 1;
  transform: translateY(0);
}

/* General Section Styling for Publications */
.publication-section {
  padding: 80px 0;
}

.publication-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.publication-section-title {
  text-align: center;
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 60px;
  color: var(--primary-color);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Grid for Publications */
.publication-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(370px, 1fr));
  
  gap: 40px;
}
.publication-gridd {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

  gap: 40px;
}

/* Publication Card Styling */
.publication-card {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease-in-out;
}

.publication-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

/* Publication Card Image */
.publication-card-image-container {
  height: 270px;
  overflow: hidden;
}

.publication-card-image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.4s ease-out;
}

.publication-card:hover .publication-card-image-container img {
  transform: scale(1.05);
}

/* Publication Card Content */
.publication-card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.publication-card-content h3 {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #34495e;
}

.publication-card-content .publication-journal {
  font-size: 0.9em;
  font-style: italic;
  color: #7f8c8d;
  margin-bottom: 20px;
}

.publication-card-content p {
  font-size: 1em;
  line-height: 1.6;
  color: #555;
  flex-grow: 1;
  margin-bottom: 30px;
}

/* Read More Button for Publications */
.publication-read-more-btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
  opacity: 0;
  transform: translateY(10px);
}

.publication-card:hover .publication-read-more-btn {
  opacity: 1;
  transform: translateY(0);
}

.publication-read-more-btn:hover {
  background-color: #006666;
  transform: scale(1.05);
}


.publication-card:hover .publication-read-more-btn {
  opacity: 1;
  transform: translateY(0);
}

.publication-read-more-btn:hover {
  background-color: #006666;
  transform: scale(1.05);
}

/* Scroll Animations (No class changes needed here) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}



/* New styles for other vision cards */
.vision-list li {
 /* Apply common card-like styling to all list items in the vision-list */
 /* background-color: white; Default background if no image is set */
 padding: 35px;
 border-radius: var(--card-radius);
 box-shadow:0 18px 45px rgba(161, 160, 160, 0.692);
 text-align: left;
 display: flex;
 flex-direction: column;
 justify-content: space-between;
 transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
 border: 1px solid rgba(0, 0, 0, 0.05);
 /* Ensure text color is set for contrast on potential background images */
 color: var(--text-color, black); /* Fallback to black if var not defined */
}

.vision-list li:hover {
 transform: translateY(-12px);
 box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
}

.vision-list li i {
 font-size: 3em; /* Make icons larger */
 margin-bottom: 15px; /* Space below icon */
 color: var(--accent-color); /* Default icon color */
}


 .gallery-section {
            max-width: 1200px;
            width: 100%;
            margin: 0 auto;
            padding: 40px 0;
        }

        .section-header {
            text-align: center;
            margin-bottom: 50px;
            position: relative;
        }

        .section-header h2 {
            font-size: 3.2rem;
            color:var(--primary-color);
            margin-bottom: 15px;
            font-weight: 700;
            letter-spacing: 1px;
        }

        /* .section-header .divider {
            height: 4px;
            width: 80px;
            background: linear-gradient(to right, #3498db, #8e44ad);
            margin: 0 auto 20px;
            border-radius: 2px;
        } */

        .section-header p {
            color: #7f8c8d;
            font-size: 1.2rem;
            max-width: 700px;
            margin: 0 auto;
            line-height: 1.6;
        }

        .gallery-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 30px;
            padding: 20px;
            justify-content:  center;
            /* align-items: center; */
        }

        .gallery-item {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: all 0.4s ease;
            position: relative;
        }

        .gallery-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        }

        .image-container {
            position: relative;
            height: 250px;
            overflow: hidden;
        }

        .gallery-image {
            width: 100%;
            height: 100%;
            object-fit:contain;
            transition: transform 0.5s ease;
        }

        .gallery-item:hover .gallery-image {
            transform: scale(1.05);
        }

        .category-label {
            position: absolute;
            top: 15px;
            right: 15px;
            background: linear-gradient(45deg, #27b6c0, #0c4c5c);
            opacity:0.7;
            color: white;
            padding: 6px 15px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            z-index: 2;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        }

        .description-container {
            padding: 25px;
            position: relative;
        }

        .gallery-title {
            font-size: 1.4rem;
            color: #2c3e50;
            margin-bottom: 12px;
            font-weight: 700;
        }

        .gallery-description {
            color: #7f8c8d;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .gallery-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 15px;
            border-top: 1px solid #eee;
        }

        .date {
            color: #95a5a6;
            font-size: 0.9rem;
        }

        .view-btn {
            background: linear-gradient(45deg, #3498db, #8e44ad);
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 30px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .view-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
        }

        .gallery-footer {
            text-align: center;
            margin-top: 60px;
        }

        .view-all-btn {
            background: linear-gradient(45deg, #3498db, #8e44ad);
            color: white;
            border: none;
            padding: 14px 40px;
            border-radius: 30px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
        }

        .view-all-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
        }

        @media (max-width: 768px) {
            .gallery-container {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
                gap: 20px;
            }
            
            .section-header h2 {
                font-size: 2.2rem;
            }
            
            .image-container {
                height: 220px;
            }
        }

        @media (max-width: 480px) {
            .gallery-container {
                grid-template-columns: 1fr;
            }
            
            .section-header h2 {
                font-size: 1.8rem;
            }
            
            .section-header p {
                font-size: 1rem;
            }
        }



/* Vision cards base styles */
.vision1, .vision2, .vision3, .vision4, .vision5 {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Pseudo‑element for 50% opaque background images */
.vision1::before,
.vision2::before,
.vision3::before,
.vision4::before,
.vision5::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.9; /* 50% opacity */
  filter:brightness(0.6);
  z-index: 1;
}

/* Specific background images */
.vision1::before { background-image: url("../content/lab/technology.jpg"); }
.vision2::before { background-image: url("../content/lab/newton-dis.jpg"); }
.vision3::before { background-image: url("../content/lab/cell design.jpg"); }
.vision4::before { background-image: url("../content/bilal/fascinated_from_eintein.jpg"); }
.vision5::before { background-image: url("../content/lab/machining.jpg"); }

/* Ensure content (text & icon) stays fully opaque and on top */
.vision1 > *, .vision2 > *, .vision3 > *, .vision4 > *, .vision5 > * {
  position: relative;
  z-index: 2;
  opacity: 1;
  color: #fff;
}

/* Icon positioning in top-left corner */
.visions i {
  position: absolute;
  top: 0rem;
  left: 0rem;
  font-size: 2.5rem;
  color: var(--accent-color);
  z-index: 2;
}

/* Text styling (example) */
.card-effect .card-text-content {
  position: relative;
  z-index: 2;
  padding: 0.5rem 1rem;
  font-size: 1.7rem;
  text-align: center;
  font-weight: 600;
  color:white;
    text-shadow: 2px -1px 4px rgba(0, 0, 0, 1);

  text-shadow: 2px 1px 4px rgba(0, 0, 0, 1);
  opacity: 1;
}



.card {
  background-color: white;
  padding: 35px; /* More padding */
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  border: 1px solid rgba(0,0,0,0.05); /* Subtle border */
}

.card:hover {
  transform: translateY(-12px); /* More pronounced lift */
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

.card h3 {
  font-size: 1.6em;
  margin-bottom: 12px;
  font-weight: 700;
}

.card .journal {
  font-size: 0.95em;
  color: #777;
  margin-bottom: 18px;
  font-weight: 500;
}

.card p {
  font-size: 1.05em;
  margin-bottom: 25px;
  color: var(--text-color);
  flex-grow: 1; /* Allows text to take up available space */
}

.read-more-link {
  display: inline-flex; /* Use flex for icon alignment */
  align-items: center;
  gap: 8px;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease-in-out;
}

.read-more-link i {
  transition: transform 0.3s ease-in-out;
}

.read-more-link:hover {
  color: #006666;
}

.read-more-link:hover i {
  transform: translateX(5px);
}


/* Card Effect for Vision/Mentorship Lists */
.card-effect {
 background-color: var(--card-color, #ffffff);
 padding: 35px;
 border-radius: var(--card-radius);
 box-shadow: var(--card-shadow);
 position: relative;
 display: flex;
 gap: 25px; /* More space */
 align-items: flex-start;
 margin-bottom: 20px;
  border: 1px solid rgba(0,0,0,0.05); /* Subtle border */

  /* Pure CSS Hover for tilt and lift */
  transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
  transform-style: preserve-3d; /* Enable 3D transform for perspective */
}
.card-effect:hover {
  /* Use CSS custom property for direction */
  transform: translateY(-10px) rotateY(var(--tilt-angle, 0deg));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}
/* Define the tilt angles based on direction */
.card-effect[style*="--tilt-direction: right"]:hover {
  --tilt-angle: 6deg;
}
.card-effect[style*="--tilt-direction: left"]:hover {
  --tilt-angle: -6deg;
}


.card-icon-wrapper {
  flex-shrink: 0;
  background-color: rgba(0, 128, 128, 0.08);
  border-radius: 50%;
  padding: 22px; /* More padding */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 12px rgba(0, 128, 128, 0.12); /* Stronger shadow for icon circle */
}

.card-icon-wrapper i { /* Target the icon inside the wrapper */
  font-size: 3em; /* Larger icons */
  color: var(--accent-color);
}

.card-text-content {
 font-size: 1.2em; /* Larger text in content */
 line-height: 1.6;
  text-align: left;
  color: var(--text-color);
  font-weight: 500;
}


/* Back to Top Button */
.back-to-top {
 position: fixed;
 right: 30px;
 bottom: 30px;
 background-color: var(--accent-color);
 color: white;
 border: none;
 border-radius: 50%;
 width: 55px; /* Slightly larger */
 height: 55px;
 display: none; /* Hidden by default, toggled by JS */
 align-items: center;
 justify-content: center;
 font-size: 1.6em; /* Larger icon */
 box-shadow: 0 8px 20px rgba(0, 128, 128, 0.25); /* Stronger shadow */
 z-index: 999;
 cursor: pointer;
  /* CSS transition for show/hide animation */
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.back-to-top.visible {
  display: flex; /* Show the button */
  opacity: 1;
  transform: scale(1);
}
.back-to-top:hover {
 transform: translateY(-7px) scale(1.05); /* More pronounced lift and scale */
 background-color: #006666; /* Darker accent on hover */
}


/* Buttons */
.btn {
 padding: 16px 40px;
 background-color: var(--accent-color);
 color: white;
 font-weight: 700;
 border: none;
 border-radius: 8px; /* Slightly sharper button corners */
 cursor: pointer;
 text-decoration: none;
 transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  box-shadow: 0 5px 15px rgba(0, 128, 128, 0.25);
  font-size: 1.05em;
  letter-spacing: 0.5px;
}
.btn.secondary {
  background-color: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  box-shadow: none;
}
.btn.secondary:hover {
  background-color: rgba(0, 128, 128, 0.08);
  color: var(--accent-color);
}
.btn:hover {
 background-color: #006666;
 transform: translateY(-7px);
  box-shadow: 0 12px 25px rgba(0, 128, 128, 0.35);
}
.vision-list,
.publications {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Slightly wider min width for cards */

  gap: 35px; /* More space between grid items */

  list-style: none;

  padding: 0;

} 

/* Grid Containers */
/* .section {
  padding: 60px 0;
}
.alt-background {
  background: #f5f7fa;
}
.section-title {
  text-align: center;
  font-size: 2.4em;
  margin-bottom: 40px;
  color: #333;
} */

/* --- Section Styling (No change from before) --- */
/* .section {
  padding: 80px 0;
}

.alt-background {
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2.8em;
  color: #333;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #007bff;
  margin: 15px auto 0;
  border-radius: 2px;
} */

/* --- Card Grid Container (NO GRID DISPLAY - Maintained) --- */
   .dummy-section {
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
            background: rgba(0,0,0,0.1);
            border-radius: 10px;
            margin: 20px 0;
            padding: 30px;
        }
        
        .dummy-section h1 {
            font-size: 2.5rem;
            color: #fff;
            text-shadow: 0 2px 5px rgba(0,0,0,0.3);
        }
        
        .intro-section {
            margin-top: 50px;
            background: rgba(255,255,255,0.1);
        }
        
        .outro-section {
            margin-bottom: 50px;
            background: rgba(255,255,255,0.1);
        }
        
        /* Card Grid */
        .card-grid {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 500px;
            position: relative;
            overflow: visible;
            padding: 40px 0;
            perspective: 1200px;
        }
        
        /* Impact Card */
        .impact-card {
            background: linear-gradient(145deg, #ffffff, #f0f0f0);
            width: 90%;
            max-width: 800px;
            display: flex;
            flex-direction: row-reverse;
            justify-content: space-between;
            align-items: stretch;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
            border: 1px solid rgba(220, 220, 220, 0.7);
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s ease-out, transform 0.4s ease-out;
            will-change: opacity, transform;
            z-index: 1;
        }
        
        .impact-card.active {
            opacity: 1;
            transform: translate(-50%, -50%);
            pointer-events: auto;
            z-index: 10;
        }
        
        .impact-card.prev {
            opacity: 0.3;
            transform: translate(-50%, -50%) scale(0.9) translateY(100px);
            z-index: 2;
        }
        
        .impact-card.next {
            opacity: 0.3;
            transform: translate(-50%, -50%) scale(0.9) translateY(-100px);
            z-index: 2;
        }
        
        /* Card Image */
        .card-image {
            flex-shrink: 0;
            width: 45%;
            height: auto;
            min-height: 300px;
            max-height: 400px;
            overflow: hidden;
            position: relative;
        }
        
        .card-image::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
            z-index: 1;
            opacity: 0.7;
        }
        
        .card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.6s ease-in-out;
        }
        
        /* Hover Effects */
        .impact-card:hover .card-image img {
            transform: scale(1.08);
        }
        
        .impact-card:hover .card-content i {
            transform: translateY(-8px);
        }
        
        /* Card Content */
        .card-content {
            padding: 40px;
            text-align: left;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        
        .card-content i {
            color: #4facfe;
            margin-bottom: 25px;
            display: inline-block;
            font-size: 2.8rem;
            transition: transform 0.3s ease-out;
        }
        
        .card-content h3 {
            margin: 0 0 20px;
            font-size: 2rem;
            color: #222;
            line-height: 1.3;
        }
        
        .card-content p {
            color: #555;
            line-height: 1.7;
            font-size: 1.2rem;
        }
        
        .card-content strong {
            color: #4facfe;
            font-weight: 700;
        }
        
        /* Scroll Indicators */
        .scroll-indicator {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            z-index: 100;
            color: white;
            font-weight: 500;
            text-shadow: 0 1px 3px rgba(0,0,0,0.5);
        }
        
        .scroll-indicator i {
            font-size: 2rem;
            animation: bounce 2s infinite;
            margin-bottom: 10px;
        }
        
        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
            40% {transform: translateY(-20px);}
            60% {transform: translateY(-10px);}
        }
        
        /* Responsive Design */
        @media (max-width: 992px) {
            .impact-card {
                flex-direction: column;
                width: 95%;
                max-width: 600px;
                margin-top:100px;
                margin-bottom:50px;
            }
            .c{
              padding-bottom:100px;
            }
            
            .card-image {
                width: 120%;
                min-height: 190px;
                max-height: 300px;
            }
            
            .card-content {
                padding: 30px;
                text-align: center;
            }
            
            .card-content i {
                margin-bottom: 20px;
            }
            
            .section-title {
                font-size: 2.4rem;
                margin-bottom: 50px;
            }
            
            .card-grid {
                min-height: 450px;
            }
        }
        
        @media (max-width: 768px) {
          .c{
            justify-content: center;
            align-items: center;
          }
          
          .hero-content{
            justify-items: center;
          } 
          .ran{
            padding-bottom: 8px;

          }
          .hero-image-wrapper{
            margin-bottom: 0px;
            padding-bottom: 0px;
          }
          .hero-content{
            padding-top: 0px;
            margin-top: -15px;
          }

          .hero-buttons{
          
            width:80%;
          } 
          .para{
            padding-left:20px;
            padding-right:20px;
            text-align: center;
            margin-top: 15px;
          }        
            .section-title {
                font-size: 2rem;
            }
            
            .dummy-section h1 {
                font-size: 1.8rem;
            }
            
            .card-content h3 {
                font-size: 1.7rem;
            }
            
            .card-content p {
                font-size: 1.1rem;
            }
        }
        
        @media (max-width: 576px) {
          .c{
            justify-content: center;
            align-items: center;
          }
            .impact-card {
                border-radius: 15px;
            }
            .hero-buttons{
          
            width:92%;
          } 
            
            .card-content {
                padding: 25px;
            }
            
            .card-content h3 {
                font-size: 1.5rem;
            }
            
            .section {
                padding: 70px 0;
            }
            
            .section-title {
                font-size: 1.8rem;
                margin-bottom: 40px;
            }
            
            .section-title::after {
                width: 60px;
            }
            
            .card-grid {
                min-height: 400px;
            }
        }


/* Contact Form Section CSS */
#contact {
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-info {
  padding-right: 20px;
}

.contact-text {
  margin-bottom: 40px;
  line-height: 1.8;
  font-size: 1.1rem;
  color: white;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: flex-start;
  text-align: left;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 15px;
  border-radius: 12px;
  transition: background 0.3s ease;
}

.contact-method:hover {
  background: rgba(100, 255, 218, 0.05);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: rgba(100, 255, 218, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--secondary-bg-color);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.contact-method:hover .contact-icon {
  color: #ffffff;
  transform: scale(1.1);
}

.contact-details h4 {
  margin-bottom: 8px;
  color: var(--light-bg-color);
  font-size: 1.2rem;
}

.contact-details p,
.contact-details a {
  color: var(--light-bg-color);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: white;
}

.contact-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.contact-form {
  background-color: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 40px;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 18px;
  margin-bottom: 28px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1.1rem;
  font-family: 'Inter', sans-serif;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 5px rgba(0, 128, 128, 0.15);
}

.contact-form button[type="submit"] {
  padding: 18px 50px;
  display: block;
  margin: 0 auto;
  cursor: pointer;
}
/* Footer */
.footer {
 padding: 50px 0; /* More padding */
 background-color: #f0f3f6; /* A slightly cooler light gray */
 text-align: center;
 font-size: 1em;
 color: var(--text-color);
  box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.05);
}
.footer .social {
  margin-top: 25px;
}
.footer .social a {
 font-size: 1.8em; /* Even larger social icons */
 margin: 0 15px; /* More space between social icons */
 color: var(--primary-color);
 transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}
.footer .social a:hover {
 transform: translateY(-7px) scale(1.1);
 color: var(--accent-color);
}

/* Responsive Adjustments */
@media (max-width: 1005px) {
  
  .hero-content h1 {
    font-size: 3.5rem;
  }
  .hero-content p {
    font-size: 1.4rem;
  }
  .section-title {
    font-size: 2.8em;
  }
  .hero-buttons {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
   .nav-links{
    font-size:1rem;
    gap:0.5rem;
  }
}
@media (max-width:860px){
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .hero-content p {
    font-size: 1.2rem;
  }
  .section-title {
    font-size: 1.8em;
  }
  .hero-buttons {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .nav-links{
    font-size:0.8rem;
    gap:0.5rem;
  }

}

@media (max-width: 768px) {
    .header{
        /*width:auto;*/
        /*display:flex;*/
        /*justify-content:space-between;*/
    }
  .social{
    display:none;
  }
  .hero-container {
    flex-direction: column; /* Stack content vertically */
    align-items: center;    /* Center content horizontally */
    text-align: center;     /* Center text within hero-content */
    justify-content: center; /* Center content vertically */
  }

  .hero-content {
    /* Reset max-width to allow content to flow naturally */
    max-width: 100%; 
    /* text-align: center; */
    order: 2; /* Display the text content below the image */
  }

  .hero-image-wrapper {
    width: 70%; /* Make the wrapper responsive */
    min-width:450px;
    max-height: 400px;
    height: 300px; /* Adjust height automatically */
    clip-path: none; /* Remove the desktop clip-path */
    order: 1; /* Display the image above the text content */
    margin-bottom: 1rem; /* Add space between the image and text */
  }

  .hero-image {
    width: 70%; /* Make the image fill its wrapper */
    height: 300px; /* Let the height be determined by the image's aspect ratio */
    border-radius: 20px; /* A slightly smaller radius for a smaller image */
    filter:opacity(0.9);
    object-fit: cover; /* Ensure the image covers the area without distortion */
    object-position: top; /* Centers the image within its frame */
  }
  .nav-links {
    flex-direction: column;
    background: white;
    position: fixed; /* Fixed to cover full screen */
    top: var(--header-height);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-height)); /* Take remaining height */
    display: none; /* Hidden by default */
    opacity: 0;
    transform: translateY(-20px); /* Start slightly off-screen */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out; /* Transition for mobile menu */
  }
  .nav-links.active {
    display: flex; /* Show the menu */
    opacity: 1;
    transform: translateY(0);
  }
  .nav-links li {
    margin-bottom: 25px;
  }
  .nav-links a {
    font-size: 1.5rem;
  }
  .burger {
    display: block;
  }
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .hero-content p {
    font-size: 1.2rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  .section {
    padding: 80px 0;
  }
  .section-title {
    font-size: 2.2em;
  }
  .section-description {
    font-size: 1.05em;
    margin-bottom: 40px;
  }
  .card-effect {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }
  .card-icon-wrapper {
    margin-bottom: 10px;
  }
  .card-text-content {
    text-align: center;
  }
  .vision-list,
  .publications {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .contact-form {
    padding: 30px;
  }
  .contact-form input,
  .contact-form textarea {
    padding: 15px;
    margin-bottom: 20px;
  }
  .contact-form button[type="submit"] {
    padding: 15px 40px;
  }
}

@media (max-width: 520px) {
    
.publication-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

}
  .social{
    display:none;
  }
 .hero-container {
    flex-direction: column; /* Stack content vertically */
    align-items: center;    /* Center content horizontally */
    text-align: center;     /* Center text within hero-content */
    justify-content: center; /* Center content vertically */
  }

  .hero-content {
    /* Reset max-width to allow content to flow naturally */
    max-width: 100%; 
    /* text-align: center; */
    order: 2; /* Display the text content below the image */
  }

  .hero-image-wrapper {
    width: 100%; /* Make the wrapper responsive */
    height: 300px; /* Adjust height automatically */
    clip-path: none; /* Remove the desktop clip-path */
    order: 1; /* Display the image above the text content */
    margin-bottom: 1rem; /* Add space between the image and text */
    min-width: 0px;
  }

  .hero-image {
    width: 70%; /* Make the image fill its wrapper */
    height: 300px; /* Let the height be determined by the image's aspect ratio */
    border-radius: 20px; /* A slightly smaller radius for a smaller image */
    filter:opacity(0.9);
    object-fit: cover; /* Ensure the image covers the area without distortion */
    object-position: top; /* Centers the image within its frame */
  }
  .nav {
    /*padding: 0 1rem;*/
    /*width:100%;*/
  }
  .logo {
    font-size: 1.6rem;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content p {
    font-size: 1.1rem;
  }
  .hero-buttons {
    gap: 0.8rem;
  }
  .btn {
    padding: 14px 30px;
    font-size: 0.95em;
  }
  .section-title {
    font-size: 1.8em;
  }
  .card-effect {
    padding: 25px;
  }
  .card-icon-wrapper i {
    font-size: 2.5em;
  }
  .card-text-content {
    font-size: 1.1em;
  }
  .footer {
    padding: 30px 0;
  }
  .footer .social a {
    font-size: 1.5em;
    margin: 0 10px;
  }
}
@media (max-width: 480px) {
    
    .phd{
        text-align:center;
    }
}
