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

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Firefox scrollbar (standard property) */
@supports (-moz-appearance: none) {
    html {
        scrollbar-width: thin;
        scrollbar-color: var(--primary) var(--bg-soft);
    }
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale; /* Firefox font smoothing */
    transition: background-color 0.3s, color 0.3s;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors - Dark Theme (Default) */
    --primary: #3b82f6;
    --primary-dark: #60a5fa;
    --accent: #fbbf24;
    --bg: #0b1120;
    --bg-card: #1a2332;
    --bg-soft: #1e293b;
    --text: #f1f5f9;
    --text-light: #cbd5e1;
    --text-lighter: #94a3b8;
    --border: #334155;
    --border-light: #1e293b;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Gradients - Firefox compatible */
    --gradient: linear-gradient(135deg, #3b82f6, #1d4ed8);
    --gradient-soft: linear-gradient(135deg, #1a2332, #0f172a);
    --gradient-green: linear-gradient(135deg, #22c55e, #16a34a);
    --gradient-accent: linear-gradient(135deg, #fbbf24, #d97706);
    
    /* Shadows */
    --shadow-sm: 0 10px 30px -15px rgba(0, 0, 0, 0.3);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 35px 60px -15px rgba(0, 0, 0, 0.6);
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 5%;
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-xl: 40px;
    --radius-full: 50px;
}

/* Light Theme Variables */
body.light {
    --primary: #2563eb;
    --primary-dark: #3b82f6;
    --accent: #f59e0b;
    --bg: #f0f5fa;
    --bg-card: #ffffff;
    --bg-soft: #f8fafc;
    --text: #0f1a2f;
    --text-light: #475569;
    --text-lighter: #64748b;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --gradient: linear-gradient(135deg, #2563eb, #1e40af);
    --gradient-soft: linear-gradient(135deg, #f0f5fa, #ffffff);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* ===== CONTAINER & LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Firefox flexbox fix */
@-moz-document url-prefix() {
    .container {
        display: block;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1500px;
    }
}

/* ===== CUSTOM SCROLLBAR ===== */
/* Chrome/Safari */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-soft);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-soft);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Firefox scrollbar is handled at the top of this file */

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Firefox gradient text fix */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Firefox fallback */
}

/* Firefox specific gradient fix */
@-moz-document url-prefix() {
    .gradient-text,
    .hero-title span,
    .section-title span,
    .stat-number,
    .logo-text {
        background: var(--gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 20, 40, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 12px 0;
    transition: all 0.3s ease;
}

/* Firefox backdrop filter fix */
@-moz-document url-prefix() {
    .header {
        background: rgba(10, 20, 40, 0.95);
    }
    
    body.light .header {
        background: rgba(255, 255, 255, 0.95);
    }
}

.header.scrolled {
    padding: 8px 0;
    background: rgba(10, 20, 40, 0.95);
}

body.light .header {
    background: rgba(255, 255, 255, 0.9);
}

body.light .header.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Firefox flexbox fix */
@-moz-document url-prefix() {
    .nav {
        display: -moz-box;
        display: flex;
    }
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.logo-icon span {
    transform: rotate(-45deg);
    display: inline-block;
}

.logo:hover .logo-icon {
    transform: rotate(90deg);
}

.logo-text {
    font-weight: 700;
    font-size: 1.3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Desktop Menu */
.menu {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}

.menu a:hover {
    color: var(--primary);
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
    width: 45px;
    height: 45px;
    border-radius: var(--radius-sm);
    font-size: 1.4rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
}

/* Theme Toggle */
.theme-toggle {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-full);
    border: 2px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(45deg);
}

/* Mobile Menu Styles */
@media (max-width: 1040px) {
    .menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 5%;
        right: 5%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 25px;
        border-radius: var(--radius-lg);
        border: 1px solid var(--border);
        z-index: 999;
        box-shadow: var(--shadow);
    }
    
    .menu.show {
        display: flex !important; /* Firefox fix */
        animation: slideDown 0.3s ease;
    }
    
    .menu-toggle {
        display: flex;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Firefox button fix */
@-moz-document url-prefix() {
    .btn {
        display: -moz-inline-box;
        display: inline-flex;
    }
}

.btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(3px);
}

/* Button Variants */
.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    background: rgba(59, 130, 246, 0.05);
}

.btn-download {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-download:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 140px 0 60px;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: block; /* Firefox fix */
}

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

/* Firefox grid fix */
@-moz-document url-prefix() {
    .hero-grid {
        display: -moz-grid;
        display: grid;
    }
}

.hero-content {
    padding-right: 20px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    margin-bottom: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-text {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Photo Card */
.photo-card {
    position: relative;
}

.photo-frame {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--bg-soft);
    position: relative;
    border: 3px solid var(--border);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-frame:hover img {
    transform: scale(1.05);
}

.photo-badge {
    position: absolute;
    bottom: 30px;
    right: -10px;
    background: var(--gradient);
    color: white;
    padding: 12px 25px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@media (max-width: 800px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        padding-right: 0;
    }
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 60px 0;
}

.stat-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
    margin-bottom: 8px;
}

.stat-label {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--text-lighter);
}

@media (max-width: 700px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 450px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--section-padding);
    width: 100%;
    position: relative;
    display: block; /* Firefox fix */
}

.section:last-of-type {
    border-bottom: none;
}

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

.section-subtitle {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: inline-block;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.section-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* ===== CARDS ===== */
.about-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 35px;
    border: 1px solid var(--border);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient);
    transition: height 0.3s ease;
}

.about-card:hover::before {
    height: 100%;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.about-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-soft);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.about-card:hover .about-icon {
    background: var(--gradient);
    color: white;
    transform: rotate(5deg) scale(1.1);
}

.about-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.about-list {
    list-style: none;
}

.about-list li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.about-list i {
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1rem;
}

/* ===== GRID SYSTEMS ===== */
.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Firefox grid fix */
@-moz-document url-prefix() {
    .grid-auto {
        display: -moz-grid;
        display: grid;
    }
}

/* ===== SKILL BARS ===== */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: var(--bg-soft);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}

.skill-progress {
    height: 100%;
    background: var(--gradient);
    border-radius: var(--radius-full);
    position: relative;
    width: 0%;
    transition: width 0.1s linear;
}

/* ===== EXPERIENCE CARDS ===== */
.exp-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 35px;
    margin-bottom: 25px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
}

.exp-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.exp-header {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.exp-icon {
    width: 65px;
    height: 65px;
    background: var(--gradient-soft);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.exp-card:hover .exp-icon {
    background: var(--gradient);
    color: white;
    transform: rotate(5deg);
}

.exp-title h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.exp-meta {
    color: var(--text-light);
    display: flex;
    gap: 25px;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.exp-meta i {
    color: var(--primary);
    margin-right: 5px;
}

.exp-impact {
    margin-top: 25px;
    background: var(--bg-soft);
    padding: 20px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
}

/* ===== CERTIFICATES SECTION ===== */
.certificates-section {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 60px 5%;
    margin: 40px 0;
    border: 1px solid var(--border);
    width: 100%;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    justify-items: center;
}

.cert-card {
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    width: 100%;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.cert-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.cert-logo {
    width: 90px;
    height: 90px;
    background: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    overflow: hidden;
    border: 3px solid var(--primary);
    padding: 8px;
    transition: all 0.3s ease;
}

.cert-card:hover .cert-logo {
    transform: scale(1.05);
    border-color: var(--accent);
}

.cert-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== PHOTO GALLERY ===== */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

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

.gallery-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    .photo-gallery {
        grid-template-columns: 1fr;
    }
}

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

.contact-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border);
}

.contact-info-item {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    width: 55px;
    height: 55px;
    background: var(--gradient-soft);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-icon {
    background: var(--gradient);
    color: white;
    transform: rotate(5deg);
}

.contact-info-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.contact-info-item a:hover {
    color: var(--primary);
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 20px;
}

input, textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-card);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

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

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-full);
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
    border-color: var(--primary);
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    color: var(--text-lighter);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

/* ===== BACK TO TOP BUTTON ===== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: var(--radius-full);
    background: var(--gradient);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    z-index: 99;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

#backToTop:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.whatsapp-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
}

/* ===== RIPPLE EFFECT ===== */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .exp-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .exp-meta {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .contact-card {
        padding: 25px;
    }
}

/* ===== FIREFOX SPECIFIC ANIMATION FIX ===== */
@-moz-document url-prefix() {
    .skill-progress {
        transition: width 0.02s linear;
    }
    
    .stat-number {
        transition: color 0.2s ease;
    }
    
    .btn, .whatsapp-button {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ===== ADDED: classes used in the HTML but missing here ===== */
.cert-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 5%;
}

.green-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    vertical-align: middle;
    white-space: nowrap;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.05rem;
}

/* Keyboard focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* Link back to the main in2eff site in the portfolio menu */
.logo { text-decoration: none; }
.menu a.menu-site {
    color: var(--accent);
    font-weight: 600;
}
.menu a.menu-site i { font-size: 0.8em; margin-right: 4px; }

@media (min-width: 1041px) and (max-width: 1280px) {
    .menu { gap: 16px; }
    .menu a { font-size: 0.88rem; }
}
