/* ========== BASE VARIABLES & SETUP ========== */
:root {
    --bg-color: #0f172a; /* Slate 900 */
    --text-color: #f8fafc; /* Slate 50 */
    --text-muted: #cbd5e1; /* Slate 300 (lightened for visibility) */
    --primary-color: #3b82f6; /* Blue 500 */
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary-color: #8b5cf6; /* Violet 500 */
    --accent-color: #0ea5e9; /* Sky 500 */

    --glass-bg: rgba(30, 41, 59, 0.7); /* Slate 800 with opacity */
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

/* ========== BACKGROUND SHAPES ========== */
.bg-shape {
    position: fixed;
    filter: blur(100px);
    z-index: -1;
    border-radius: 50%;
    animation: drift 20s infinite alternate linear;
}

.bg-shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-glow);
    top: -100px;
    left: -100px;
}

.bg-shape-2 {
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.4);
    bottom: -200px;
    right: -200px;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

/* ========== UTILITIES ========== */
body .text-muted,
.text-muted {
    color: var(--text-muted) !important;
}

body .text-primary,
.text-primary {
    color: var(--primary-color) !important;
}

.section-spacing {
    padding: 100px 5%;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.08), transparent 40%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card > * {
    position: relative;
    z-index: 2;
}

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

.section-title h2 {
    font-size: 2.5rem;
}

.section-title span {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-glow);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font-heading);
    transition: var(--transition-normal);
}

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

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
}

.btn-small:hover {
    background: var(--primary-color);
}

/* ========== NAVIGATION ========== */
.navbar {
    background: transparent;
    padding: 20px 0;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-decoration: none;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    text-decoration: none;
    color: var(--text-color) !important;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-normal);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
    box-shadow: 0 0 8px var(--primary-glow);
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-header {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-normal);
    z-index: 1050;
    width: 100%;
}

.mobile-menu-btn {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1060;
}

.mobile-menu-btn span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--text-color);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transition: .25s ease-in-out;
}

.mobile-menu-btn span:nth-child(1) { top: 0px; }
.mobile-menu-btn span:nth-child(2) { top: 9px; }
.mobile-menu-btn span:nth-child(3) { top: 18px; }

.mobile-menu-btn.open span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.mobile-menu-btn.open span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1040;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    transform: translateY(-10px);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-link {
    display: block;
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-color);
    margin: 15px 0;
    text-decoration: none;
    transition: var(--transition-fast);
}

.mobile-nav-link:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

/* ========== HERO SECTION ========== */
.greeting {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.name {
    font-size: 4.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.role {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.cursor {
    animation: blink 1s infinite step-end;
    border-bottom: 2px solid var(--primary-color);
}

@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--primary-color); }
}

.description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff !important;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.social-links a:hover i {
    color: #fff !important;
}

.typing-text {
    color: var(--primary-color);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-box {
    position: relative;
    width: 350px;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--glass-border);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.img-box::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    filter: blur(10px);
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease;
}

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

/* ========== ABOUT SECTION ========== */
.about {
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    justify-content: center;
}

.about-text {
    max-width: 800px;
    text-align: center;
}

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

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ========== SKILLS SECTION ========== */
.skill-card {
    text-align: center;
    padding: 40px 20px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(59, 130, 246, 0.4);
}

.skill-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.skill-card h3 {
    font-size: 1.2rem;
    font-family: var(--font-body);
}

/* ========== PROJECTS SECTION ========== */
.project-card {
    padding: 0;
    overflow: hidden;
    transition: transform var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-img {
    height: 200px;
    background: #1e293b;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.project-img span {
    font-size: 1rem;
    margin-top: 10px;
    font-family: var(--font-heading);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

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

.tech-stack {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tech-stack span {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ========== CONTACT SECTION ========== */
.input-group input,
.input-group textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

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

.input-group textarea {
    resize: vertical;
}

.form-control::placeholder {
    color: var(--text-muted) !important;
    opacity: 1 !important;
}

/* ========== FOOTER ========== */
.footer {
    position: relative;
    z-index: 10;
}
.footer p, .footer a {
    transition: var(--transition-fast);
}
.footer a:not(.social-links a):hover {
    color: var(--primary-color) !important;
}

/* ========== TIMELINE & ACHIEVEMENTS ========== */
.timeline-content {
    padding-left: 0;
}

.timeline-title {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.timeline-company {
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.timeline-list {
    list-style-type: disc;
    margin-left: 20px;
    color: var(--text-muted);
    font-size: 1rem;
}

.timeline-list li {
    margin-bottom: 8px;
}

.cert-info {
    padding-top: 25px;
}

.cert-icon {
    color: var(--primary-color);
}

.achievement-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.trophy-icon {
    color: #f59e0b;
}

.achievement-desc {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ========== SCROLL REVEAL ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========== MEDIA QUERIES (RESPONSIVE TYPOGRAPHY) ========== */
@media (max-width: 992px) {
    .section-title h2 { font-size: 2rem; }
    .name { font-size: 3.5rem; }
    .img-box {
        width: 300px;
        height: 380px;
    }
}

@media (max-width: 768px) {
    .name { font-size: 2.8rem; }
    .role { font-size: 1.5rem; }
    .description { font-size: 1.05rem; }
    .section-spacing {
        padding: 60px 15px; /* Re-add inner padding to avoid edge hugging */
    }
    #home {
        padding-top: 100px; /* Distance between navbar and page on phone */
    }
}

@media (max-width: 480px) {
    .name { font-size: 2.5rem; margin-bottom: 5px; }
    .role { font-size: 1.15rem; margin-bottom: 15px; }
    .description { font-size: 1rem; }
    .timeline-title { font-size: 1.3rem; }
    .cert-info h3 { font-size: 1.1rem; }
    .btn { padding: 10px 20px; font-size: 0.9rem; }
    .img-box { width: 220px; height: 280px; }
    .achievement-title { font-size: 1.2rem; text-align: center; }
}
