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

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-light: #f8fafc;
    --text-gray: #94a3b8;
    --card-bg: #1e293b;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.75;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.logo-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: filter 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.logo:hover .logo-text {
    transform: translateY(-1px) scale(1.04);
    filter: drop-shadow(0 6px 14px rgba(99, 102, 241, 0.35));
}

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

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

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

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

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    position: relative;
}

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

.hero-content {
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 500px;
}

.availability-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.availability-pill i {
    font-size: 0.55rem;
}

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

.btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

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

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

/* Small Profile Image beside name */
.hero-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.profile-img-small {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-darker), var(--bg-darker)) padding-box,
                linear-gradient(135deg, #667eea 0%, #764ba2 100%) border-box;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    object-fit: cover;
    object-position: center;
    /* Image quality enhancement */
    image-rendering: -webkit-optimize-contrast;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    filter: contrast(1.1) brightness(1.05) saturate(1.1);
    flex-shrink: 0;
}

/* 3D Cube Animation */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-direction: column;
}

.floating-cube {
    perspective: 1000px;
    width: 300px;
    height: 300px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

.face {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 3px solid;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.9;
    gap: 0.5rem;
}

.face i {
    font-size: 4rem;
}

.face span {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Colorful cube faces */
.front {
    transform: rotateY(0deg) translateZ(150px);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.3), rgba(255, 107, 53, 0.1));
    border-color: #ff6b35;
    color: #ff6b35;
}

.back {
    transform: rotateY(180deg) translateZ(150px);
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.3), rgba(41, 128, 185, 0.1));
    border-color: #2980b9;
    color: #3498db;
}

.right {
    transform: rotateY(90deg) translateZ(150px);
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.3), rgba(241, 196, 15, 0.1));
    border-color: #f1c40f;
    color: #f39c12;
}

.left {
    transform: rotateY(-90deg) translateZ(150px);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.3), rgba(52, 152, 219, 0.1));
    border-color: #3498db;
    color: #2980b9;
}

.top {
    transform: rotateX(90deg) translateZ(150px);
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.3), rgba(231, 76, 60, 0.1));
    border-color: #e74c3c;
    color: #c0392b;
}

.bottom {
    transform: rotateX(-90deg) translateZ(150px);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(99, 102, 241, 0.1));
    border-color: #6366f1;
    color: #8b5cf6;
}

@keyframes rotateCube {
    from { transform: rotateX(0deg) rotateY(0deg); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 0; top: 10px; }
    50% { opacity: 1; top: 20px; }
}

/* Section Styles */
section {
    padding: 5rem 0;
    scroll-margin-top: 95px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

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

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

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--card-bg);
    padding: 2.4rem 2.2rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

.about-card p {
    color: var(--text-gray);
    line-height: 1.9;
}

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

.skill-category {
    background: var(--card-bg);
    padding: 2.25rem;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.category-title {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.skill-bar {
    height: 8px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 10px;
    transition: width 1s ease;
}

.skill-stack {
    margin-top: 0;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1rem;
}

.tech-tag {
    padding: 0.5rem 1rem;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: #f8fafc;
    font-weight: 600;
}

.tech-tag i {
    color: #ffffff;
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.3);
}

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

.projects .container {
    position: relative;
}

.projects-intro {
    max-width: 760px;
    margin: -1rem auto 2.6rem;
    text-align: center;
    color: #9fb0c8;
    font-size: 1rem;
    line-height: 1.85;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
}

.project-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(71, 85, 105, 0.42);
    background: linear-gradient(165deg, #18253b 0%, #111a2d 100%);
    box-shadow: 0 12px 26px rgba(2, 6, 23, 0.28);
    transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
    animation: projectReveal 0.7s ease both;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(147, 197, 253, 0.58);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.52);
}

.project-card:nth-child(2) {
    animation-delay: 0.08s;
}

.project-card:nth-child(3) {
    animation-delay: 0.16s;
}

.project-card:nth-child(4) {
    animation-delay: 0.24s;
}

.project-surface {
    min-height: 100%;
    padding: 1.35rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    position: relative;
}

.project-surface::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0.95;
}

