:root {
    --bg-main: #0B1120;        
    --bg-panel: #131E3A;       
    --card-bg: rgba(23, 37, 84, 0.4); 
    --primary: #38BDF8;        
    --primary-hover: #0EA5E9;
    --accent: #2DD4BF;         
    --text-main: #F8FAFC;      
    --text-muted: #94A3B8;     
    --border-color: rgba(56, 189, 248, 0.2); 
    --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.15);
    --shadow-glow-strong: 0 0 30px rgba(56, 189, 248, 0.4);
}

html { scrollbar-width: none; -ms-overflow-style: none; overflow-x: hidden; }
html::-webkit-scrollbar { display: none; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: 'Poppins', sans-serif; font-size: 18px; color: var(--text-main); background: var(--bg-main); line-height: 1.7; scroll-behavior: smooth; position: relative; overflow-x: hidden; }

.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 9997; opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 10; }

.section { padding: 120px 0; position: relative; scroll-margin-top: 100px; }
.section-title { font-size: 3rem; font-weight: 800; margin-bottom: 60px; color: var(--text-main); text-align: center; letter-spacing: -1px; }
.bg-panel { background-color: var(--bg-panel); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.mt-4 { margin-top: 1.5rem; }

.scroll-progress-bar { position: fixed; top: 0; left: 0; width: 0%; height: 3px; background: var(--primary); z-index: 10000; transition: width 0.1s; box-shadow: 0 0 15px var(--primary); }

@media (pointer: fine) {
    body, a, button, .interactive-card, .slider-track, .hamburger { cursor: none !important; }
}
.custom-cursor-dot { width: 8px; height: 8px; background-color: var(--primary); border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: opacity 0.3s; box-shadow: 0 0 10px var(--primary); mix-blend-mode: screen; }
.custom-cursor-outline { width: 40px; height: 40px; border: 2px solid rgba(56, 189, 248, 0.5); border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, background-color 0.2s, opacity 0.3s; mix-blend-mode: screen; }

@keyframes breatheBlob {
    0% { transform: scale(1) translate(0, 0); opacity: 0.4; }
    50% { transform: scale(1.1) translate(20px, -20px); opacity: 0.6; }
    100% { transform: scale(1) translate(0, 0); opacity: 0.4; }
}
.glow-blob { position: fixed; border-radius: 50%; filter: blur(120px); opacity: 0.4; z-index: 1; pointer-events: none; animation: breatheBlob 15s ease-in-out infinite; }
.blob-1 { top: -10%; left: -10%; width: 40vw; height: 40vw; background: rgba(56, 189, 248, 0.2); animation-delay: 0s; }
.blob-2 { bottom: -20%; right: -10%; width: 50vw; height: 50vw; background: rgba(45, 212, 191, 0.15); animation-delay: -7.5s; }

/* ──────────────────────────────────────────────── */
/* NAVIGATION W/ HAMBURGER & ACTIVE GLOW            */
/* ──────────────────────────────────────────────── */
.navbar { position: fixed; top: 0; width: 100%; background: rgba(11, 17, 32, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-size: 1.4rem; font-weight: 800; color: var(--primary); text-decoration: none; text-shadow: 0 0 10px rgba(56,189,248,0.5); z-index: 1002; }

.nav-links { display: flex; gap: 24px; list-style: none; transition: 0.4s ease; }
.nav-links a { color: var(--text-main); text-decoration: none; font-weight: 500; transition: 0.3s; font-size: 1rem; }
.nav-links a:hover { color: var(--primary); text-shadow: 0 0 8px rgba(56,189,248,0.5); }

/* Active State for Scroll Highlighting */
.nav-links a.active { color: var(--primary); text-shadow: 0 0 8px rgba(56,189,248,0.5); font-weight: 700; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1002; }
.hamburger span { width: 30px; height: 3px; background-color: var(--text-main); border-radius: 3px; transition: all 0.3s ease; }
.hamburger:hover span { background-color: var(--primary); box-shadow: 0 0 5px var(--primary); }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background-color: var(--primary); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background-color: var(--primary); }

/* ──────────────────────────────────────────────── */
/* PEAK GLITCH EFFECT (HOVER)                       */
/* ──────────────────────────────────────────────── */
.glitch {
    position: relative;
    display: inline-block;
}

/* Create two invisible copies of the text */
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

/* Activate the copies on hover */
.glitch:hover::before,
.glitch:hover::after {
    opacity: 1;
}

/* Shift the first copy left and color it Sky Blue */
.glitch:hover::before {
    left: 3px;
    text-shadow: -2px 0 var(--primary);
    color: var(--text-main);
    background: rgba(11, 17, 32, 0.8); /* Matches navbar to hide real text underneath */
    animation: glitch-anim-1 0.2s infinite linear alternate-reverse;
}

/* Shift the second copy right and color it Teal */
.glitch:hover::after {
    left: -3px;
    text-shadow: 2px 0 var(--accent);
    color: var(--text-main);
    background: rgba(11, 17, 32, 0.8);
    animation: glitch-anim-2 0.3s infinite linear alternate-reverse;
}

/* Mathematically slice the text randomly */
@keyframes glitch-anim-1 {
    0% { clip-path: inset(20% 0 80% 0); transform: translate(-2px, 1px); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -1px); }
    40% { clip-path: inset(40% 0 50% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(80% 0 5% 0); transform: translate(2px, -2px); }
    80% { clip-path: inset(10% 0 70% 0); transform: translate(-1px, 1px); }
    100% { clip-path: inset(30% 0 50% 0); transform: translate(1px, -1px); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(10% 0 60% 0); transform: translate(2px, -1px); }
    20% { clip-path: inset(30% 0 20% 0); transform: translate(-2px, 1px); }
    40% { clip-path: inset(70% 0 10% 0); transform: translate(2px, 2px); }
    60% { clip-path: inset(20% 0 50% 0); transform: translate(-2px, -2px); }
    80% { clip-path: inset(50% 0 30% 0); transform: translate(1px, 1px); }
    100% { clip-path: inset(5% 0 80% 0); transform: translate(-1px, -1px); }
}


/* HERO SECTION                                     */

.hero { padding-top: 140px; min-height: 100vh; display: flex; align-items: center; }
.hero-container { display: flex; align-items: center; justify-content: space-between; gap: 60px; } 
.hero-text { flex: 1; }
.subtitle { color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 12px; font-size: 1rem; }

.dynamic-role { font-size: 2.8rem; font-weight: 700; color: var(--primary); margin-bottom: 20px; min-height: 60px; text-shadow: 0 0 15px rgba(56, 189, 248, 0.3); }
.cursor { display: inline-block; width: 4px; background-color: var(--primary); animation: blink 0.8s infinite; margin-left: 2px; height: 1em; vertical-align: bottom; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
.gradient-text { background: linear-gradient(to right, var(--text-main) 20%, var(--primary) 40%, var(--accent) 60%, var(--text-main) 80%); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 8s linear infinite; }

.title { font-size: 3rem; line-height: 1.1; font-weight: 800; margin-bottom: 30px; }
.description { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 50px; max-width: 700px; line-height: 1.8; }
.stagger-text span { display: inline-block; opacity: 0; transform: translateY(10px); }

.btn-group { display: flex; gap: 20px; flex-wrap: wrap; }
.btn { padding: 16px 36px; border-radius: 8px; font-weight: 600; font-size: 1.1rem; text-decoration: none; transition: all 0.3s ease; border: 1px solid transparent; text-align: center; cursor: pointer; }
.btn-primary { background: var(--primary); color: #000; box-shadow: var(--shadow-glow); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-3px); box-shadow: var(--shadow-glow-strong); }
.btn-secondary { background: transparent; color: var(--text-main); border-color: var(--primary); }
.btn-secondary:hover { background: rgba(56, 189, 248, 0.1); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.btn-outline { background: transparent; color: var(--text-main); border-color: var(--text-muted); }
.btn-outline:hover { border-color: var(--text-main); color: #fff; box-shadow: var(--shadow-glow); transform: translateY(-3px); }

@keyframes float { 0% { transform: translateY(0px) rotate(2deg); } 50% { transform: translateY(-15px) rotate(0deg); } 100% { transform: translateY(0px) rotate(2deg); } }
.hero-visual { flex: 1; display: flex; justify-content: flex-end; }
.profile-photo-container { width: 100%; max-width: 550px; aspect-ratio: 1/1; border-radius: 20px; box-shadow: 0 0 40px rgba(56, 189, 248, 0.3); overflow: hidden; background: #000; position: relative; padding: 3px; }
.profile-photo-container::before { content: ""; position: absolute; top:-50%; left:-50%; width:200%; height:200%; background: conic-gradient(from 0deg, transparent 70%, var(--primary) 80%, var(--accent) 100%); animation: spin 4s linear infinite; z-index: 0; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.profile-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 17px; position: relative; z-index: 1;}
.floating { animation: float 6s ease-in-out infinite; }

.spotlight-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden; 
}
.spotlight-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(56, 189, 248, 0.15), transparent 40%);
    z-index: 0; opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.spotlight-card:hover::before { opacity: 1; }
.spotlight-content { position: relative; z-index: 1; }

.skills-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.skill-category h3 { font-size: 1.3rem; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { background: rgba(56, 189, 248, 0.05); border: 1px solid var(--border-color); padding: 10px 16px; border-radius: 8px; font-size: 1rem; font-weight: 600; transition: 0.3s; backdrop-filter: blur(5px); }
.badge:hover { transform: translateY(-3px); background: var(--primary); color: #000; box-shadow: var(--shadow-glow); }
.badge-accent { border-color: rgba(45, 212, 191, 0.4); color: var(--accent); }


/* GITHUB STATS SECTION               */

.github-stats-container { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-top: 35px; }
.github-stat-card { flex: 1 1 minmax(300px, 480px); padding: 15px; display: flex; justify-content: center; align-items: center; }
.github-stat-card img { max-width: 100%; height: auto; pointer-events: none; filter: drop-shadow(0 0 10px rgba(16, 124, 16, 0.1)); }


.timeline { position: relative; max-width: 1000px; margin: 0 auto; border-left: 3px solid var(--border-color); padding-left: 40px; }
.timeline-item { position: relative; margin-bottom: 30px; }
.timeline-dot { position: absolute; left: -50px; top: 5px; width: 18px; height: 18px; background: var(--primary); border-radius: 50%; border: 3px solid var(--bg-main); box-shadow: var(--shadow-glow); }
.timeline-content { padding: 32px; border-radius: 12px; backdrop-filter: blur(10px); }
.timeline-content h3 { font-size: 1.4rem; margin-bottom: 8px;}
.timeline-content h4 { font-size: 1.1rem; color: var(--primary); font-weight: 600; margin-bottom: 16px; }

.slider-wrapper { position: relative; display: flex; align-items: center; width: 100%; }
.slider-arrow { position: absolute; z-index: 20; background: rgba(11, 32, 21, 0.8); border: 1px solid var(--primary); color: var(--primary); width: 55px; height: 55px; border-radius: 50%; display: flex; justify-content: center; align-items: center; backdrop-filter: blur(5px); transition: 0.3s; opacity: 0; cursor: pointer; font-size: 1.4rem;}
.slider-wrapper:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: var(--primary); color: #000; box-shadow: var(--shadow-glow); transform: scale(1.1); }
.left-arrow { left: -25px; }
.right-arrow { right: -25px; }

.slider-track { display: flex; gap: 40px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; width: 100%; }
.slider-track::-webkit-scrollbar { display: none; } 
.slider-track.active { scroll-snap-type: none; } 
.slider-item { flex: 0 0 calc(33.333% - 27px); scroll-snap-align: start; user-select: none; }

.portfolio-filter { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-bottom: 50px; }
.filter-btn { background: transparent; border: none; padding: 10px 20px; font-size: 1.1rem; color: var(--text-muted); font-weight: 600; border-bottom: 2px solid transparent; transition: 0.3s; cursor: pointer; }
.filter-btn.active, .filter-btn:hover { color: var(--primary); border-bottom-color: var(--primary); }

.portfolio-card, .service-card, .achievement-card, .cert-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; backdrop-filter: blur(10px); }

.portfolio-card { overflow: hidden; display: flex; flex-direction: column; }
.card-img-wrapper { height: 260px; background: #0B1120; position: relative; overflow: hidden; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; opacity: 0.8;}
.portfolio-card:hover .card-img-wrapper img { transform: scale(1.1); opacity: 1; }
.overlay-indicator { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.7); color: var(--primary); padding: 12px 24px; border-radius: 30px; font-weight: 600; font-size: 1rem; opacity: 0; transition: opacity 0.3s ease; border: 1px solid var(--primary); backdrop-filter: blur(5px); display: flex; gap: 8px; align-items: center; pointer-events: none;}
.interactive-card:hover .overlay-indicator { opacity: 1; }
.card-body { padding: 30px; display: flex; flex-direction: column; flex-grow: 1;}
.card-body h3 { font-size: 1.5rem; margin-bottom: 10px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px;}
.card-tags span { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--primary); font-size: 0.85rem; padding: 6px 12px; border-radius: 4px; font-weight: 600;}
.card-links { display: flex; gap: 15px; margin-top: auto; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; margin-top: 25px;}
.project-link { color: var(--text-muted); text-decoration: none; font-size: 1rem; font-weight: 600; transition: 0.3s; display: flex; align-items: center; gap: 8px; z-index: 10;}
.project-link:hover { color: var(--primary); }


.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease;
    z-index: 2000;
}

.image-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.image-lightbox img {
    max-width: 80%;
    max-height: 85vh;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0,255,255,0.6);
    transform: scale(0.7);
}

.lightbox-close {
    position: absolute;
    top: 40px;
    right: 60px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.service-card { padding: 50px 32px; text-align: center; transition: 0.3s; }
.service-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: var(--shadow-glow-strong); }
.service-icon { font-size: 4rem; color: var(--primary); margin-bottom: 30px; text-shadow: var(--shadow-glow); }
.service-card h3 { font-size: 1.4rem; margin-bottom: 16px; color: var(--text-main); font-weight: 700; }
.service-card p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }

.achievement-card { padding: 40px 30px; text-align: center; display: flex; flex-direction: column; }
.achievement-icon { font-size: 3rem; color: var(--primary); margin-bottom: 24px; text-shadow: var(--shadow-glow); }
.achievement-date { font-size: 1rem; color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.gallery-hint { display: inline-block; margin-top: auto; font-size: 0.9rem; color: var(--primary); opacity: 0.6; transition: 0.3s; padding-top: 20px; }
.achievement-card:hover .gallery-hint { opacity: 1; }

.interactive-card { transition: all 0.4s ease; position: relative; cursor: pointer; }
.interactive-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: var(--shadow-glow-strong); }

.cert-card { overflow: hidden; }
.cert-img { height: 220px; background: #0B1120; border-bottom: 1px solid var(--border-color); pointer-events: none;}
.cert-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.cert-info { padding: 24px; pointer-events: none;}
.cert-issuer { font-size: 1rem; color: var(--primary); font-weight: 600; margin-bottom: 10px; }

.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.freelance-icons, .social-icons { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 30px; }
.icon-link { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; color: var(--text-main); font-size: 1.5rem; text-decoration: none; transition: 0.3s; backdrop-filter: blur(5px); cursor: pointer; }
.icon-link:hover { transform: translateY(-5px); background: var(--primary); color: #000; box-shadow: var(--shadow-glow-strong); }
.freelance-logo { overflow: hidden; }
.freelance-logo img { width: 60%; height: 60%; object-fit: contain; }

/* ──────────────────────────────────────────────── */
/* TEXTAREA LOCK APPLIED HERE                       */
/* ──────────────────────────────────────────────── */
.contact-form { padding: 32px; border-radius: 12px; backdrop-filter: blur(10px); }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 1rem; font-weight: 600; margin-bottom: 10px; color: var(--primary); }
.form-group input, .form-group textarea { width: 100%; padding: 16px; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; font-family: inherit; font-size: 1.1rem; background: rgba(0,0,0,0.2); color: var(--text-main); transition: 0.3s; }

.form-group textarea { resize: vertical; max-height: 400px; min-height: 150px; }

.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--shadow-glow); background: rgba(0,0,0,0.4); }

