/* Base & Variables */
:root {
    /* Professional 'FinTech' Dark Palette */
    --bg-color: #0b1120;
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;

    --primary: #38bdf8;
    --primary-gradient: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    --secondary: #0ea5e9;
    --accent: #0ea5e9;

    --border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(11, 17, 32, 0.8);
    --glass: blur(12px) saturate(180%);

    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.5);

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Premium Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.05) 0%, transparent 40%);
    z-index: -1;
    animation: meshMove 20s ease-in-out infinite alternate;
}

@keyframes meshMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(2%, 2%);
    }
}

/* Custom Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    mix-blend-mode: screen;
}

@media (max-width: 768px) {
    .cursor-glow {
        display: none;
    }
}

[data-theme="dark"] .hero-name,
[data-theme="dark"] .hero-subtitle {
    color: #ffffff;
}

/* Light Theme Overrides (Explicit) */
[data-theme="light"] .hero-name,
[data-theme="light"] .hero-subtitle {
    color: #000000;
}

[data-theme="light"] {
    --bg-color: #ffffff;
    --card-bg: #f8fafc;
    --card-border: #e2e8f0;
    --text-color: #0f172a;
    --text-muted: #475569;

    --primary: #0284c7;
    --primary-gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    --secondary: #0369a1;
    --accent: #0369a1;

    --border: #e2e8f0;
    --nav-bg: rgba(255, 255, 255, 0.95);

    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
    top: 0 !important;
    /* Hide Google Translate top margin */
}

/* Hide Google Translate UI */
.goog-te-banner-frame,
.goog-te-gadget-icon,
.goog-te-gadget-simple img,
.goog-te-menu-value span:nth-child(3),
.goog-te-gadget-simple .goog-te-menu-value span {
    display: none !important;
}

.goog-te-gadget-simple {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .nav-links li a::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .slide-in-left {
    transform: translateX(30px);
}

[dir="rtl"] .slide-in-left.visible {
    transform: translateX(0);
}

[dir="rtl"] .hero-name {
    letter-spacing: 0;
}

[dir="rtl"] .hero-content {
    text-align: right;
}

[dir="rtl"] .timeline-item {
    padding-left: 0;
    padding-right: 40px;
}

[dir="rtl"] .timeline-marker {
    left: auto;
    right: -8px;
}

[dir="rtl"] .timeline::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .contact-card {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-buttons {
    flex-direction: row-reverse;
}

[dir="rtl"] .form-actions {
    direction: rtl;
}

/* Smooth language transition */
[data-i18n],
[data-placeholder] {
    transition: opacity 0.2s ease-in-out;
}

/* Page Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Typography & Layout */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-color);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-body);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-color);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(56, 189, 248, 0.05);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Animations System */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-up,
.slide-in-left,
.slide-in-right,
.zoom-in {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    will-change: transform, opacity;
}

.fade-in-up {
    transform: translateY(40px) scale(0.98);
}

.slide-in-left {
    transform: translateX(-60px);
}

.slide-in-right {
    transform: translateX(60px);
}

.zoom-in {
    transform: scale(0.9);
}

.visible {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
    pointer-events: auto !important;
}

/* Reveal Parent Container for text */
.reveal-text {
    overflow: hidden;
    display: inline-block;
}

.reveal-text span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.visible .reveal-text span {
    transform: translateY(0);
}

/* Stagger Delays with more levels */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

.delay-6 {
    transition-delay: 0.6s;
}

/* Enhanced Hover Effects */
.hover-lift {
    transition: transform 0.3s var(--transition), box-shadow 0.3s var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* Floating Animation for icons/small elements */
@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    border-bottom: 1px solid var(--border);
    background: var(--nav-bg);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: var(--nav-bg);
    box-shadow: var(--shadow);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.lang-text {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-color);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
}

.lang-btn:hover {
    background: var(--card-bg);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
    transform: translateY(-1px);
}

.lang-icon {
    opacity: 0.8;
}

