@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* ==========================================================================
   CSS CUSTOM VARIABLES & DESIGN SYSTEM
   ========================================================================== */
:root {
    --bg-dark-deep: #f8fafc; /* Light Slate */
    --bg-dark-medium: #f1f5f9; /* Slate 100 */
    --bg-dark-light: #ffffff; /* White */
    --primary: #ec4899;      /* Pink 500 */
    --primary-glow: rgba(236, 72, 153, 0.3);
    --secondary: #0ea5e9;    /* Sky 500 */
    --secondary-glow: rgba(14, 165, 233, 0.3);
    --text-primary: #0f172a; /* Slate 900 */
    --text-secondary: #334155; /* Slate 700 */
    --text-muted: #64748b; /* Slate 500 */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.06);
    --glass-border-glow: rgba(236, 72, 153, 0.15);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
}

/* ==========================================================================
   BASE & RESET STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark-deep);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   UI UTILITIES & GENERAL STYLES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-primary {
    background: linear-gradient(135deg, #e0aaff 0%, var(--primary) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--glass-border-glow);
    box-shadow: 0 15px 35px -5px var(--primary-glow), 0 0 15px -3px rgba(0, 229, 255, 0.1);
    transform: translateY(-5px);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Button Custom Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #6f1ab6);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 22px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--secondary);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.05);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: #ffffff;
    box-shadow: 0 6px 22px var(--secondary-glow);
    transform: translateY(-2px);
}

.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 0;
}

/* Custom Cursor Glow */
.cursor-glow {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 42, 133, 0.15) 0%, rgba(0, 245, 212, 0.05) 50%, rgba(0,0,0,0) 70%);
    position: fixed;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

/* Background Particle Canvas */
#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Dynamic Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark-deep);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.loader-bar-bg {
    width: 200px;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    animation: loadingAnim 2s cubic-bezier(0.1, 0.8, 0.1, 1) forwards;
}

@keyframes loadingAnim {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ==========================================================================
   STICKY NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    height: 70px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: var(--transition-fast);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    font-size: 1.5rem;
    background: transparent;
    color: var(--text-primary);
    border: none;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-content h4 {
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-typed {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-height: 60px;
    margin-bottom: 24px;
}

.typed-cursor {
    color: var(--secondary);
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-avatar-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 0 35px var(--primary-glow);
}

.hero-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-dark-deep);
}

/* Ring animations around avatar */
.hero-avatar-wrapper::before, .hero-avatar-wrapper::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 2px dashed var(--secondary);
    border-radius: 50%;
    animation: rotateRing 20s linear infinite;
    opacity: 0.4;
    pointer-events: none;
}

.hero-avatar-wrapper::after {
    top: -25px;
    left: -25px;
    right: -25px;
    bottom: -25px;
    border: 1px solid var(--primary);
    animation: rotateRing 30s linear infinite reverse;
}

@keyframes rotateRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   ABOUT ME SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-details h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.about-details p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.about-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.about-meta-item {
    padding: 20px;
}

.about-meta-item h5 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.about-meta-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Card grids inside about for journey details */
.journey-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.journey-card {
    padding: 24px;
    display: flex;
    gap: 20px;
}

.journey-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-top: 4px;
}

.journey-card h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.journey-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.skill-card {
    padding: 30px 24px;
    text-align: center;
    position: relative;
}

.skill-icon-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(255, 42, 133, 0.1);
    border: 1px solid rgba(255, 42, 133, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--secondary);
    margin: 0 auto 20px;
    transition: var(--transition-smooth);
}

.skill-card:hover .skill-icon-wrapper {
    background: var(--secondary);
    color: var(--bg-dark-deep);
    box-shadow: 0 0 20px var(--secondary-glow);
    transform: scale(1.1);
}

.skill-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.skill-progress-bg {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 10px;
    width: 0; /* Dynamic animate in main.js */
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.1, 1);
}

.skill-percent {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ==========================================================================
   EXPERIENCE SECTION (TIMELINE)
   ========================================================================== */
.timeline-wrapper {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Vertical line */
.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-dark-deep);
    border: 4px solid var(--secondary);
    position: absolute;
    left: 50%;
    top: 25px;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 10px var(--secondary-glow);
}

