/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    --bg-dark: #0a0a0c;
    --text-main: #ededed;
    --text-muted: #8a8f98;
    --accent-primary: #5e6ad2;
    --accent-glow: rgba(94, 106, 210, 0.4);
    --accent-glow-intense: rgba(94, 106, 210, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    cursor: default;
    line-height: 1.6;
    user-select: none;
}

/* Ensure interactive elements show the standard pointer */
a,
button,
input,
textarea,
.glass-card {
    cursor: pointer;
}

/* ==========================================================================
   2. TYPOGRAPHY
   ========================================================================== */
h1,
h2,
h3,
h4,
.logo,
.terminal-title,
.gh-username {
    font-family: 'Space Grotesk', sans-serif;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    background: linear-gradient(to right, #fff, #888);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   3. BACKGROUND EFFECTS (Aurora & Particles)
   ========================================================================== */
.aurora-container {
    position: fixed; 
    inset: 0; /* Shorthand for top: 0, right: 0, bottom: 0, left: 0 */
    z-index: -3; /* Keeps it perfectly locked behind your content */
    overflow: hidden;
    filter: blur(150px); /* Massive blur turns shapes into smooth ambient light */
    opacity: 0.75; /* High visibility, but soft enough to read text clearly */
    pointer-events: none; /* Prevents it from interfering with clicks/hovers */
}

.aurora-blob {
    position: absolute; 
    border-radius: 50%;
    /* Smooth, cinematic easing for the animation */
    animation: premiumDrift 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

/* Primary Light: Deep AI Indigo */
.blob-1 { 
    width: 65vw; 
    height: 65vh; 
    background: #312E81; 
    top: -10%; 
    left: -10%; 
}

/* Secondary Light: Crisp Tech Cyan */
.blob-2 { 
    width: 55vw; 
    height: 55vh; 
    background: #8B5CF6; 
    bottom: -15%; 
    right: -10%; 
    animation-delay: -5s; /* Offsets the animation so they move independently */
    animation-duration: 25s;
}

/* Subtle, expensive-feeling movement that doesn't stretch the screen */
@keyframes premiumDrift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5vw, 5vh) scale(1.1); }
    100% { transform: translate(-3vw, 8vh) scale(0.95); }
}

#particles-js {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   4. LAYOUT & GLASSMORPHISM
   ========================================================================== */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-pad {
    padding: 8rem 0;
}

.glass-card,
.glass-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* Safari support */
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.2s cubic-bezier(0.2, 1, 0.3, 1);
    position: relative;
}

/* ==========================================================================
   5. NAVIGATION
   ========================================================================== */
.glass-nav {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 100;
    border-radius: 100px;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-cta {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */
/* ==========================================================================
   6. PREMIUM SPLIT HERO SECTION
   ========================================================================== */

   
    .hero-text { 
        text-align: center; 
    }
    .hero-desc { 
        margin: 0 auto 2.5rem; 
    }
    .hero-actions { 
        justify-content: center; 
    }
    .floating-badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
        /* Disable the float animation on mobile so it stays centered */
        animation: none; 
    }
.hero {
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; /* Stacks children vertically */
    padding-top: 6rem; /* Account for the fixed nav bar */
    margin-top: 1.6rem;
}

.hero-content {
    flex-grow: 1; /* Forces this container to take up all available vertical space */
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-content: center; /* Centers the text and image perfectly in the available space */
    gap: 4rem;
    align-items: center;
    width: 100%;
}

/* Left Column: Text Styling */
.hero-text {
    text-align: left;
    align-items: flex-start;
}

.hero-greeting { 
    color: var(--accent-primary); 
    font-family: 'Space Grotesk'; 
    letter-spacing: 2px; 
    margin-bottom: 1rem; 
    text-transform: uppercase; 
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-title { 
    font-size: clamp(3rem, 5vw, 4.5rem); 
    line-height: 1.1; 
    margin-bottom: 1.5rem; 
}

.gradient-text { 
    background: linear-gradient(90deg, #fff, var(--accent-primary)); 
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc { 
    color: var(--text-muted); 
    font-size: 1.15rem; 
    line-height: 1.7; 
    margin: 0 0 2.5rem 0;
    max-width: 90%;
}

.hero-actions { 
    display: flex; 
    gap: 1.5rem; /* Increased the gap slightly for a premium, breathable look */
    flex-wrap: wrap; 
    justify-content: flex-start; /* Ensures buttons align strictly to the left */
    width: 100%;
}

/* Right Column: Premium Image Styling */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
}

/* The Animated Aurora Glow behind the image */
.image-glow {
    position: absolute;
    inset: -15px;
    background: linear-gradient(45deg, var(--accent-primary), #61afef, #c678dd);
    filter: blur(40px);
    opacity: 0.3;
    border-radius: 30px;
    animation: pulseGlow 4s ease-in-out infinite alternate;
    z-index: 0;
}

/* The Profile Image */
.profile-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 24px;
    position: relative;
    z-index: 2;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    /* Desaturated slightly by default for a cinematic look */
    filter: grayscale(20%) contrast(105%);
    transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1), filter 0.5s ease;
}

.image-wrapper:hover .profile-image {
    transform: translateY(-10px) scale(1.02);
    /* Full vibrant color on hover */
    filter: grayscale(0%) contrast(100%);
    border-color: rgba(255, 255, 255, 0.2);
}

.image-wrapper:hover .image-glow {
    opacity: 0.6;
}

/* The SaaS-Style Floating Badge */
.floating-badge {
    position: absolute;
    bottom: 30px;
    left: -30px;
    z-index: 3;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: floatBadge 6s ease-in-out infinite;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #27c93f; /* Terminal green */
    border-radius: 50%;
    box-shadow: 0 0 10px #27c93f;
    animation: blink 2s infinite;
}

/* Hero Keyframes */
@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.05); opacity: 0.5; }
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-dark);
}

