/* --- VARIABLES --- */
:root {
    --bg-main: #050505;
    --bg-card: #0f0f0f;
    --border-color: #262626;
    --text-primary: #ededed;
    --text-secondary: #a1a1a1;
    --accent: #2563eb; /* Professional Blue */
    --accent-glow: rgba(37, 99, 235, 0.15);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

/* --- RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    outline: none;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- PRELOADER --- */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-main);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.loader-line {
    width: 150px;
    height: 2px;
    background: var(--border-color);
    position: relative;
    overflow: hidden;
}
.loader-line::after {
    content: '';
    position: absolute;
    width: 50%; height: 100%;
    background: var(--text-primary);
    animation: loading 1s infinite ease-in-out;
}
@keyframes loading {
    0% { left: -50%; }
    100% { left: 100%; }
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -1px;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
    transition: var(--transition);
}

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

.nav-btn {
    background: var(--text-primary);
    color: var(--bg-main) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600 !important;
}

.nav-btn:hover {
    background: #d4d4d4;
}

.menu-toggle { display: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* --- HERO SECTION --- */
.hero {
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 2rem 2rem;
    position: relative;
}

.hero-content { flex: 1; max-width: 600px; }

.badge {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    background: rgba(37, 99, 235, 0.05);
}

.hero h2{
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1.2;
    letter-spacing: 2px;
    word-spacing: 5px;
    /* margin-bottom: 1.0rem; */
    background: #999;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}



/* 2. The Shine Effect */
.shine-pro {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 4rem;
  letter-spacing: -0.02em; /* Tighter tracking looks more modern */
  
  /* The "Shine" Magic */
  background: linear-gradient(
    75deg, 
    #999 45%,   /* Base Color: Muted Slate Blue/Grey */
    #ffffff 50%,      /* The Center Shine (Bright White) */
    #999 55%    /* Base Color: Muted Slate Blue/Grey */
  );
  
  /* Size must be larger than 100% to allow movement */
  background-size: 200% auto;
  
  /* Clip background to text */
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  
  /* Animation */
  animation: shine-left-to-right 6s linear infinite;
}

@keyframes shine-left-to-right {
  0% {
    /* 0% is the far left edge of the gradient (Text looks normal/dark) */
    background-position: 200% center;
  }
  100% {
    /* 200% pushes the gradient completely across to the right */
    background-position: -200% center;
  }
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 450px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* BUTTONS */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
}

.btn.primary {
    background: var(--text-primary);
    color: var(--bg-main);
    border: 1px solid var(--text-primary);
}
.btn.primary:hover {
    background: transparent;
    color: var(--text-primary);
}

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

.socials { display: flex; gap: 1.5rem; }
.socials a { color: var(--text-secondary); font-size: 1.4rem; transition: var(--transition); }
.socials a:hover { color: var(--text-primary); transform: translateY(-2px); }



.hero-image img {
    max-width: 400px;
    height: auto;
    filter: grayscale(100%); /* Keeps it clean and classy */
    transition: var(--transition);
    /* mask-image: linear-gradient(to bottom, black 80%, transparent 100%); */
    /* clip-path: inset(0 0 20% 0); */
    clip-path: circle(50% at 50% 50%);
}
.hero-image img:hover { filter: grayscale(0%); }

/* arrow button */

/* --- Center the button area --- */
.section-action-row {
    display: flex;
    justify-content: flex-end;
    /* padding-left: 2rem; */
    /* margin: 2rem;  */
}

/* --- The Rounded Button --- */
.btn-scroll-down {
    position: absolute;
    bottom: 3rem; /* Distance from bottom edge of section */
    right: 3rem;  /* Distance from right edge of section */
    z-index: 10; 

    display: flex;
    align-items: center;
    justify-content: center;
    
    width: 45px;
    height: 45px;
    
    border-radius: 50%; /* Makes it a perfect circle */
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.25rem;
    text-decoration: none;
    
    /* Clean Shadow/Transition */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    animation: bounce-slow 3s ease-in-out infinite;
    
    /* Hardware acceleration for smoothness */
    will-change: transform;
}

/* --- Hover Effect: Scale & Color --- */
.btn-scroll-down:hover {
    background-color: var(--bg-card); /* Fills with your primary color */
    color: #fff; /* White icon */
    border-color: var(--bg-card);
    transform: translateY(4px); /* Moves DOWN slightly to hint at scrolling */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    animation-play-state: paused;
}

@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px); /* Moves up 10px */
    }
}

