/* ==========================================================================
   DESIGN SYSTEM & MODERN RESET
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-primary: #0a0e14;
    --bg-secondary: #11151c;
    --bg-card: #1a222e;
    --bg-card-hover: #242e3c;
    --border-color: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --text-primary: #e0e5ec;
    --text-secondary: #a0b0c0;
    --text-muted: #7a8b9c;
    
    --accent: #5a67d8; /* Muted Indigo */
    --accent-hover: #4c51c0; /* Muted Indigo hover */
    --accent-teal: #38b2ac; /* Soft Teal */
    --accent-glow: rgba(90, 103, 216, 0.12);
    
    /* Typography */
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Transitions & Offsets */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Disable tap highlight box on Android/Safari */
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%; /* Prevent font-size adjustment on orientation change in iOS Safari */
    width: 100%;
}

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

/* Custom Scrollbar (Desktop Webkit browsers) */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--bg-card-hover);
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 11, 17, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px); /* Safari support */
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    padding-top: env(safe-area-inset-top, 0px); /* Notch safe area support for iOS/Android */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 1.5rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.25rem 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    transition: var(--transition-smooth);
}

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

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

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 1.5rem 6rem;
    position: relative;
    background: radial-gradient(circle at 50% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 184, 166, 0.06);
    border: 1px solid rgba(20, 184, 166, 0.15);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-teal);
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-teal);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--accent-teal);
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 40%, #c7d2fe 70%, #99f6e4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    border: 1px solid var(--accent);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 6rem 1.5rem;
    background-color: var(--bg-secondary);
    position: relative;
}

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

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

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.section-header .subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
    align-items: center;
}

.profile-img-container {
    position: relative;
    width: 280px;
    max-width: 100%;
    aspect-ratio: 280 / 380; /* Prevents distorting height on small device scale down */
    height: auto;
    margin: 0 auto;
    border-radius: 24px;
    padding: 3px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-teal) 100%);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 21px;
    display: block;
    filter: grayscale(10%) contrast(105%);
    transition: var(--transition-smooth);
}

.profile-img-container:hover .profile-img {
    filter: grayscale(0%) contrast(100%);
}

.intro {
    text-align: left;
}

.intro h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.intro p.role {
    font-size: 1.1rem;
    color: var(--accent-teal);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.intro-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.key-skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.skill-item i {
    color: var(--accent-teal);
    font-size: 1rem;
}

.openPopupBtn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
    transition: var(--transition-smooth);
}

.openPopupBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

/* Certificate Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(8, 11, 17, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    margin: 5% auto;
    padding: 2.5rem;
    width: 90%;
    max-width: 900px;
    border-radius: 20px;
    position: relative;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
}

.close-btn {
    color: var(--text-secondary);
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-btn:hover {
    color: var(--text-primary);
}

.sertifikat-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.sertifikat-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.sertifikat-gallery img:hover {
    transform: scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Tech Stack Section (Subtle, Clean Badges Grid) */
.stack-section {
    padding: 6rem 1.5rem;
    background-color: var(--bg-primary);
    text-align: center;
}

.stack-section h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.tech-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
}

.tech-badge img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: var(--transition-smooth);
}

.tech-badge span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.tech-badge:hover {
    background: var(--bg-card);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px var(--accent-glow);
}

.tech-badge:hover img {
    filter: grayscale(0%);
}

.tech-badge:hover span {
    color: var(--text-primary);
}

/* Projects Section */
.projects {
    padding: 6rem 1.5rem;
    background-color: var(--bg-secondary);
}

.projects h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Safer minmax for small screens */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    transform: translateZ(0); /* Fix Safari overflow border-radius bug with transformed children */
    -webkit-transform: translateZ(0); /* Webkit support for Safari */
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-media {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #04060b;
}

.project-card img,
.project-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-card:hover .project-media img,
.project-card:hover .project-media video {
    transform: scale(1.05);
}

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

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1rem;
}

.tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-teal);
    background: rgba(20, 184, 166, 0.08);
    padding: 3px 10px;
    border-radius: 100px;
    border: 1px solid rgba(20, 184, 166, 0.12);
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
}

.project-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* Contact Section */
.contact {
    padding: 6rem 1.5rem;
    background-color: var(--bg-primary);
    text-align: center;
}