.btn-primary:hover {
    box-shadow: 0 0 30px var(--accent-glow-intense);
    transform: scale(1.03) translateY(-2px);
}

.btn-secondary {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    transform: translateY(-2px);
}

/* Scroll Indicator */
.scroll-indicator {
    /* Notice: position: absolute is GONE */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    opacity: 0; 
    animation: fadeIn 1s ease-out 2.5s forwards; 
    padding-bottom: 2.5rem; /* Creates the breathing room at the bottom of the screen */
    margin-top: 2rem; /* Creates a guaranteed buffer between your image/buttons and the indicator */
}

.scroll-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    font-family: 'Space Grotesk';
}

.mouse {
    width: 26px;
    height: 42px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 0 10px rgba(255, 255, 255, 0.03);
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 4px;
    margin-top: 6px;
    box-shadow: 0 0 10px var(--accent-glow);
    animation: scrollWheel 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}

/* ==========================================================================
   7. TIMELINE & ABOUT
   ========================================================================== */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-left: 2px solid var(--glass-border);
    padding-left: 2rem;
    margin-left: 1rem;
}

.timeline-item {
    padding: 1.5rem;
    position: relative;
}

.timeline-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 2rem;
    width: 12px;
    height: 12px;
    background: var(--text-muted);
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
    transition: background 0.3s;
}

