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

:root {
    --font-heading: 'Sora', 'Segoe UI', sans-serif;
    --font-body: 'Manrope', 'Segoe UI', sans-serif;
    --primary-color: #0f766e;
    --secondary-color: #2563eb;
    --accent-color: #f59e0b;
    --primary-rgb: 15, 118, 110;
    --secondary-rgb: 37, 99, 235;
    --accent-rgb: 245, 158, 11;
    --project-img-height: 200px;
    --project-img-radius: 12px;
    --bg-light-rgb: 245, 247, 252;
    --bg-section-rgb: 234, 240, 248;
    --text-dark: #0f172a;
    --text-light: #475569;
    --bg-light: #f5f7fc;
    --bg-section: #eaf0f8;
    --card-bg: #ffffff;
    --border-color: #d3dce9;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] {
    --primary-color: #2dd4bf;
    --secondary-color: #60a5fa;
    --primary-rgb: 45, 212, 191;
    --secondary-rgb: 96, 165, 250;
    --accent-rgb: 251, 191, 36;
    --bg-light-rgb: 11, 19, 36;
    --bg-section-rgb: 16, 27, 50;
    --text-dark: #e2e8f0;
    --text-light: #94a3b8;
    --bg-light: #0b1324;
    --bg-section: #101b32;
    --card-bg: #16233f;
    --border-color: #263656;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    letter-spacing: 0.01em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
.logo,
.btn,
.hero-kicker {
    font-family: var(--font-heading);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    --mouse-x: 50%;
    --mouse-y: 50%;
    background: linear-gradient(120deg, rgba(var(--bg-light-rgb), 0.82), rgba(var(--bg-section-rgb), 0.8));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.2);
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

nav::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        260px circle at var(--mouse-x) var(--mouse-y),
        rgba(var(--primary-rgb), 0.32),
        rgba(var(--secondary-rgb), 0.16) 30%,
        transparent 68%
    );
    opacity: 0.8;
    transition: opacity 0.25s ease;
}

nav::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.45), transparent);
    pointer-events: none;
}

nav.scrolled {
    background: linear-gradient(120deg, rgba(var(--bg-light-rgb), 0.92), rgba(var(--bg-section-rgb), 0.9));
    box-shadow: var(--shadow);
}

nav.scrolled::before {
    opacity: 0.95;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.86rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.theme-toggle {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(180deg);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 4rem 2rem;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    --mouse-x: 50%;
    --mouse-y: 50%;
    background:
        radial-gradient(circle at 15% 20%, rgba(var(--primary-rgb), 0.14) 0%, transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(var(--accent-rgb), 0.1) 0%, transparent 28%),
        linear-gradient(135deg, var(--bg-light) 0%, var(--bg-section) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: -20%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.75;
    background: radial-gradient(
        circle at var(--mouse-x) var(--mouse-y),
        rgba(var(--primary-rgb), 0.3) 0%,
        rgba(var(--secondary-rgb), 0.2) 16%,
        rgba(var(--accent-rgb), 0.12) 28%,
        rgba(var(--primary-rgb), 0) 46%
    );
    filter: blur(8px);
    transition: opacity 0.25s ease;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(rgba(var(--primary-rgb), 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 88%);
}

.hero:hover::before {
    opacity: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .hero::after {
    background:
        linear-gradient(rgba(var(--secondary-rgb), 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--secondary-rgb), 0.15) 1px, transparent 1px);
    background-size: 32px 32px;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(var(--primary-rgb), 0.35);
    color: var(--primary-color);
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.08);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

.hero-content .subtitle {
    font-size: 1.35rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-content .tagline {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.35rem;
    max-width: 60ch;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 2rem;
}

.hero-highlights span {
    background: rgba(var(--secondary-rgb), 0.1);
    color: var(--text-dark);
    border: 1px solid rgba(var(--secondary-rgb), 0.25);
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 8px 18px rgba(var(--secondary-rgb), 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(var(--secondary-rgb), 0.35);
}

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

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

.hero-image {
    position: relative;
    animation: fadeIn 1s ease;
}

.profile-img-container {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 55px rgba(var(--secondary-rgb), 0.28);
    animation: float 6s ease-in-out infinite;
}

.profile-img::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    background-size: 300% 300%;
    animation: gradient-rotate 6s ease infinite;
    z-index: -1;
}

.profile-img::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--bg-light);
    z-index: -1;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

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

/* Sections */
section {
    padding: 4rem 2rem;
}

section:not(.hero) {
    --mouse-x: 50%;
    --mouse-y: 50%;
    --section-glow-a: var(--primary-rgb);
    --section-glow-b: var(--secondary-rgb);
    --section-grid-opacity: 0.06;
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(125deg, rgba(var(--bg-light-rgb), 0.88), rgba(var(--bg-section-rgb), 0.92)),
        var(--bg-section);
}

section:not(.hero)::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(
        340px circle at var(--mouse-x) var(--mouse-y),
        rgba(var(--section-glow-a), 0.24),
        rgba(var(--section-glow-b), 0.15) 35%,
        transparent 75%
    );
    opacity: 0.78;
    transition: opacity 0.2s ease;
}

section:not(.hero)::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(rgba(var(--section-glow-a), var(--section-grid-opacity)) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--section-glow-b), var(--section-grid-opacity)) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 90%);
}