.footer { text-align: center; padding: 50px 0; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 1rem; }


#scrollTopBtn { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: var(--primary); color: #000; border: none; border-radius: 50%; font-size: 1.5rem; opacity: 0; visibility: hidden; transition: all 0.3s ease; box-shadow: var(--shadow-glow-strong); z-index: 999; display: flex; justify-content: center; align-items: center; cursor: pointer; }
#scrollTopBtn.show { opacity: 1; visibility: visible; }
#scrollTopBtn:hover { transform: translateY(-5px); background: var(--primary-hover); }

.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(5, 8, 16, 0.95); backdrop-filter: blur(10px); align-items: center; justify-content: center; flex-direction: column; opacity: 0; transition: opacity 0.3s ease; }
.modal.show { display: flex; opacity: 1; }
.modal-content { position: relative; max-width: 90%; max-height: 80vh; display: flex; align-items: center; justify-content: center; }
.modal-content img { max-width: 100%; max-height: 80vh; border-radius: 8px; box-shadow: var(--shadow-glow-strong); border: 2px solid var(--primary); pointer-events: none;}
.close-modal { position: absolute; top: 20px; right: 30px; color: var(--text-main); font-size: 50px; font-weight: bold; transition: 0.3s; z-index: 2001; cursor: pointer; }
.close-modal:hover { color: var(--primary); transform: scale(1.1); }
.nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); border: 1px solid var(--primary); color: var(--primary); width: 60px; height: 60px; border-radius: 50%; font-size: 24px; transition: 0.3s; backdrop-filter: blur(5px); z-index: 2005; cursor: pointer;}
.nav-btn:hover { background: var(--primary); color: #000; }
.prev-btn { left: -80px; }
.next-btn { right: -80px; }
.image-counter { position: absolute; bottom: -50px; color: var(--text-main); font-weight: 600; letter-spacing: 2px; font-size: 1.2rem; }

/* ──────────────────────────────────────────────── */
/* RESPONSIVENESS & MOBILE OVERLAY                  */
/* ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .title { font-size: 3.5rem; }
    .slider-item { flex: 0 0 calc(50% - 20px); } 
}

@media (max-width: 950px) {
    .hamburger { display: flex; } 
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 100vw;
        height: 100vh;
        background: rgba(11, 17, 32, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 1001;
        gap: 40px;
    }
    
    .nav-links.active { right: 0; } 
    .nav-links a { font-size: 1.8rem; font-weight: 600; letter-spacing: 2px; }

    .hero-container { flex-direction: column; text-align: center; gap: 40px;}
    .hero-visual { order: -1; justify-content: center; width: 100%; }
    .profile-photo-container { transform: rotate(0); max-width: 400px; }
    .btn-group { justify-content: center; }
    .description { margin: 0 auto 40px; }
    .dynamic-role { font-size: 2.2rem; min-height: 50px; }
    .contact-wrapper { grid-template-columns: 1fr; text-align: center; gap: 50px; }
    .freelance-icons, .social-icons { justify-content: center; }
    .prev-btn { left: 10px; } .next-btn { right: 10px; }
    #scrollTopBtn { bottom: 20px; right: 20px; width: 45px; height: 45px; font-size: 1.2rem;}
    
    .slider-arrow { display: none; } 
    .slider-track { flex-wrap: wrap; justify-content: center; overflow-x: visible; padding-bottom: 0; }
    .slider-item { flex: 0 0 100%; max-width: 500px; } 
}

@media (max-width: 480px) {
    .section { padding: 80px 0; }
    .title { font-size: 2.8rem; }
    .dynamic-role { font-size: 1.8rem;}
    .btn-group { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .profile-photo-container { max-width: 300px; }
    .section-title { font-size: 2.2rem; }
    .contact-form { padding: 24px; }
}

/* CERTIFICATES SECTION FIX */
#certificates .slider-track {
    flex-wrap: wrap;
    justify-content: center !important;
    overflow: visible;
    gap: 40px;
}

#certificates .slider-track {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    overflow: visible;
    justify-content: center;
}

#certificates .slider-item {
    flex: unset !important;
    width: 100%;
    max-width: 100%;

}