/* --- Active/Click State --- */
.btn-scroll-down:active {
    transform: translateY(6px) scale(0.95);
}

/* --- TECH STRIP --- */
/* --- TECH SCROLLER --- */
/* 1. Container: Hides the overflow */

.tech-strip {
    width: 100%;             /* Occupy full width of the parent */
    max-width: 100%;         /* Remove the 800px limit */
    overflow: hidden;        /* Hide scrollbars */
    position: relative;
    padding: 5rem 0;         /* Add some spacing top/bottom */
    
    /* Optional: Fade edges so icons disappear smoothly */
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* Track: The moving part */
.tech-track {
    display: flex;
    width: max-content;      /* Ensure it fits all icons in one line */
    gap: 4rem;               /* Increase gap for better spacing */
    animation: scroll 30s linear infinite; /* Adjusted speed */
}

/* Icon Styling (Keep this consistent) */
.icon-group svg, 
.icon-group i {
    display: block;
    width: 60px;
    height: 60px;
    font-size: 60px;
    line-height: 60px; /* Lock the vertical height */
    text-align: center;
    color: #888;
    
    transition: transform 0.2s ease-out, color 0.2s ease-out;
    
    /* Crisp Rendering Hacks */
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
}

/* 3. Brand Specific Hover Colors */

/* Java - Orange/Red */
.icon-group[title="Java"]:hover i {
    color: #336791;
    
}

/* Spring Boot - Green */
.icon-group[title="Spring Boot"]:hover svg {
    color: #6db33f;
    
}

/* Angular - Red */
.icon-group[title="Angular"]:hover i {
    color: #dd0031;
    
}

/* Tailwind - Teal */
.icon-group[title="Tailwind CSS"]:hover svg {
    color: #38b2ac;
    
}

/* Python - Blue/Yellow */
.icon-group[title="Python"]:hover i {
    color: #e7b409;
    
}

/* PostgreSQL - Elephant Blue */
.icon-group[title="PostgreSQL"]:hover svg {
    color: #336791;
    
}

/* Git - Orange */
.icon-group[title="Git"]:hover i {
    color: #f05032;
    
}

/* GitHub - White */
.icon-group[title="GitHub"]:hover i {
    color: purple;
    
}

/* Docker - Blue */
.icon-group[title="Docker"]:hover i {
    color: #2496ed;
    
}

/* Kubernetes - Blue */
.icon-group[title="Kubernetes"]:hover svg {
    color: #326ce5;
    
}

/* Jenkins - Red */
.icon-group[title="Jenkins"]:hover i {
    color: #d24939;
    
}

.tech-strip:hover .tech-track {
    animation-play-state: paused !important; /* !important forces the override */
    cursor: pointer;
}

.icon-group:hover svg,
.icon-group:hover i {
    
    transform: scale(1.2) translateZ(0);   /* Slight pop effect on hover */
}

/* The Animation Logic */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move left by 50% (because we duplicated the items in JS) */
        transform: translateX(-50%);
    }
}

/* --- SECTIONS GENERAL --- */
.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-header { margin-bottom: 4rem; }
.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}
.section-header p { color: var(--text-secondary); }

/* --- ABOUT GRID --- */
/* Container & Spacing */
.about-section {
    padding: 5rem 1rem;

}