.project-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.project-rentorra .project-surface::before {
    background: linear-gradient(90deg, #0ea5e9, #38bdf8);
}

.project-gym .project-surface::before {
    background: linear-gradient(90deg, #f97316, #f59e0b);
}

.project-cinemaflow .project-surface::before {
    background: linear-gradient(90deg, #ef4444, #ec4899);
}

.project-funngro .project-surface::before {
    background: linear-gradient(90deg, #22c55e, #14b8a6);
}

.project-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.68rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    color: #dbe8ff;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 800;
    background: rgba(30, 41, 59, 0.75);
}

.project-state {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: #86efac;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.project-state i {
    font-size: 0.42rem;
}

.project-surface h3 {
    font-size: 1.32rem;
    line-height: 1.32;
    margin-bottom: 0;
    color: #f8fafc;
}

.project-summary {
    margin-bottom: 0;
    color: #b7c6dc;
    line-height: 1.72;
    font-size: 0.95rem;
}

.project-highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.project-highlights li {
    position: relative;
    padding-left: 1rem;
    color: #d8e3f5;
    font-size: 0.89rem;
    line-height: 1.55;
}

.project-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.54rem;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #7dd3fc;
}

.project-footer {
    margin-top: auto;
    border-top: 1px solid rgba(71, 85, 105, 0.5);
    padding-top: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.95rem;
}

.project-tech span {
    padding: 0.28rem 0.6rem;
    border-radius: 8px;
    font-size: 0.77rem;
    font-weight: 600;
    color: #d8e8ff;
    background: rgba(59, 130, 246, 0.16);
    border: 1px solid rgba(125, 211, 252, 0.25);
}

.project-actions {
    display: flex;
    align-items: center;
}

.project-link {
    padding: 0.62rem 1rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
    filter: brightness(1.07);
}

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

/* Services Section */
.services {
    background: var(--bg-darker);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid rgba(99, 102, 241, 0.14);
    border-radius: 18px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 30px rgba(99, 102, 241, 0.2);
}

.service-card i {
    font-size: 1.6rem;
    color: #c4b5fd;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.85rem;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.85;
}

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

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

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

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid var(--bg-darker);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    width: calc(50% - 40px);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: transform 0.3s;
}

.timeline-card:hover {
    transform: translateX(-10px);
}

.timeline-item:nth-child(odd) .timeline-card:hover {
    transform: translateX(10px);
}

.timeline-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.timeline-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

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

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

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

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

.contact-items {
    margin-bottom: 2rem;
}

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

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-gray);
    margin: 0;
}

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

.social-link {
    min-width: 50px;
    height: 50px;
    padding: 0 1rem;
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 1rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--gradient);
    transform: translateY(-5px);
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.form-status {
    min-height: 1.2rem;
    margin-top: 0.9rem;
    color: #34d399;
    font-size: 0.9rem;
    font-weight: 600;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    color: var(--text-light);
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.footer p {
    color: var(--text-gray);
    margin: 0.5rem 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0.65rem 0 0.35rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.footer-links a i {
    font-size: 1rem;
}

.footer-links a:hover {
    color: #c4b5fd;
    border-color: #c4b5fd;
}

.footer i {
    color: var(--accent-color);
}

/* Particles Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Project Showcase Pages */
.project-page-body {
    min-height: 100vh;
    background: var(--bg-darker);
}

.project-page {
    padding: 4rem 0;
}

.back-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}

.back-link:hover {
    color: var(--text-light);
}

.project-page-header {
    background: var(--card-bg);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 18px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.project-page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.project-page-header p {
    color: var(--text-gray);
    margin-bottom: 1.25rem;
}

.project-page-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.live-preview-card {
    background: var(--card-bg);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 18px;
    overflow: hidden;
}

.preview-title {
    padding: 0.9rem 1rem;
    background: rgba(99, 102, 241, 0.2);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    font-weight: 600;
}

.live-preview-frame {
    width: 100%;
    height: 70vh;
    border: 0;
    background: #fff;
}

.preview-note {
    color: var(--text-gray);
    padding: 0.9rem 1rem 1rem;
    margin: 0;
    font-size: 0.92rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-visual {
        order: -1;
        margin-bottom: 2rem;
    }

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

    .projects-intro {
        margin: -0.8rem auto 1.8rem;
        font-size: 0.96rem;
        line-height: 1.7;
    }

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

    .project-surface {
        padding: 1.2rem 1rem 1.05rem;
    }

    .project-surface h3 {
        font-size: 1.18rem;
    }

    .project-summary {
        font-size: 0.91rem;
    }

    .project-highlights li {
        font-size: 0.84rem;
    }

    .service-card {
        padding: 1.6rem;
    }

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

    .timeline-dot {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }

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

    .live-preview-frame {
        height: 65vh;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .project-link {
        width: 100%;
        justify-content: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.35rem;
    }
}