.timeline-item:hover::before {
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

.highlight-card {
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(94, 106, 210, 0.1);
}

.highlight-card::before {
    background: var(--accent-primary);
}

.date {
    font-size: 0.8rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk';
}

/* ==========================================================================
   8. TECH STACK
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    padding: 2rem;
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tags span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid var(--glass-border);
    transition: all 0.2s;
}

.skill-tags span:hover {
    background: rgba(94, 106, 210, 0.15);
    border-color: var(--accent-primary);
}

.skills-grid .ai-glow:hover {
    box-shadow: 0 0 50px rgba(94, 106, 210, 0.3);
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-primary);
}

/* ==========================================================================
   9. PROJECTS
   ========================================================================== */
.project-card {
    display: flex;
    gap: 3rem;
    padding: 2.5rem;
    margin-bottom: 3rem;
    align-items: center;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.project-card.reverse {
    flex-direction: row-reverse;
}

.project-info {
    flex: 1;
}

.project-image {
    flex: 1;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    width: 100%;
}

.project-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    display: inline-block;
    font-weight: 600;
}

.project-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

.project-tech {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    font-family: 'Space Grotesk';
    font-size: 0.9rem;
    color: #aaa;
    flex-wrap: wrap;
}

.project-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-right: 1.5rem;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.project-links a:hover {
    color: var(--accent-primary);
}

/* ==========================================================================
   10. CERTIFICATIONS & GITHUB DASHBOARD
   ========================================================================== */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.cert-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.cert-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cert-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* GitHub specific styles */
.github-dashboard {
    display: flex;
    flex-direction: column;
}

.gh-profile {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.gh-profile:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.gh-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.gh-username {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1.2rem;
}

.gh-username:hover {
    color: var(--accent-primary);
}

.gh-stats {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    gap: 1rem;
}

.gh-stats strong {
    color: var(--text-main);
}

.gh-activity-feed {
    padding: 1.5rem;
    max-height: 10.5rem;
    display: flex;
    flex-direction: column;
}

.feed-header {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #27c93f;
    border-radius: 50%;
    box-shadow: 0 0 8px #27c93f;
    animation: blink 2s infinite;
}

.activity-list {
    list-style: none;
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-list::-webkit-scrollbar {
    width: 4px;
}

.activity-list::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

.activity-item {
    font-size: 0.85rem;
    color: #a9b7c6;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-icon {
    color: var(--accent-primary);
    font-size: 1rem;
    margin-top: 0.2rem;
}

.repo-name {
    color: #61afef;
    font-weight: 500;
}

.commit-msg {
    color: #98c379;
}

/* ==========================================================================
   11. TERMINAL, AI VISION & CONTACT
   ========================================================================== */
.ai-vision .vision-text {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
    text-align: center;
}

.terminal-window {
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
}

.terminal-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.terminal-title {
    margin-left: auto;
    margin-right: auto;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.terminal-body {
    padding: 1.5rem 1.5rem 0.5rem;
    color: #a9b7c6;
    height: 200px;
    overflow-y: auto;
}

.terminal-input-line {
    display: flex;
    padding: 0 1.5rem 1.5rem;
    gap: 0.5rem;
}

.prompt {
    color: #98c379;
}

#term-input {
    background: transparent;
    border: none;
    color: #e5c07b;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    outline: none;
}

.cmd-highlight {
    color: #61afef;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-card {
    padding: 1rem 2rem;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.social-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px var(--accent-glow);
    border-color: var(--accent-primary);
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

/* Animations */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(16px);
        opacity: 0;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}


/* ==========================================================================
   12. RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */

/* Tablets (Max-width: 1024px) */
@media (max-width: 1024px) {
    .content-container {
        padding: 0 1.5rem;
    }

    .section-pad {
        padding: 6rem 0;
    }

    .project-card {
        gap: 2rem;
        padding: 2rem;
    }

    .split-grid {
        gap: 2rem;
    }
}

/* Mobile Phones (Max-width: 768px) */
@media (max-width: 768px) {
    .section-pad {
        padding: 4rem 0;
    }

    /* Navigation: Hide links on mobile, keep logo */
    .glass-nav {
        width: 95%;
        padding: 0.8rem 1.5rem;
        border-radius: 12px;
    }

    .nav-links {
        display: none;
    }

    /* Hero: Adjust spacing and button layout */
    .hero-desc {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        margin: 0;
        justify-content: center;
        width: 100%;
    }

    /* Projects: Stack image and text */
    .project-card,
    .project-card.reverse {
        flex-direction: column-reverse;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .project-image {
        min-height: 250px;
    }

    /* Split Grid: Stack Certifications and GitHub Dashboard */
    .split-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Timeline: Reduce padding */
    .timeline {
        padding-left: 1.5rem;
        margin-left: 0.5rem;
    }

    .timeline-item::before {
        left: -2.1rem;
    }

    /* Social Cards */
    .social-links {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Terminal */
    .terminal-body {
        height: 250px;
    }
}

.mobile-only { display: none; }
.desktop-only { display: block; }

/* Small Mobile Phones (Max-width: 480px) */
@media (max-width: 480px) {
    .project-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-only { display: block; }
  .desktop-only { display: none; }
    .glass-nav{
        position:relative;
        margin-bottom: 0;
    }

    .hero{
        margin-top: 0;
    }

    .logo{
        content: "Welcome to Our Desktop Site";
    }

    .project-links a {
        margin-right: 0;
    }

    .gh-profile {
        flex-direction: column;
        text-align: center;
    }

    .gh-stats {
        justify-content: center;
    }
}


/* ==========================================================================
   12. ULTIMATE RESPONSIVE ARCHITECTURE
   ========================================================================== */

/* --------------------------------------------------------------------------
   A. Ultra-Wide Monitors (1440px and up)
   -------------------------------------------------------------------------- */
@media (min-width: 1440px) {
    .content-container {
        max-width: 1400px; /* Let the content breathe on massive screens */
    }
    .hero-title {
        font-size: 5.5rem; /* Scale up the hero text slightly */
    }
    .project-image {
        min-height: 450px; /* Make images more cinematic */
    }
}

/* --------------------------------------------------------------------------
   B. Laptops & Landscape Tablets (Max-width: 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .content-container { 
        padding: 0 2rem; 
    }
    .section-pad { 
        padding: 6rem 0; 
    }
    
    /* Shrink gaps and padding to fit medium screens */
    .hero-content {
        gap: 2rem;
    }
    .project-card, .project-card.reverse { 
        gap: 2rem; 
        padding: 2rem; 
    }
    .split-grid { 
        gap: 2rem; 
    }
    
    /* Adjust terminal size */
    .terminal-body {
        height: 250px;
    }
}

/* --------------------------------------------------------------------------
   C. Portrait Tablets & Large Phones (Max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .section-pad { 
        padding: 4rem 0; 
    }
    
    /* Navigation: Convert to mobile pill */
    .glass-nav { 
        width: 95%; 
        padding: 0.8rem 1.5rem; 
        border-radius: 12px; 
    }
    .nav-links { 
        display: none; /* Hide standard links */
    }
    
    /* Hero: Stack text on top of the image */
    .hero-content { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 3rem;
    }
    .hero-text { 
        text-align: center; 
    }
    .hero-desc { 
        margin: 0 auto 2.5rem; 
    }
    .hero-actions { 
        justify-content: center; 
    }
    .floating-badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
        animation: none; /* Disable float animation so it stays centered */
    }
    
    /* Projects: Stack image on top, text on bottom */
    .project-card, .project-card.reverse { 
        flex-direction: column-reverse; 
        padding: 1.5rem; 
        gap: 1.5rem; 
    }
    .project-image { 
        min-height: 280px; 
    }
    
    /* Split Grid: Stack Certifications and GitHub Dashboard */
    .split-grid { 
        grid-template-columns: 1fr; 
        gap: 3rem; 
    }
    
    /* Timeline: Compact the timeline for mobile */
    .timeline { 
        padding-left: 1.5rem; 
        margin-left: 0.5rem; 
    }
    .timeline-item::before { 
        left: -2.1rem; 
    }
}

/* --------------------------------------------------------------------------
   D. Small Mobile Phones (Max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    /* Hero Adjustments */
    .hero-actions { 
        flex-direction: column; 
        width: 100%; 
    }
    .btn { 
        width: 100%; 
        justify-content: center; 
        margin: 0;
    }
    .hero-title {
        font-size: 2.5rem;
    }

    /* Skills: Let tags wrap tighter */
    .skill-category {
        padding: 1.5rem;
    }
    .skill-tags {
        gap: 0.5rem;
    }

    /* Projects */
    .project-links { 
        display: flex; 
        flex-direction: column; 
        gap: 1rem; 
    }
    .project-links a { 
        margin-right: 0; 
    }

    /* GitHub Dashboard */
    .gh-profile { 
        flex-direction: column; 
        text-align: center; 
    }
    .gh-stats { 
        justify-content: center; 
    }

    /* Footer / Socials */
    .social-links { 
        flex-direction: column; 
        width: 100%; 
    }
}

/* --------------------------------------------------------------------------
   E. Touch Device Optimization (The "SaaS Pro" Secret)
   -------------------------------------------------------------------------- */
/* On iOS and Android, hover effects "stick" after you tap them. 
   This media query disables hover transformations on touch devices,
   ensuring the UI doesn't look broken or stuck after a user taps a card.
*/
@media (hover: none) and (pointer: coarse) {
    .glass-card:hover,
    .project-card:hover,
    .social-card:hover,
    .btn-primary:hover,
    .skill-category:hover,
    .image-wrapper:hover .profile-image {
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* Keep the image colorful on mobile since they can't hover */
    .profile-image {
        filter: grayscale(0%) contrast(100%);
    }
    .image-glow {
        opacity: 0.5;
    }
}