.container {
    max-width: 1100px;
    margin: 0 auto;
}


.subsection-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-left: 4px solid #999; /* Blue accent line */
    padding-left: 1rem;
    color: #fff;
}

/* --- ZONE 1: EXPERTISE GRID --- */
.expertise-area {
    margin-bottom: 4rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive Grid */
    gap: 2rem;
}

.tech-card {
    background: var(--bg-card); /* Slightly lighter card bg */
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}


/* Icons */
.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.icon-box.frontend { background: #050505; color: #999; } /* Blue */
.icon-box.backend  { background: #050505; color: #999; } /* Green */
.icon-box.tools    { background: #050505; color: #999 } /* Orange */

.tech-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.tech-card p {
    color: #999;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* --- ZONE 2: EXPERIENCE TIMELINE --- */

.timeline-container{
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    padding-right: 1rem;
    border: 1px solid var(--border-color);
}

.timeline-track {
    
    
    max-height: 400px;       
    overflow-y: auto;        /* Enables vertical scrolling */
    scroll-behavior: smooth;
}

.timeline-body {
    position: relative;      /* The line sticks to THIS now */
    padding-left: 0;
        
}



/* 2. Custom Scrollbar (Webkit browsers like Chrome/Edge/Safari) */
.timeline-track::-webkit-scrollbar {
    width: 6px;              /* Thin, elegant scrollbar */
}

.timeline-track::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5); /* Track blends with background */
    border-radius: 4px;
}

.timeline-track::-webkit-scrollbar-thumb {
    background: #475569;     /* Handle color (Slate Grey) */
    border-radius: 4px;
}

.timeline-track::-webkit-scrollbar-thumb:hover {
    background: #64748b;     /* Lighten handle on hover */
}

.timeline-item {
    position: relative;
    padding-left: 60px;      /* Space for Dot & Line */
    padding-bottom: 0;       /* Reset padding */
    margin-bottom: 0;        /* Remove margin so lines connect */
    min-height: 80px; /* Space between jobs */
}

.timeline-item::before {
    content: '';
    display: block;          /* Forces it to exist */
    position: absolute;
    left: 20px;              /* Exact horizontal alignment */
    
    width: 2px;
    background-color: #999;
    
    /* STRETCH: Top to Bottom of the item */
    top: 0;
    bottom: 0;
    
    z-index: 1;              /* Behind the dot */
}
.timeline-item:last-child::before {
    bottom: auto; /* Unset bottom */
    height: 15px;           /* Stops the line from hanging at the end */
}

/* 6. Remove bottom padding from last item */
.timeline-item:last-child {
    padding-bottom: 0;
}


/* The "Dot" on the line */
.timeline-dot {
    position: absolute;
    left: 13px;              /* Centered on line (20px - 7px) */
    top: 5px;                /* Fixed vertical position */
    
    width: 16px;
    height: 16px;
    
    background-color: #999;
    border: 3px solid #2f3031; 
    border-radius: 50%;
    
    z-index: 5;              /* Highest priority */
    box-shadow: 0 0 0 1px #334155;
    transition: all 0.3s ease;
}

/* Typography */
.timeline-date {
    font-size: 0.85rem;
    color: #999; /* Muted text for date */
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.timeline-content {
    padding-bottom: 2.5rem; /* This creates the gap between jobs */
}

.timeline-content h4 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    transition: color 0.3s ease;
}

.company-name {
    display: inline-block;
    color: #3b82f6; /* Professional Blue */
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.timeline-content p {
    color: #999; /* Readable grey */
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* 1. Force remove padding from the last item's content wrapper */
.timeline-item:last-of-type .timeline-content {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* 2. Force remove margin from the last paragraph */
.timeline-item:last-of-type .timeline-content p {
    margin-bottom: 0 !important;
}

/* 3. Ensure the item itself has no extra space */
.timeline-item:last-of-type {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* --- Hover Effects --- */

/* 1. Light up the dot */
.timeline-item:hover .timeline-dot {
   
    transform: scale(1.2); /* Slight pop */
}

/* 2. Light up the job title */
.timeline-item:hover .timeline-content h4 {
    color: #999;
}

/* --- BUTTON --- */
.action-area {
    margin-top: 3rem;
    text-align: center;
}

.resume-btn {
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
    background: var(--text-primary);
    color: var(--bg-main);
    border: 1px solid var(--text-primary);
}

.resume-btn:hover {
    background: transparent;
    color: var(--text-primary);
}

/* --- PROJECTS --- */
/* --- Section Layout --- */
.section-work {
    background-color: var(--bg-main);
    padding: 6rem 1.5rem;
    font-family: var(--font-body);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* --- Typography & Header --- */
.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
}

/* --- Grid System --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* --- Card Styling --- */
.project-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;

    /* SPEED FIX 1: Don't use 'all'. Only animate movement. */
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    
    /* SPEED FIX 2: Tell browser to put this on its own GPU layer */
    will-change: transform;
    transform: translateZ(0); 
}

/* The "Lift" Effect */
.project-card:hover {
    /* reduced movement slightly for a tighter feel */
    transform: translateY(-4px); 
    /* Simpler shadow calculation */
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    /* border-color: var(--accent); */
}

/* --- Image Area (Optimized) --- */
.card-image {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-main);
    mask-image: radial-gradient(white, black);
    /* Fix for Safari/Chrome flickering during scale */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    /* SPEED FIX 3: Independent timing for image. slightly slower than card for parallax */
    transition: transform 0.3s ease-out; 
    will-change: transform;
    
    /* Anti-aliasing fix */
    backface-visibility: hidden;
}

.project-card:hover .card-image img {
    transform: scale(1.03);
}

/* --- Content Area --- */
.card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Header Row (Title + Icon) */
.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-header-row h3 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.project-link {
    color: #999;
    font-size: 1.1rem;
    transition: var(--transition);
}


.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* --- Minimalist Tags --- */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags span {
    font-size: 0.75rem;
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--text-secondary);
    background-color: rgba(125, 125, 125, 0.1); 
    border: none;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    
    /* Only animate color/bg, keep it fast */
    transition: background-color 0.15s ease, color 0.15s ease;
}

.project-card:hover .tags span {
    color: #fff;
}

/* --- CONTACT --- */
/* --- Container: Softer & More Spacious --- */
.contact-container {
    display: flex;
    gap: 5rem; /* Increased gap for better separation */
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem; /* More whitespace inside the card */
    border-radius: 24px; /* Modern, approachable curve */
    align-items: flex-start; /* Aligns text and form nicely at the top */
    
    /* Optional: very subtle shadow to lift it off the page */
    box-shadow: 0 4px 24px -6px rgba(0, 0, 0, 0.04);
}

/* --- Left Side (Text) --- */
.contact-text { 
    flex: 1; 
    padding-top: 0.5rem; 
}

.contact-text h2 { 
    font-family: var(--font-heading); 
    font-size: 2.25rem; /* Slightly larger for hierarchy */
    font-weight: 600;
    /* margin-bottom: 0.75rem;  */
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.contact-text p {
    line-height: 1.6;
    color: var(--text-secondary);
}

/* --- Details --- */
.contact-details { 
    margin-top: 2.5rem; 
}

.detail-item { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    margin-bottom: 1.25rem; 
    color: var(--text-secondary); 
    font-size: 1.05rem;
}

.detail-item i {
    color: #999; /* Highlights the icon */
    font-size: 1.2rem;
}

.detail-item a { 
    color: var(--text-secondary); 
    text-decoration: none; /* Removed underline for cleanliness */
    transition: color 0.2s ease; 
}

.detail-item a:hover { 
    color: #fff; /* Color change instead of underline */
}

.fname h2{
    font-size: 4.8rem;
    /* line-height: 1.0; */
    letter-spacing: 5px;
    
    
}
/* --- Right Side (Form) --- */
.clean-form { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem; 
}

.form-group { 
    display: flex; 
    flex-direction: column; 
    gap: 0.5rem; 
}

.form-group label { 
    font-size: 0.85rem; 
    font-weight: 500;
    color: var(--text-secondary); 
    margin-left: 2px; /* Aligns visually with the input curvature */
}

.form-group input, 
.form-group textarea {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem; /* Generous padding feels premium */
    color: var(--text-primary);
    border-radius: 12px; /* Softer inputs */
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none; /* Remove default browser blue outline */
    
    /* Smooth focus transition */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* The "Clean" Focus State */
.form-group input:focus, 
.form-group textarea:focus { 
    border-color: #fff; 
    
    background: var(--bg-card); /* Optional: slight lighten on focus */
}

.full-width { 
    width: 100%; 
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
}

/* arrow button */

/* --- Center the button area --- */
.section-action-row {
    display: flex;
    justify-content: flex-end;
    padding-left: 2rem;
    margin: 2rem;
}

/* --- The Rounded Button --- */
.btn-scroll-up {
    display: flex;
    align-items: center;
    justify-content: center;
    
    width: 45px;
    height: 45px;
    
    border-radius: 50%; /* Makes it a perfect circle */
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.25rem;
    text-decoration: none;
    
    /* Clean Shadow/Transition */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    animation: bounce-slow 3s ease-in-out infinite;
    
    /* Hardware acceleration for smoothness */
    will-change: transform;
}

/* --- Hover Effect: Scale & Color --- */
.btn-scroll-up:hover {
    background-color: var(--bg-card); /* Fills with your primary color */
    color: #fff; /* White icon */
    border-color: var(--bg-card);
    transform: translateY(4px); /* Moves DOWN slightly to hint at scrolling */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    animation-play-state: paused;
}

@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px); /* Moves up 10px */
    }
}

/* --- Active/Click State --- */
.btn-scroll-up:active {
    transform: translateY(6px) scale(0.95);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =================================================================
   PROFESSIONAL RESPONSIVE OVERRIDES (Mobile & Tablet)
   ================================================================= */

/* =================================================================
   PROFESSIONAL RESPONSIVE OVERRIDES (Add to bottom of CSS)
   ================================================================= */

/* --- RESPONSIVE --- */

@media (max-width: 1279px) {
    :root {
        --max-width: 1000px;
    }

    .nav-container {
        padding: 1rem 1.5rem;
    }

    .hero {
        padding: 5rem 1.5rem 2rem;
    }
}

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    :root {
        --max-width: 900px;
    }

    .nav-container {
        padding: 0.875rem 1.25rem;
    }

    .nav-links {
        gap: 1.25rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .hero {
        padding: 5rem 1.25rem 2rem;
        gap: 2.5rem;
    }

    .shine-pro {
        font-size: 3.5rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-btns {
        margin-bottom: 2.5rem;
    }

    .hero-image img {
        max-width: 350px;
    }

    .section {
        padding: 4.5rem 1.25rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }

    .contact-container {
        gap: 3.5rem;
    }
}

/* Mobile Landscape & Small Tablets (601px - 767px) */
@media (max-width: 767px) {
    .nav-container {
        padding: 0.875rem 1rem;
    }

    .menu-toggle { display: block; z-index: 1002; }
    
    .nav-links {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: rgba(5, 5, 5, 0.98); /* Solid dark bg */
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transform: translateY(-100%); /* Hidden top */
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        border-bottom: none;
    }
    
    /* JS Toggles this class */
    .nav-links.active { transform: translateY(0); }
    
    .nav-links a { font-size: 1.5rem; font-weight: 600; color: #fff; }

    .nav-links a:last-child {
        border-bottom: none;
    }
    
    

    .hero {
        flex-direction: column;
        display: flex;
        text-align: center;
        padding: 6rem 1rem 1rem;
        gap: 0 !important;
        min-height: auto;
        justify-content: flex-start;
        align-items: center;
    }

    .hero-content {
        order: 2;
        margin-top: 0 !important;
        max-width: 100%;
    }



    .badge {
        margin-bottom: 1.25rem;
    }

    .shine-pro {
        font-size: 3rem;
        margin-bottom: 1.25rem;
    }

    .hero p {
        margin: 0 auto 2rem;
        max-width: 500px;
    }

    .hero-btns {
        justify-content: center;
        margin-bottom: 2rem;
    }

    .socials {
        justify-content: center;
    }

    .hero-image {
        order: -1;
        width: 100%;
        display: flex;
        justify-content: center;
        
    }

    .hero-image img {
        max-width: min(320px, 85vw);
    }

    .btn-scroll-down {
        bottom: 2rem;
        right: 1.5rem;
    }

    .tech-strip {
        /* padding: 6rem 0; */
        margin-top: 5rem;
    }

    .tech-track {
        gap: 3rem;
    }

    .section {
        padding: 4rem 1rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tech-card {
        padding: 1.75rem;
    }

    .timeline-container {
        padding: 2rem 1.5rem;
    }

    .timeline-item {
        padding-left: 50px;
        min-height: 70px;
    }

    .timeline-track {
        max-height: 350px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .card-image {
        height: 200px;
    }

    .contact-container {
        flex-direction: column;
        gap: 2.5rem;
        padding: 2rem 1.5rem;
    }

    .fname h2 {
        font-size: 4rem;
    }

    .btn-scroll-up {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* Mobile Portrait (up to 600px) */
@media (max-width: 600px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .hero {
        padding: 5.5rem 1rem 2.5rem;
    }

    .hero h2 {
        font-size: 1.75rem;
        letter-spacing: 1.5px;
        word-spacing: 4px;
    }

    .shine-pro {
        font-size: 2.5rem;
        line-height: 1.15;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
    }

    .hero-btns {
        gap: 0.875rem;
        margin-bottom: 1.75rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .socials {
        gap: 1.25rem;
    }

    .socials a {
        font-size: 1.25rem;
    }

    .hero-image img {
        max-width: min(280px, 80vw);
    }

    .btn-scroll-down {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        bottom: 1.5rem;
        right: 1rem;
    }

    .tech-strip {
        padding: 3rem 0;
    }

    .tech-track {
        gap: 2.5rem;
    }

    .icon-group svg,
    .icon-group i {
        width: 45px;
        height: 45px;
        font-size: 45px;
        line-height: 45px;
    }

    .section {
        padding: 3.5rem 1rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: 1.85rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .subsection-title {
        font-size: 1.3rem;
        margin-bottom: 1.25rem;
    }

    .cards-grid {
        gap: 1.5rem;
    }

    .tech-card {
        padding: 1.5rem;
    }

    .tech-card h4 {
        font-size: 1.1rem;
    }

    .tech-card p {
        font-size: 0.9rem;
    }

    .timeline-container {
        padding: 1.75rem 1.25rem;
    }

    .timeline-item {
        padding-left: 48px;
    }

    .timeline-dot {
        left: 12px;
    }

    .timeline-item::before {
        left: 19px;
    }

    .timeline-content h4 {
        font-size: 1.1rem;
    }

    .timeline-date,
    .company-name,
    .timeline-content p {
        font-size: 0.9rem;
    }

    .action-area {
        margin-top: 2.5rem;
    }

    .resume-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .projects-grid {
        gap: 1.5rem;
    }

    .card-image {
        height: 190px;
    }

    .card-content {
        padding: 1.5rem;
    }

    .card-header-row h3 {
        font-size: 1.1rem;
    }

    .project-link {
        font-size: 1rem;
    }

    .project-desc {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .tags span {
        font-size: 0.7rem;
        padding: 0.3rem 0.75rem;
    }

    .contact-container {
        padding: 1.75rem 1.25rem;
        gap: 2.25rem;
    }

    .contact-text h2 {
        font-size: 1.85rem;
    }

    .contact-text p {
        font-size: 0.95rem;
    }

    .fname h2 {
        font-size: 3.5rem;
        letter-spacing: 4px;
    }

    .contact-details {
        margin-top: 2rem;
    }

    .detail-item {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .detail-item i {
        font-size: 1.1rem;
    }

    .form-group {
        gap: 0.4rem;
    }

    .form-group label {
        font-size: 0.8rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.875rem 1.125rem;
        font-size: 0.95rem;
    }

    .full-width {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .btn-scroll-up {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        bottom: 1rem;
        right: 1rem;
    }

    footer {
        padding: 1.75rem 1rem;
        font-size: 0.85rem;
    }
}

/* Small Mobile (up to 400px) */
@media (max-width: 400px) {
    .logo {
        font-size: 1.15rem;
    }

    .hero {
        padding: 5rem 0.875rem 2rem;
    }

    .hero h2 {
        font-size: 1.5rem;
        letter-spacing: 1px;
        word-spacing: 3px;
    }

    .shine-pro {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        padding: 0.7rem 1.25rem;
        font-size: 0.875rem;
    }

    .socials {
        gap: 1rem;
    }

    .socials a {
        font-size: 1.15rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 5px 11px;
    }

    .btn-scroll-down {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .icon-group svg,
    .icon-group i {
        width: 40px;
        height: 40px;
        font-size: 40px;
        line-height: 40px;
    }

    .section {
        padding: 3rem 0.875rem;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    .subsection-title {
        font-size: 1.2rem;
    }

    .tech-card {
        padding: 1.25rem;
    }

    .icon-box {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
    }

    .timeline-container {
        padding: 1.5rem 1rem;
    }

    .timeline-item {
        padding-left: 45px;
    }

    .timeline-dot {
        left: 11px;
        width: 14px;
        height: 14px;
    }

    .timeline-item::before {
        left: 17px;
    }

    .card-content {
        padding: 1.25rem;
    }

    .contact-container {
        padding: 1.5rem 1rem;
        gap: 2rem;
    }

    .fname h2 {
        font-size: 3rem;
        letter-spacing: 3px;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .btn-scroll-up {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Landscape Orientation - Mobile & Tablets */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 5rem 1.5rem 2rem;
    }

    .hero-image img {
        max-width: min(240px, 35vw);
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .timeline-track {
        max-height: 280px;
    }

    .tech-strip {
        padding: 2.5rem 0;
    }

    .btn-scroll-down,
    .btn-scroll-up {
        bottom: 1rem;
        right: 1rem;
    }
}

/* Ultra-Wide Screens (1920px+) */
@media (min-width: 1920px) {
    :root {
        --max-width: 1400px;
    }

    .hero {
        padding: 8rem 2rem 3rem;
    }

    .section {
        padding: 8rem 2rem;
    }

    .section-header h2 {
        font-size: 2.75rem;
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.25rem;
    }
}

/* Print Optimization */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .navbar,
    .menu-toggle,
    .btn-scroll-down,
    .btn-scroll-up,
    .hero-btns,
    .socials,
    .nav-btn,
    #preloader,
    .tech-strip {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .hero {
        page-break-after: always;
        padding: 2rem 0;
    }

    .section {
        page-break-inside: avoid;
        padding: 2rem 0;
    }

    .project-card,
    .tech-card {
        page-break-inside: avoid;
        border: 1px solid #000 !important;
        margin-bottom: 1rem;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .shine-pro {
        animation: none;
        background: #999;
        -webkit-text-fill-color: unset;
    }

    .btn-scroll-down,
    .btn-scroll-up {
        animation: none;
    }
}