.lang-btn:hover .lang-icon {
    opacity: 1;
    color: var(--primary);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo .highlight {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    background: var(--text-color);
    width: 25px;
    height: 2px;
    display: block;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    background: var(--text-color);
    width: 100%;
    height: 2px;
    position: absolute;
    content: '';
    left: 0;
    transition: 0.3s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.2rem;
    display: flex;
    align-items: center;
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

[data-theme="light"] .sun-icon {
    display: block;
}

[data-theme="light"] .moon-icon {
    display: none;
}

/* Hero */
.hero {
    min-height: 60vh;
    /* Further reduced from 70vh */
    display: flex;
    align-items: center;
    padding: 90px 0 30px 0;
    /* Increased top padding to push content down */
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-text {
    flex: 1.2;
    max-width: 650px;
}

.hero-name {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.3;
    /* Increased to fix descender clipping */
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.1rem;
    /* Extra space for gradient rendering */
    letter-spacing: -1.5px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hero-name {
        white-space: normal;
        word-wrap: break-word;
    }
}


.hero-role {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    /* Reduced from 2.5rem */
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero-role::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--primary-gradient);
    opacity: 0.3;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.hero-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2rem;
    /* Reduced from 3rem */
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 0.79;
    /* Approx 380/480 */
    animation: float 6s ease-in-out infinite;
}

.hero-img-wrapper:hover {
    animation-play-state: paused;
}

.hero-img-wrapper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--primary);
    border-radius: 20px;
    z-index: -1;
    transition: var(--transition);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.hero-img-wrapper:hover::before {
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.15);
}

.hero-image:hover img {
    transform: scale(1.03);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Hero Buttons & Contact Reveal */
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    /* Reduced from 2rem */
    margin-bottom: 1rem;
    /* Reduced from 2rem */
    flex-wrap: wrap;
}

.hero-contact-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
}

.hero-contact-details.show {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    margin-top: 1rem;
}

/* Specific Style Overrides for Hero Context */
.hero-card-style {
    background: rgba(30, 41, 59, 0.6);
    /* Slightly darker for hero contrast */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.85rem 1rem;
}

[data-theme="light"] .hero-card-style {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--border);
}

.download-btn {
    text-align: center;
}