.timeline-item:nth-child(even) .timeline-dot {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-content {
    width: 45%;
    padding: 30px;
    position: relative;
}

.timeline-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 12px;
    background: rgba(0, 245, 212, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(0, 245, 212, 0.2);
}

.timeline-item:nth-child(even) .timeline-badge {
    background: rgba(255, 42, 133, 0.1);
    color: var(--primary);
    border: 1px solid rgba(255, 42, 133, 0.2);
}

.timeline-duration {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-card:hover .project-img {
    transform: scale(1.08) rotate(1deg);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(8, 8, 12, 0.95) 0%, rgba(8, 8, 12, 0.4) 100%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    transition: var(--transition-smooth);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    color: var(--text-primary);
}

.project-info {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.project-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tech-pill {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--secondary);
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.12);
    padding: 4px 12px;
    border-radius: 50px;
}

.project-links {
    display: flex;
    gap: 16px;
    margin-top: auto;
}

/* ==========================================================================
   LEADERSHIP & PROGRAMS
   ========================================================================== */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}

.lead-card {
    overflow: hidden;
}

.lead-img-wrapper {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.lead-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.lead-card:hover .lead-img {
    transform: scale(1.05);
}

.lead-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    box-shadow: 0 4px 10px var(--primary-glow);
}

.lead-info {
    padding: 24px;
}

.lead-info h5 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--secondary);
    margin-bottom: 4px;
}

.lead-info h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.lead-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   CERTIFICATIONS & AWARDS
   ========================================================================== */
.swiper-container {
    width: 100%;
    padding: 30px 0 60px;
}

.cert-card {
    padding: 24px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cert-img-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cert-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cert-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cert-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Awards layout */
.awards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 60px;
}

.award-item {
    display: flex;
    gap: 20px;
    padding: 30px;
}

.award-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(0, 245, 212, 0.08);
    border: 1px solid rgba(0, 245, 212, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary);
    flex-shrink: 0;
}

.award-item:nth-child(even) .award-icon-box {
    background: rgba(255, 42, 133, 0.08);
    border-color: rgba(255, 42, 133, 0.15);
    color: var(--primary);
}

.award-details h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.award-details h5 {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 12px;
}

.award-details p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   LANGUAGES SECTION
   ========================================================================== */
.languages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 40px auto 0;
}

.lang-card {
    padding: 30px;
    text-align: center;
}

.lang-circle-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.lang-svg {
    transform: rotate(-90deg);
}

.lang-circle-bg {
    fill: none;
    stroke: rgba(0, 0, 0, 0.06);
    stroke-width: 6;
}

.lang-circle-val {
    fill: none;
    stroke: url(#langGradient);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 339;
    stroke-dashoffset: 339; /* Dynamic animate in JS */
    transition: stroke-dashoffset 2s cubic-bezier(0.1, 0.8, 0.1, 1);
}

.lang-circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.lang-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.lang-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   GALLERY SECTION
   ========================================================================== */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.gallery-filter-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 30px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition-fast);
}

.gallery-filter-btn:hover, .gallery-filter-btn.active {
    background: var(--primary);
    color: var(--text-primary);
    border-color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 13, 22, 0.85);
    backdrop-filter: blur(4px);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.gallery-item-overlay span {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary);
    letter-spacing: 1px;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-card {
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(138, 43, 226, 0.08);
    border: 1px solid rgba(138, 43, 226, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
}

.contact-text h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.contact-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-form-wrapper {
    padding: 40px;
}

.contact-form .form-group {
    margin-bottom: 24px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--secondary);
    background: rgba(0, 0, 0, 0.06);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
}

.form-status {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.form-status.error {
    display: block;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* ==========================================================================
   FOOTER & FLOATING WIDGETS
   ========================================================================== */
.footer {
    background: var(--bg-dark-deep);
    padding: 60px 0 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.social-link:hover {
    color: var(--text-primary);
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px var(--primary-glow);
    opacity: 0;
    visibility: hidden;
    z-index: 99;
    transition: var(--transition-smooth);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--secondary);
    color: var(--bg-dark-deep);
    box-shadow: 0 5px 15px var(--secondary-glow);
}

/* Floating social dock sidebar */
.floating-socials-dock {
    position: fixed;
    left: 30px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 99;
    align-items: center;
}

.floating-socials-dock::after {
    content: '';
    width: 1px;
    height: 90px;
    background: linear-gradient(to bottom, var(--secondary), transparent);
}

.floating-socials-dock a {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: var(--transition-fast);
}

.floating-socials-dock a:hover {
    color: var(--secondary);
    text-shadow: 0 0 8px var(--secondary-glow);
    transform: translateY(-5px);
}

/* ==========================================================================
   PROJECT DETAILS PAGE LAYOUT
   ========================================================================== */
.project-details-hero {
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    position: relative;
    padding-bottom: 60px;
    overflow: hidden;
}

.project-details-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.25;
}

.project-details-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, var(--bg-dark-deep) 100%);
    z-index: 2;
}

.project-details-hero .container {
    position: relative;
    z-index: 3;
}