section:not(.hero):hover::before {
    opacity: 1;
}

section:nth-of-type(2n):not(.hero) {
    --section-glow-a: var(--secondary-rgb);
    --section-glow-b: var(--accent-rgb);
}

section:nth-of-type(3n):not(.hero) {
    --section-glow-a: 14, 165, 233;
    --section-glow-b: var(--primary-rgb);
}

section:nth-of-type(5n):not(.hero) {
    --section-glow-a: var(--accent-rgb);
    --section-glow-b: var(--secondary-rgb);
}

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

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

/* Modern Info Section */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card,
.skills-card {
    background: var(--card-bg);
    padding: 1.75rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(4px);
}

.info-card:hover,
.skills-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.info-card h3,
.skills-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Soft Skills Grid */
.soft-skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.soft-skill-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-section);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.soft-skill-item:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    transform: translateX(3px);
}

.soft-skill-icon {
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    flex-shrink: 0;
}

.soft-skill-name {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

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

.info-item-modern {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: var(--bg-section);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.info-item-modern:hover {
    background: var(--bg-light);
    transform: translateX(3px);
}

.info-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    flex-shrink: 0;
    opacity: 0.9;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.info-value {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.4;
}

/* Modern Skills Section */
.skills-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.skill-card-modern {
    background: var(--card-bg);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.skill-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.skill-card-modern:hover .skill-icon {
    transform: scale(1.1);
}

.skill-card-modern h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.skill-card-modern p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0;
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color);
}

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

.project-image {
    height: var(--project-img-height);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    overflow: hidden;
    /* ensure the image area follows the project's corner radius */
    border-radius: var(--project-img-radius);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* inherit the container radius so corners always match */
    border-radius: inherit;
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-content h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

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

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech {
    background: var(--bg-section);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-section);
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

.internship-badge {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.project-date {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.project-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
}

.project-links a:hover {
    transform: translateX(5px);
    background: var(--primary-color);
    color: white;
}

.project-links .demo-link {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
}

.project-links .demo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(var(--secondary-rgb), 0.3);
}

/* Experience Section */
.experience-timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    position: relative;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 5px var(--bg-section);
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.timeline-company {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-light);
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color);
}

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

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.achievement-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.achievement-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-dark);
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: transparent;
    border: 2px solid var(--border-color);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.contact-icon:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.contact-text h3 {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-text a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--primary-color);
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgba(var(--bg-section-rgb), 0.95), rgba(var(--bg-light-rgb), 0.95));
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0.9rem 1.25rem;
    }

    .hero {
        padding: 3.5rem 1.5rem;
    }

    section:not(.hero) {
        padding: 3.5rem 1.5rem;
    }

    .hero-container {
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        position: fixed;
        top: 72px;
        left: 1rem;
        right: 1rem;
        background: rgba(var(--bg-light-rgb), 0.96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border: 1px solid var(--border-color);
        border-radius: 14px;
        flex-direction: column;
        padding: 1.5rem;
        max-height: calc(100vh - 96px);
        overflow-y: auto;
        box-shadow: var(--shadow);
        animation: slideDown 0.3s ease;
    }

    .mobile-menu {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .subtitle {
        font-size: 1.2rem;
    }

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

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

    .profile-img-container {
        width: 250px;
        height: 250px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .info-item-modern {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .info-details {
        align-items: center;
    }

    .soft-skills-grid {
        grid-template-columns: 1fr;
    }

    .soft-skill-item {
        justify-content: flex-start;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

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

    .skills-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
    }

    .skill-card-modern {
        padding: 1.5rem 1rem;
    }

    .skill-icon {
        width: 50px;
        height: 50px;
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .hero {
        margin-top: 72px;
        min-height: calc(100vh - 72px);
        padding: 2.5rem 1rem;
    }

    section:not(.hero) {
        padding: 2.75rem 1rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-highlights span {
        width: 100%;
        text-align: center;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .profile-img-container {
        width: 210px;
        height: 210px;
    }
}

@media (hover: none), (pointer: coarse) {
    nav::before,
    section:not(.hero)::before {
        opacity: 0.52;
        transition: none;
    }

    section:not(.hero)::after {
        opacity: 0.65;
    }
}

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