/* ==================== */
/* Global Styles */
/* ==================== */
/* Prevent horizontal scrolling */
html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Contain all elements within viewport */
.container {
    width: 100%;
    max-width: 1200px;
    /* or your preferred max width */
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Ensure all elements respect container boundaries */
* {
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --dark: #1e293b;
    --darker: #0f172a;
    --light: #f8fafc;
    --lighter: #ffffff;
    --gray: #94a3b8;
    --light-gray: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.highlight {
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ==================== */
/* Navbar */
/* ==================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.98);
    /* Matching footer gradient start color with slight transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* subtle border */
}

nav.scrolled {
    background: rgba(15, 23, 42, 0.98);
    /* Solid color when scrolled */
    box-shadow: var(--shadow-xl);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    /* Slightly reduced padding */
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lighter);
    /* White text */
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo .highlight {
    color: var(--primary-light);
    /* Accent color for logo */
}


nav ul {
    display: flex;
    gap: 25px;
}

nav ul li a {
    font-weight: 500;
    color: var(--light);
    /* Light text color */
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-light);
    /* Accent color on hover */
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    /* Matching hover color */
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Add a subtle glow effect on active nav item */
nav ul li a.active {
    color: var(--primary-light);
    text-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

/* ==================== */
/* Hero Section */
/* ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #e0e7ff, #c7d2fe, #a5b4fc, #818cf8);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: -1;
    opacity: 0.7;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

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

.hero-image {
    flex: 1;
    position: relative;
    max-width: 350px;
    /* Reduced from 500px */
}

.text-primary {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 10px;
    display: inline-block;
}

.display-name {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--darker), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.typed-text-output {
    font-size: 1.5rem;
    color: var(--darker);
    margin-bottom: 30px;
    font-weight: 500;
    min-height: 1.5em;
    /* Ensures consistent height during typing */
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-resume {
    background: rgba(0, 0, 0, 0.05);
    color: var(--darker);
    border: 2px solid var(--darker);
}

.btn-resume:hover {
    background: var(--darker);
    color: white;
    border-color: var(--darker);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-linkedin {
    background: rgba(10, 102, 194, 0.1);
    color: #0A66C2;
    border: 2px solid #0A66C2;
}

.btn-linkedin:hover {
    background: #0A66C2;
    color: white;
    border-color: #0A66C2;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-github {
    background: rgba(0, 0, 0, 0.05);
    color: var(--darker);
    border: 2px solid var(--darker);
}

.btn-github:hover {
    background: var(--darker);
    color: white;
    border-color: var(--darker);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.hero-buttons .btn i {
    margin-right: 8px;
    font-size: 1rem;
}

.profile-img {
    width: 280px;
    /* Reduced size */
    height: 280px;
    /* Make height equal to width for perfect circle */
    border-radius: 50%;
    /* Changed to circle */
    border: 8px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(10deg);
    transition: var(--transition);
    object-fit: cover;
    /* Ensures image fills the circle properly */
}

.hero-image:hover .profile-img {
    transform: perspective(1000px) rotateY(0);
}

.glow {
    position: absolute;
    width: 100%;
    /* Adjusted to match new image size */
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    z-index: -1;
    filter: blur(30px);
    animation: pulse 6s infinite alternate;
    border-radius: 50%;
    /* Match the circle shape */
}

@keyframes pulse {
    0% {
        opacity: 0.6;
        transform: scale(0.95);
    }

    100% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

/* ==================== */
/* Skills Section */
/* ==================== */
.skills {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.skill {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Different top border colors for each skill */
.skill:nth-child(1)::before {
    background: linear-gradient(90deg, #6366f1, #a5b4fc);
}

/* Web Dev - Blue */
.skill:nth-child(2)::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

/* AI/ML - Emerald */
.skill:nth-child(3)::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

/* Cloud - Amber */
.skill:nth-child(4)::before {
    background: linear-gradient(90deg, #8b5cf6, #c4b5fd);
}

/* Data Science - Violet */

.skill:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    transition: all 0.3s ease;
}

/* Different icon background colors */
.skill:nth-child(1) .skill-icon {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    /* Web Dev - Blue */
}

.skill:nth-child(2) .skill-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    /* AI/ML - Emerald */
}

.skill:nth-child(3) .skill-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    /* Cloud - Amber */
}

.skill:nth-child(4) .skill-icon {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    /* Data Science - Violet */
}

/* Hover states with matching colors */
.skill:nth-child(1):hover .skill-icon {
    background: linear-gradient(135deg, #6366f1, #a5b4fc);
}

.skill:nth-child(2):hover .skill-icon {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.skill:nth-child(3):hover .skill-icon {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.skill:nth-child(4):hover .skill-icon {
    background: linear-gradient(135deg, #8b5cf6, #c4b5fd);
}

.skill:hover .skill-icon {
    transform: rotate(15deg) scale(1.1);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.skill h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #1e293b;
    position: relative;
    display: inline-block;
}

/* Underline colors matching the category */
.skill:nth-child(1) h3::after {
    background: #6366f1;
}

.skill:nth-child(2) h3::after {
    background: #10b981;
}

.skill:nth-child(3) h3::after {
    background: #f59e0b;
}

.skill:nth-child(4) h3::after {
    background: #8b5cf6;
}

.skill h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    border-radius: 3px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.skill-tag {
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Tag colors matching the category */
.skill:nth-child(1) .skill-tag {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.skill:nth-child(2) .skill-tag {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.skill:nth-child(3) .skill-tag {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.skill:nth-child(4) .skill-tag {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

/* Hover states for tags */
.skill:nth-child(1):hover .skill-tag {
    background: #6366f1;
    color: white;
}

.skill:nth-child(2):hover .skill-tag {
    background: #10b981;
    color: white;
}

.skill:nth-child(3):hover .skill-tag {
    background: #f59e0b;
    color: white;
}

.skill:nth-child(4):hover .skill-tag {
    background: #8b5cf6;
    color: white;
}

.skill:hover .skill-tag {
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill {
        padding: 30px 20px;
    }
}

/* ==================== */
/* Experience Section */
/* ==================== */
.experience {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.experience-container {
    display: flex;
    gap: 40px;
}

.experience-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.experience-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Colorful left border */
.experience-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
}

/* Different colors for each card */
.experience-card:nth-child(1)::before {
    background: #6366f1;
}

/* Blue */
.experience-card:nth-child(2)::before {
    background: #10b981;
}

/* Green */
.experience-card:nth-child(3)::before {
    background: #f59e0b;
}

/* Amber */
.experience-card:nth-child(4)::before {
    background: #8b5cf6;
}

/* Violet */

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.experience-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.experience-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 1.3rem;
}

/* Matching icon backgrounds */
.experience-card:nth-child(1) .experience-icon {
    background: #6366f1;
}

.experience-card:nth-child(2) .experience-icon {
    background: #10b981;
}

.experience-card:nth-child(3) .experience-icon {
    background: #f59e0b;
}

.experience-card:nth-child(4) .experience-icon {
    background: #8b5cf6;
}

.experience-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 5px;
}

/* Matching title colors */
.experience-card:nth-child(1) .experience-title {
    color: #6366f1;
}

.experience-card:nth-child(2) .experience-title {
    color: #10b981;
}

.experience-card:nth-child(3) .experience-title {
    color: #f59e0b;
}

.experience-card:nth-child(4) .experience-title {
    color: #8b5cf6;
}

.experience-company {
    font-weight: 500;
    color: #334155;
    margin-bottom: 5px;
}

.experience-date {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.experience-details ul {
    list-style: none;
}

.experience-details li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Matching bullet colors */
.experience-card:nth-child(1) .experience-details li::before {
    color: #6366f1;
}

.experience-card:nth-child(2) .experience-details li::before {
    color: #10b981;
}

.experience-card:nth-child(3) .experience-details li::before {
    color: #f59e0b;
}

.experience-card:nth-child(4) .experience-details li::before {
    color: #8b5cf6;
}

.experience-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .experience-container {
        flex-direction: column;
        gap: 20px;
    }

    .experience-card {
        padding: 25px 20px;
    }
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--primary-light);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: calc(50% - 40px);
}

.timeline-item:nth-child(odd) {
    margin-right: auto;
    padding-right: 40px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
    padding-left: 40px;
    text-align: left;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--primary);
    top: 20px;
}

.timeline-item:nth-child(odd)::before {
    right: -10px;
}

.timeline-item:nth-child(even)::before {
    left: -10px;
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.date {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
    font-weight: 500;
}

.company {
    font-weight: 600;
    color: var(--darker);
    margin-bottom: 15px;
    display: block;
    font-size: 1.1rem;
}

.timeline-content ul {
    margin-top: 15px;
}

.timeline-content li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.timeline-content li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1.2rem;
}

/* ==================== */
/* Projects Section */
/* ==================== */
.projects {
    background:
        linear-gradient(to right bottom, #ffffff, #f8fafc),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><circle cx="50" cy="50" r="40" fill="%236366f1" opacity="0.03"/></svg>');
    background-size: auto, 150px 150px;
}

.project-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 20px;
    border-radius: 50px;
    background: transparent;
    border: 1px solid var(--light-gray);
    color: var(--gray);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.category-btn.active,
.category-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.project-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 60%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    transition: var(--transition);
    z-index: 1;
}

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

.view-btn {
    color: white;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

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

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--darker);
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tags span {
    background: #f1f5f9;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

/* ==================== */
/* Certifications Section */
/* ==================== */
.certifications {
    background:
        linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L50,100 Z" fill="%236366f1" opacity="0.03"/></svg>');
    background-size: auto, 200px 200px;
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cert {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.cert img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: grayscale(100%);
    transition: var(--transition);
}

.cert:hover img {
    filter: grayscale(0%);
}

.cert h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--darker);
}

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

/* ==================== */
/* Contact Section */
/* ==================== */
.contact {
    background:
        linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><rect x="10" y="10" width="80" height="80" stroke="%23ffffff" stroke-width="2" fill="none" opacity="0.1"/></svg>');
    background-size: auto, 120px 120px;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.contact .container {
    position: relative;
    z-index: 1;
}

form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
}

form input,
form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

form textarea {
    min-height: 150px;
    resize: vertical;
}

form button {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

form button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* ==================== */
/* Footer */
/* ==================== */
footer {
    background: linear-gradient(to right, #0f172a, #1e293b);
}

footer {
    text-align: center;
    padding: 30px 0;
    background: var(--darker);
    color: white;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ==================== */
/* Responsive Design */
/* ==================== */
@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 50px;
        max-width: 100%;
    }

    .hero-image {
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        margin-right: 0;
        margin-left: 0;
        text-align: left;
    }

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

    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        left: 20px;
        right: auto;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    .display-name {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .profile-img {
        max-width: 300px;
    }

    nav ul {
        display: none;
    }

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

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .display-name {
        font-size: 2rem;
    }

    .typed-text-output {
        font-size: 1.25rem;
    }

    .skill,
    .cert {
        padding: 20px;
    }

    form {
        padding: 30px 20px;
    }
}
/* Enhanced GIF Styling */
.gif-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0f172a; /* Dark background for better GIF contrast */
}

.giphy-embed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05); /* Slight zoom to remove potential black borders */
    transition: transform 0.5s ease;
}

.project-card:hover .giphy-embed {
    transform: scale(1.08);
}

/* Optimized overlay for GIF backgrounds */
.project-overlay {
    background: linear-gradient(to top, 
                rgba(15, 23, 42, 0.95) 20%, 
                transparent 80%);
    display: flex;
    align-items: flex-end;
    padding-bottom: 30px;
}

/* Loading state */
.gif-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(-45deg, #0f172a, #1e293b, #0f172a);
    background-size: 400% 400%;
    animation: gradientBG 3s ease infinite;
    z-index: 0;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hide the loading state when GIF loads */
.gif-container.loaded::after {
    display: none;
}