/* Button Active/Toggled State */
#hero-contact-toggle.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Mobile Adjustments */
@media (max-width: 500px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

.hero-image {
    position: relative;
    /* Context for z-index */
    z-index: 1;
}

.hero-image img {
    cursor: pointer;
    z-index: 1;
    /* Previous styles... */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
    /* Bouncy effect */
}

.hero-image img.enlarged {
    transform: scale(1.5) rotate(-2deg);
    z-index: 50;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 10px 10px -5px rgba(0, 0, 0, 0.2);
    /* Backdrop dimming trick if supported, specific to parent context */
    border-color: var(--primary);
}

/* Mobile Adjustments for Enlargement */
@media (max-width: 768px) {
    .hero-image img.enlarged {
        transform: scale(1.25) rotate(-2deg);
        /* Smaller scale for mobile */
    }
}



/* Sections */
.section {
    padding: 2rem 0;
    /* Further reduced from 3rem */
}

.section-alt {
    background-color: #f1f5f9;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .section-alt {
    background-color: rgba(15, 23, 42, 0.4);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.2rem;
    /* Slightly smaller font */
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    /* Further reduced from 2.5rem */
    position: relative;
    padding-bottom: 1rem;
    /* Reduced from 1.2rem */
    color: var(--text-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 10px;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.section-title.visible::after {
    transform: translateX(-50%) scaleX(1);
}

/* About & Objective */
.about-content {
    max-width: 850px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    backdrop-filter: var(--glass);
    box-shadow: var(--shadow);
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-color);
    line-height: 1.8;
    position: relative;
    overflow: hidden;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 0 0 10px 10px;
}

.objective-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-left: 5px solid var(--accent);
}

/* Education Card */
.education-card {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    /* Reduced from 2.5rem */
    background: var(--card-bg);
    padding: 1.5rem;
    /* Reduced from 2rem */
    border-radius: 20px;
    border: 1px solid var(--card-border);
    backdrop-filter: var(--glass);
    max-width: 850px;
    margin: 0 auto;
    transition: var(--transition);
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.edu-icon {
    font-size: 2.5rem;
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 12px;
    line-height: 1;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .edu-icon {
    background: #1e293b;
}

.edu-details h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.edu-details .institution {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.edu-details .year {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.edu-details .highlight-text {
    color: var(--text-color);
    font-weight: 600;
}

/* Experience (Timeline) */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--border);
}

.timeline-item {
    margin-bottom: 2rem;
    /* Reduced from 3rem */
    position: relative;
}

.timeline-marker {
    position: absolute;
    left: -2.6rem;
    top: 0.4rem;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg-color);
}

.timeline-content {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateX(10px);
    border-color: var(--primary);
}

.timeline-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.timeline-place {
    display: block;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.timeline-date {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.timeline-desc {
    margin-top: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    /* Reduced from 1.5rem */
}

/* Adjust for smaller screens */
@media (max-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

.skill-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    backdrop-filter: var(--glass);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--transition);
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(56, 189, 248, 0.4);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
}

.skill-icon {
    font-size: 1.6rem;
    background: rgba(56, 189, 248, 0.1);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.skill-card:hover .skill-icon {
    background: var(--primary);
    transform: scale(1.1);
}

[data-theme="dark"] .skill-icon {
    background: rgba(56, 189, 248, 0.15);
}

.skill-card h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.skill-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-card ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

.skill-card ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--primary);
}

/* Contact Section Refined */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: start;
}

.contact-left-panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contact-intro-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.contact-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Hidden Contact Details Container */
.section-contact-details {
    margin-top: 1.5rem;
    /* Increased spacing */
    padding: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-contact-details.show {
    max-height: 500px;
    /* Allow enough space for cards */
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Contact Card Styles */
.contact-card {
    background: rgba(30, 41, 59, 0.4);
    /* Soft transparent card bg */
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

[data-theme="light"] .contact-card {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    background: var(--card-bg);
}

.card-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 50%;
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.card-value {
    font-size: 0.95rem;
    color: var(--text-color);
    font-family: monospace;
    word-break: break-all;
    user-select: all;
    /* Easy copy */
    cursor: text;
}

.contact-form-panel {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.full-width {
    width: 100%;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-color);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Form Actions & Status */
.form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 500px) {
    .form-actions {
        grid-template-columns: 1fr;
    }
}

.form-status {
    margin-top: 1rem;
    font-size: 0.95rem;
    padding: 10px;
    border-radius: 4px;
    display: none;
    text-align: center;
}

.form-status.success {
    display: block;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-status.error {
    display: block;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    background: var(--bg-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-to-top {
    font-size: 1.5rem;
    transition: 0.3s;
}

.back-to-top:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
        /* Reduced from 3rem */
    }

    .hero-text,
    .hero-image {
        max-width: 100%;
        width: 100%;
    }

    .hero-image img {
        width: 100%;
        height: auto;
    }

    .hero-img-wrapper {
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-intro {
        margin-left: auto;
        margin-right: auto;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        transition: 0.3s ease;
        border-top: 1px solid var(--border);
    }

    .nav-links.active {
        right: 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-left-panel {
        padding-right: 0;
    }

    .education-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .hero-name {
        font-size: 2rem;
    }

    .hero-role {
        font-size: 1.4rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-role::after {
        display: none;
    }

    .container {
        padding: 0 1rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-marker {
        left: -1.9rem;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .hero-image img {
        width: 100%;
    }

    .hero-img-wrapper {
        max-width: 240px;
    }

    .hero-img-wrapper::before {
        top: 10px;
        left: 10px;
        right: -10px;
        bottom: -10px;
    }
}

/* Certifications & Training Section */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.cert-category {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    /* Reduced from 2.5rem */
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cert-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.cert-category:hover::before {
    opacity: 1;
}

.cert-category:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    /* Reduced from 2.5rem */
    padding-bottom: 1rem;
    /* Reduced from 1.2rem */
    border-bottom: 1px solid var(--border);
}

.category-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(99, 102, 241, 0.1));
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--primary);
    box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.1);
}

.category-header h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    font-weight: 600;
}

.cert-items {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    /* Reduced from 2rem */
}

.cert-item {
    position: relative;
    padding-left: 1.8rem;
    border-left: 2px solid var(--border);
    transition: var(--transition);
}

.cert-item::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: var(--transition);
}

.cert-item:hover {
    border-left-color: var(--primary);
}

.cert-item:hover::after {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.cert-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.4;
}

.cert-item .issuer {
    font-weight: 500;
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
    display: block;
}

.cert-item .date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    display: block;
    font-weight: 500;
}

.cert-item .desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Responsive adjustments for Certifications */
@media (max-width: 768px) {
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cert-category {
        padding: 1.8rem;
    }
}


/* Certification View Link - Compact but Vertical */
.view-cert-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
    padding: 0.35rem 0.7rem;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid var(--primary);
    border-radius: 6px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.view-cert-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.view-cert-link svg {
    transition: transform 0.3s ease;
}

.view-cert-link:hover svg {
    transform: translate(2px, -2px);
}

.cert-links-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.6rem;
}