.contact h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.contact p.contact-sub {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 560px;
    margin: 0 auto 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: left;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px; /* Must be 16px to prevent automatic zooming on iOS Safari focus */
    transition: var(--transition-smooth);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.contact-form .btn-submit {
    margin-top: 0.5rem;
    background: var(--accent);
    color: #ffffff;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.9rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.contact-form .btn-submit:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

/* Social Media Links */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.25rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

.social-icon.instagram:hover {
    background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf, #4f5bd5);
    border-color: transparent;
}

.social-icon.github:hover {
    background: #181717;
    border-color: #181717;
}

.social-icon.linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
}

.social-icon.fastwork {
    padding: 8px;
}

.social-icon.fastwork img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: opacity(0.7);
    transition: var(--transition-smooth);
}

.social-icon.fastwork:hover {
    background: #0056ff;
    border-color: #0056ff;
}

.social-icon.fastwork:hover img {
    filter: opacity(1) brightness(1.5);
}

/* WhatsApp Widget */
#wa-popup {
    position: fixed;
    bottom: calc(25px + env(safe-area-inset-bottom, 0px)); /* Lift button above home indicator on iPhones */
    right: 25px;
    z-index: 999;
}

#wa-btn {
    background-color: #128c7e;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(18, 140, 126, 0.3);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

#wa-btn:hover {
    background-color: #075e54;
    transform: scale(1.05);
}

#wa-box {
    display: none;
    position: absolute;
    bottom: 65px;
    right: 0;
    width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.wa-header {
    background-color: #128c7e;
    color: #ffffff;
    padding: 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa-body {
    padding: 1.25rem;
    text-align: left;
}

.wa-body p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.wa-chat-btn {
    display: block;
    background-color: #128c7e;
    color: #ffffff;
    text-align: center;
    padding: 10px;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.wa-chat-btn:hover {
    background-color: #075e54;
}

#wa-close {
    cursor: pointer;
    font-size: 1.25rem;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

#wa-close:hover {
    opacity: 1;
}

/* Privacy Page Specifics */
.privacy-section {
    padding: 6rem 1.5rem;
    min-height: 80vh;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 24px;
}

.privacy-content h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.privacy-content .date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.privacy-content h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.privacy-content p,
.privacy-content li {
    color: var(--text-secondary);
    font-size: 0.975rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.privacy-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    text-align: center;
    padding: 2rem 1.5rem;
    font-size: 0.9rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px)); /* Safe padding for mobile indicators */
}

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

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

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



/* Responsive Styles */
@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .profile-img-container {
        width: 240px;
        height: 320px;
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(8, 11, 17, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 1.5rem;
        gap: 1.25rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        display: block;
        font-size: 1.05rem;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 1rem;
    }
    
    .section-header h2,
    .projects h2,
    .contact h2 {
        font-size: 1.75rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 15% auto;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   ADDITIONAL SECTIONS FOR ADSENSE COMPLIANCE & RICH CONTENT
   ========================================================================== */

/* Services Section */
.services {
    padding: 6rem 1.5rem;
    background-color: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    transition: var(--transition-smooth);
    text-align: left;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.service-card p {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Experience & Education Timeline */
.timeline-section {
    padding: 6rem 1.5rem;
    background-color: var(--bg-secondary);
}

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

.timeline-container::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--border-color);
    top: 0;
    bottom: 0;
    left: 20px;
}

.timeline-item {
    padding: 0 0 3rem 40px;
    position: relative;
    text-align: left;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    left: 14px;
    top: 5px;
    background: var(--bg-secondary);
    border: 3px solid var(--accent);
    z-index: 2;
    transition: var(--transition-smooth);
}

.timeline-item:hover::after {
    background: var(--accent-teal);
    border-color: var(--accent-teal);
}

.timeline-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-teal);
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.timeline-institution {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.timeline-desc {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 1.5rem;
    background-color: var(--bg-secondary);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question i {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    background: rgba(255, 255, 255, 0.01);
}

.faq-answer p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.925rem;
    line-height: 1.6;
}

.faq-item.active {
    border-color: rgba(99, 102, 241, 0.3);
}

.faq-item.active .faq-question {
    color: var(--accent-teal);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--accent-teal);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    transition: max-height 0.5s ease-in-out;
}