.project-details-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.project-details-body {
    padding: 80px 0;
}

.project-details-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 50px;
}

.project-desc-long h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.project-desc-long p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.project-sidebar-card {
    padding: 40px;
}

.project-sidebar-info-group {
    margin-bottom: 24px;
}

.project-sidebar-info-group h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.project-sidebar-info-group p {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* ==========================================================================
   ADMIN PORTAL PREMIUM DARK DASHBOARD STYLES
   ========================================================================== */
.admin-body {
    background-color: var(--bg-dark-deep);
}

.admin-nav {
    border-bottom: 1px solid var(--glass-border);
    background: rgba(13, 13, 20, 0.95);
    backdrop-filter: blur(10px);
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
    padding-top: 80px;
}

.admin-sidebar {
    width: 250px;
    background: var(--bg-dark-medium);
    border-right: 1px solid var(--glass-border);
    padding: 30px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
}

.admin-sidebar-link:hover, .admin-sidebar-link.active {
    background: rgba(138, 43, 226, 0.08);
    color: var(--secondary);
    border-left: 3px solid var(--secondary);
}

.admin-main {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
}

.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.admin-header-row h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-primary);
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.admin-stat-card {
    padding: 30px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--secondary);
}

.admin-stat-details h3 {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.admin-stat-details p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Tables & CRUD UI inside Admin */
.admin-table-card {
    padding: 30px;
    overflow: hidden;
}

.admin-table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
    font-size: 0.95rem;
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(0, 0, 0, 0.01);
}

.admin-table-img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
}

.admin-action-btn-group {
    display: flex;
    gap: 8px;
}

.admin-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.admin-action-btn.edit {
    background: rgba(230, 126, 34, 0.1);
    color: #e67e22;
    border: 1px solid rgba(230, 126, 34, 0.2);
}

.admin-action-btn.edit:hover {
    background: #e67e22;
    color: var(--text-primary);
}

.admin-action-btn.delete {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.admin-action-btn.delete:hover {
    background: #e74c3c;
    color: var(--text-primary);
}

/* Modal Form Styles */
.admin-form-card {
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
}

.admin-form-group {
    margin-bottom: 24px;
}

.admin-form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.admin-form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.admin-form-control:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
}

/* Login Page UI */
.admin-login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.admin-login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
}

.admin-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-login-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.admin-login-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================================================
   RESPONSIVENESS AND MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.8rem;
    }
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .awards-grid {
        grid-template-columns: 1fr;
    }
    .admin-wrapper {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        flex-direction: row;
        overflow-x: auto;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    .section-header h2 {
        font-size: 2.2rem;
    }
    .navbar {
        height: 70px;
    }
    .nav-links {
        display: none; /* Mobile menu toggled by class */
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-dark-deep);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        z-index: 999;
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .hero {
        padding-top: 80px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-avatar-wrapper {
        width: 250px;
        height: 250px;
    }
    .hero-desc {
        margin: 0 auto 30px;
    }
    .hero-actions {
        justify-content: center;
    }
    .timeline-wrapper::before {
        left: 20px;
    }
    .timeline-item {
        flex-direction: row !important;
        margin-bottom: 40px;
    }
    .timeline-dot {
        left: 20px;
    }
    .timeline-content {
        width: calc(100% - 40px);
        margin-left: 40px;
        padding: 20px;
    }
    .languages-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .floating-socials-dock {
        display: none;
    }
    .admin-main {
        padding: 20px;
    }
    .admin-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==========================================================================
   GOOGLE TRANSLATE CUSTOMIZATION
   ========================================================================== */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate, 
.goog-te-gadget-icon,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
#goog-gt-tt,
.skiptranslate iframe {
    display: none !important;
    visibility: hidden !important;
}

body {
    top: 0px !important;
    position: relative !important;
}

html {
    height: 100%;
}

#google_translate_element {
    display: none !important;
}
.goog-tooltip {
    display: none !important;
}
.goog-tooltip:hover {
    display: none !important;
}
.goog-text-highlight {
    background-color: transparent !important;
    border: none !important; 
    box-shadow: none !important;
}

/* ==========================================================================
   GALLERY VISUAL GRID (Simple artwork display)
   ========================================================================== */
.gallery-visual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-visual-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--card-shadow);
    cursor: pointer;
}

.gallery-visual-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-visual-item:hover img {
    transform: scale(1.08);
}

.gallery-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-visual-item:hover .gallery-visual-overlay {
    opacity: 1;
}

.gallery-visual-overlay h4 {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.gallery-visual-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    line-height: 1.4;
}

.gallery-empty {
    grid-column: 1/-1;
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .gallery-visual-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
}
