/* =========================================
   CSS Variables & Theme
========================================= */
:root {
    --primary-color: #2563eb; /* Royal Blue */
    --primary-light: #60a5fa;
    --primary-dark: #1d4ed8;
    --accent-color: #4f46e5; /* Indigo */
    
    /* Light Theme */
    --bg-color: #f8fafc;
    --bg-alt: #ffffff;
    --text-color: #334155;
    --text-light: #64748b;
    --text-heading: #0f172a;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   Reset & Base Styles
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* For custom cursor */
}

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

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   Custom Cursor
========================================= */
.cursor {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-follower {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-light);
    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, border-color 0.2s;
    transition-timing-function: cubic-bezier(0.1, 0.8, 0.3, 1);
    /* Faster follower response is governed by JS */
}

.cursor.active {
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
}

.cursor-follower.active {
    width: 50px;
    height: 50px;
    border-color: var(--accent-color);
    background-color: rgba(79, 70, 229, 0.1);
}

/* =========================================
   Typography & Utilities
========================================= */
.text-accent {
    color: var(--primary-color);
}

.section {
    padding: 6rem 5%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* =========================================
   Navigation
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-heading);
}

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

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

.nav-link {
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Hamburger Menu */
.menu-btn {
    display: none;
    cursor: none;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.menu-btn-burger,
.menu-btn-burger::before,
.menu-btn-burger::after {
    width: 30px;
    height: 2px;
    background: var(--text-heading);
    position: absolute;
    transition: var(--transition);
}

.menu-btn-burger {
    top: 50%;
    transform: translateY(-50%);
}

.menu-btn-burger::before {
    content: '';
    top: -8px;
}

.menu-btn-burger::after {
    content: '';
    top: 8px;
}

.menu-btn.open .menu-btn-burger {
    background: transparent;
}

.menu-btn.open .menu-btn-burger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-btn.open .menu-btn-burger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* =========================================
   Hero Section
========================================= */
.hero {
    padding-top: 15vh;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.greeting {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.main-title {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.typing-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    height: 30px; /* Prevent cumulative layout shift */
}

.typed {
    color: var(--accent-color);
}

.typed::after {
    content: '|';
    animation: blink 1s infinite step-start;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

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

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--text-heading);
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.blob-shape {
    width: 400px;
    height: 400px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    background: linear-gradient(45deg, var(--primary-light), var(--accent-color));
    animation: blobMorph 8s ease-in-out infinite alternate;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    opacity: 0.9;
    border-radius: inherit;
}

@keyframes blobMorph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 40% 60% 50% 50% / 40% 40% 60% 50%; }
}

/* =========================================
   About Section
========================================= */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image {
    flex: 1;
    position: relative;
}

.img-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.img-box img {
    width: 100%;
    transition: transform 0.5s;
}

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

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.experience-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-heading);
}

.about-content {
    flex: 1;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-text {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.about-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.about-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.about-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* =========================================
   Skills Section
========================================= */
.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid transparent;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skill-header i {
    font-size: 2rem;
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    padding: 10px;
    border-radius: 10px;
}

.skill-header h3 {
    font-size: 1.3rem;
}

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

.skill-tag {
    background: var(--bg-color);
    color: var(--text-heading);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: #fff;
}

/* =========================================
   Experience Section (Timeline)
========================================= */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid var(--bg-alt);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.timeline-date {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.timeline-item:hover .timeline-content {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
    border-left-color: var(--primary-color);
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
}

.timeline-content h4 {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    color: var(--text-light);
}

.timeline-content ul li {
    margin-bottom: 0.5rem;
}

/* =========================================
   Projects Section
========================================= */
.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.project-img {
    position: relative;
    overflow: hidden;
    height: 220px;
}

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

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

.project-links {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-links {
    opacity: 1;
}

.project-link {
    width: 50px;
    height: 50px;
    background: #fff;
    color: var(--text-heading);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--primary-color);
    color: #fff;
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-card:hover .project-link:nth-child(2) {
    transition-delay: 0.1s;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.project-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

/* =========================================
   Education & Certifications
========================================= */
.edu-cert-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.education-block h3, .achievements-card h3, .certifications-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-heading);
}

.education-block h3 i, .achievements-card h3 i, .certifications-card h3 i {
    color: var(--primary-color);
}

.cert-achieve-block {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.achievements-card, .certifications-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.achieve-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.achieve-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.achieve-list i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 3px;
}

.cert-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.cert-list li:last-child {
    margin-bottom: 0;
}

.cert-icon {
    width: 40px;
    height: 40px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.cert-list h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.cert-list span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* =========================================
   Blogs Section
========================================= */
.blogs-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.blog-img {
    position: relative;
    height: 200px;
}

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

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

.blog-date {
    position: absolute;
    bottom: -15px;
    left: 20px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-content {
    padding: 2rem 1.5rem 1.5rem;
}

.blog-category {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-content h3 {
    font-size: 1.25rem;
    margin: 0.5rem 0 1rem;
    line-height: 1.4;
}

.blog-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: var(--text-heading);
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-color);
}

.read-more i {
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* =========================================
   Contact Section
========================================= */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

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

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.info-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    padding: 15px;
    border-radius: 50%;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.info-item span {
    display: block;
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-form {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
    transition: var(--transition);
    cursor: none;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.submit-btn {
    width: 100%;
    border: none;
}

/* =========================================
   Footer
========================================= */
.footer {
    background: var(--text-heading);
    color: #fff;
    padding: 5rem 5% 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    display: inline-block;
    margin-bottom: 1rem;
}

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

.footer-col p {
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-light);
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #cbd5e1;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* =========================================
   Back to Top
========================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* =========================================
   Responsive Design
========================================= */
@media screen and (max-width: 1024px) {
    .projects-grid, .blogs-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media screen and (max-width: 992px) {
    .hero-container, .about-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .edu-cert-container, .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-image-wrapper {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .hero-buttons, .social-links {
        justify-content: center;
    }
    
    .hero-description {
        margin: 0 auto 2.5rem;
    }
    
    .about-info {
        text-align: left;
    }
    
    .blob-shape {
        width: 350px;
        height: 350px;
    }
    
    .experience-badge {
        right: 10px;
        bottom: 10px;
        padding: 1rem;
    }
    
    .experience-badge .years {
        font-size: 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 768px) {
    .menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-alt);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s ease;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .main-title {
        font-size: 2.8rem;
    }
    
    .cursor, .cursor-follower {
        display: none; /* Disable custom cursor on mobile */
    }
    
    body, a, .btn, input, textarea {
        cursor: auto;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-dot {
        left: 6px;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .projects-grid, .blogs-grid, .skills-container {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    .footer-col p {
        margin: 0 auto 2rem;
    }
}

@media screen and (max-width: 576px) {
    .section {
        padding: 6rem 5% 4rem; /* Safe padding for mobile navbar */
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .main-title {
        font-size: 2.2rem;
    }
    
    .typing-text {
        font-size: 1.1rem;
        height: 40px; /* Adjust height for wrapping */
    }
    
    .blob-shape {
        width: 280px;
        height: 280px;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .about-info {
        padding: 1.5rem;
    }
    
    .about-info li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Fix for very small devices */
@media screen and (max-width: 380px) {
    .blob-shape {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }
    
    .experience-badge {
        padding: 0.8rem;
    }
    
    .experience-badge .years {
        font-size: 1.5rem;
    }
}
