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

:root {
    /* Colors - Dark Theme */
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --text-dark: #f9fafb;
    --text-light: #d1d5db;
    --white: #ffffff;
    --bg-dark: #0f172a;
    --bg-darker: #0a0f1e;
    --bg-card: #1e293b;
    --bg-light: #1e293b;
    --bg-gray: #334155;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===========================
   Global Styles
   =========================== */
html {
    scroll-behavior: auto;
    overflow-x: hidden;
}

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

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

section {
    padding: var(--section-padding);
}

/* ===========================
   Typography
   =========================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 1rem auto;
    border-radius: 2px;
    max-width: 100%;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.project-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-project {
    flex: 1;
    padding: 0.6rem 1rem;
    text-align: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-demo {
    background: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
}

.btn-demo:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-github {
    background: var(--bg-light);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.btn-github:hover {
    background: var(--bg-dark);
    color: var(--text-dark);
    border-color: var(--text-dark);
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: all var(--transition-normal);
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

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

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    z-index: 1;
    max-width: 100%;
}

.hero-image {
    flex: 0 0 auto;
}

.image-container {
    position: relative;
    width: 380px;
    height: 380px;
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 65%;
    border: 12px solid var(--white);
    box-shadow: 0 25px 70px rgba(37, 99, 235, 0.25),
                0 10px 30px rgba(37, 99, 235, 0.15),
                0 0 0 1px rgba(37, 99, 235, 0.1);
    animation: fadeIn 1s ease-in, float 30s ease-in-out infinite;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    filter: brightness(0.92) contrast(1.05) saturate(1.05);
    transition: all 0.4s ease;
}

.profile-photo:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 30px 80px rgba(37, 99, 235, 0.35),
                0 15px 40px rgba(37, 99, 235, 0.2),
                0 0 0 1px rgba(37, 99, 235, 0.15);
    filter: brightness(0.95) contrast(1.08) saturate(1.08);
}

.image-container::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(14, 165, 233, 0.1));
    animation: pulse 4s ease-in-out infinite;
    z-index: -1;
}

.image-container::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.1);
    z-index: -1;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.4;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: min(600px, 80vw);
    height: min(600px, 80vw);
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    max-width: 100%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: min(500px, 70vw);
    height: min(500px, 70vw);
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
    max-width: 100%;
}

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

.hero-content {
    text-align: left;
    z-index: 1;
    flex: 0 1 auto;
    max-width: 600px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--primary-color);
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Fade-in animation */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   About Section
   =========================== */
.about {
    background: var(--bg-darker);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-skills-badges h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.badge i {
    font-size: 1.2rem;
}

/* ===========================
   Projects Section
   =========================== */
.projects {
    background: var(--bg-dark);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

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

.project-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: 1.8rem;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.4rem 0.9rem;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Show More Projects Button */
.show-more-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.btn-show-more {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: var(--bg-card);
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-show-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3);
}

.btn-show-more i {
    transition: transform 0.3s ease;
}

.btn-show-more:hover i {
    transform: translateY(3px);
}

.more-projects {
    display: contents;
}

/* ===========================
   Skills Section
   =========================== */
.skills {
    background: var(--bg-darker);
}

.skills-container {
    margin-top: 3rem;
}

.skills-category {
    margin-bottom: 4rem;
}

.skills-category:last-child {
    margin-bottom: 0;
}

.skills-category h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skills-category h3 i {
    color: var(--primary-color);
}

.tech-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
}

.tech-skill-category {
    background: var(--bg-card);
    padding: 1.8rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

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

.other-skills-wide {
    grid-column: span 2;
}

.iot-tall {
    grid-row: span 2;
}

.tech-skill-category h4 {
    color: var(--text-dark);
    font-size: 1.05rem;
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.tech-skill-category h4 i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.tech-tag {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 0.55rem 1.1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.tech-tag:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Soft Skills */
.soft-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.soft-skill-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

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

.soft-skill-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.soft-skill-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.soft-skill-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}
/* ===========================
   Resume Section
   =========================== */
.resume {
    background: var(--bg-dark);
}

.resume-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.education-timeline h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 15px;
    height: 15px;
    background: var(--white);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
}

.timeline-item.active .timeline-marker {
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.timeline-content {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.timeline-period {
    color: var(--text-light); /* Matching the typical theme text color */
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.timeline-period strong {
    color: var(--text-light);
    font-weight: 600;
    margin-right: 0.4rem;
}

.sgpa-tag {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition-fast);
}

.sgpa-tag i {
    margin-right: 0.3rem;
    font-size: 1rem;
}

.sgpa-tag:hover {
    color: var(--primary-color);
}

.sgpa-tag:hover i {
    color: var(--primary-color) !important;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.7;
}

.semester-results {
    display: flex;
    gap: 1rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}

.result-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-light);
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.result-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.resume-download {
    display: flex;
    align-items: center;
    justify-content: center;
}

.resume-card {
    background: var(--bg-card);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 450px;
    transition: all var(--transition-normal);
}

.resume-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.resume-card i {
    font-size: 4.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.resume-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.resume-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.resume-card .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.resume-card .btn i {
    font-size: 1.1rem;
}

/* ===========================
   Contact Section
   =========================== */
.contact {
    background: var(--bg-darker);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 3rem;
}

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

.contact-card {
    display: block;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: transform 0.2s ease;
}

.contact-card:hover i {
    transform: scale(1.1);
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.contact-card p {
    color: var(--text-light);
    transition: color var(--transition-fast);
}

.contact-card:hover p {
    color: var(--primary-color);
}

.contact-form-container {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all var(--transition-normal);
    background: var(--bg-dark);
    color: var(--text-dark);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    text-align: center;
    padding: 2rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: var(--radius-md);
    color: #16a34a;
}

.form-success i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.form-success p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--bg-darker);
    color: var(--text-light);
    padding: 2.5rem 0 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-copyright {
    font-size: 0.95rem;
    color: var(--text-light);
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--text-light);
    opacity: 0.8;
}

.footer-tagline .fa-heart {
    color: var(--primary-color);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
}

.footer-right {
    display: flex;
    align-items: center;
}

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

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    color: var(--text-light);
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-left {
        align-items: center;
    }
}

/* ===========================
   Modal
   =========================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-card);
    margin: 3% auto;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    max-width: min(700px, 95vw);
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    animation: slideIn 0.3s ease;
    border: 1px solid var(--border-color);
    width: 95%;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-light);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-dark);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .resume-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .contact-card {
        padding: 1.8rem;
    }
    
    .hero-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .image-container {
        width: 320px;
        height: 320px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-card);
        width: 100%;
        text-align: center;
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        padding: 1rem 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .image-container {
        width: 300px;
        height: 300px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .soft-skills-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% 20px;
        padding: 2rem;
    }
    
    .tech-skills-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .tech-skill-category {
        padding: 1.5rem;
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
    
    .contact-content {
        gap: 2rem;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-left {
        align-items: center;
    }
    
    .other-skills-wide {
        grid-column: span 1 !important;
    }
    
    .iot-tall {
        grid-row: span 1 !important;
    }
    
    .tech-skill-category h4 {
        font-size: 1rem;
    }
    
    .tech-tag {
        font-size: 0.8rem;
        padding: 0.5rem 0.9rem;
    }
    
    .soft-skills-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .about-info h1 {
        font-size: 1.8rem;
    }
    
    .about-info p {
        font-size: 0.95rem;
    }
    
    .resume-section h3 {
        font-size: 1.3rem;
    }
    
    .btn-show-more {
        width: 90%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 50px 0;
        --container-padding: 0 15px;
    }
    
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    section {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    * {
        max-width: 100%;
    }
    
    .contact,
    .hero,
    .about,
    .resume,
    .skills,
    .projects {
        padding-left: 0;
        padding-right: 0;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero::before,
    .hero::after {
        width: min(400px, 60vw);
        height: min(400px, 60vw);
    }
    
    .projects-grid,
    .tech-skills-grid,
    .soft-skills-grid {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .project-card,
    .tech-skill-category,
    .soft-skill-card {
        width: 100%;
        box-sizing: border-box;
    }
    
    .section-title {
        font-size: 1.8rem;
        word-wrap: break-word;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .image-container {
        width: 240px;
        height: 240px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .nav-brand {
        font-size: 1.2rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -2.25rem;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
    }
    
    .timeline-date {
        font-size: 0.8rem;
    }
    
    .hero-buttons .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        margin-bottom: 2rem;
    }
    
    .scroll-indicator {
        bottom: 15px;
        font-size: 1.2rem;
    }
    
    .project-card {
        padding: 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
    
    .project-links {
        gap: 0.8rem;
    }
    
    .project-links .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .about-content {
        gap: 2rem;
    }
    
    .about-info h1 {
        font-size: 1.6rem;
    }
    
    .about-info p {
        font-size: 0.9rem;
    }
    
    .resume-card {
        padding: 2rem 1.5rem;
    }
    
    .resume-card i {
        font-size: 3.5rem;
    }
    
    .resume-card h3 {
        font-size: 1.3rem;
    }
    
    .resume-card p {
        font-size: 0.9rem;
    }
    
    .resume-section h3 {
        font-size: 1.2rem;
    }
    
    .contact-card {
        padding: 1.5rem;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
    
    .contact-card i {
        font-size: 2rem;
    }
    
    .contact-card h3 {
        font-size: 1.1rem;
    }
    
    .contact-card p {
        font-size: 0.9rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .contact-info {
        width: 100%;
        gap: 1rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    .contact-content {
        gap: 1.5rem;
        width: 100%;
        padding: 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-left {
        align-items: center;
    }
    
    .footer-copyright {
        font-size: 0.85rem;
    }
    
    .footer-tagline {
        font-size: 0.8rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 15% 15px;
        max-height: 80vh;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-body h3 {
        font-size: 1.1rem;
    }
    
    .modal-tech-stack {
        gap: 0.5rem;
    }
    
    .modal-tech-tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .tech-skills-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .tech-skill-category {
        padding: 1.2rem;
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
    
    .other-skills-wide {
        grid-column: span 1 !important;
    }
    
    .iot-tall {
        grid-row: span 1 !important;
    }
    
    .tech-skill-category h4 {
        font-size: 0.95rem;
    }
    
    .tech-tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .skills-category h3 {
        font-size: 1.5rem;
    }
    
    .soft-skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .soft-skill-card {
        padding: 1.5rem;
    }
    
    .btn-show-more {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Additional tablet improvements */
@media (min-width: 481px) and (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .image-container {
        width: 280px;
        height: 280px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
}

/* ===========================
   Utility Classes
   =========================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
