/* ==================== VARIABLES & RESET ==================== */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f5576c;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #43e97b;
    --warning-color: #fa709a;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

/* ==================== MONITOR FRAME ==================== */
.monitor-frame {
    position: relative;
    width: 100%;
    max-width: 1400px;
    animation: slideInDown 0.8s ease-out;
}

.monitor-bezel {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 600px;
}

.monitor-bezel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 30px;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Power Button */
.power-button {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    border-radius: 50%;
    box-shadow: 
        0 0 10px rgba(67, 233, 123, 0.6),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3);
    animation: powerPulse 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes powerPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(67, 233, 123, 0.6), inset 0 -1px 2px rgba(0, 0, 0, 0.3); }
    50% { box-shadow: 0 0 20px rgba(67, 233, 123, 1), inset 0 -1px 2px rgba(0, 0, 0, 0.3); }
}

/* Screen Content */
.screen {
    background: var(--bg-white);
    border-radius: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Monitor Stand */
.monitor-stand {
    width: 150px;
    height: 40px;
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 0 0 20px 20px;
    margin: -20px auto 0;
    position: relative;
    z-index: 5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.monitor-stand::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 25px;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* ==================== NAVIGATION ==================== */
.navbar {
    background: linear-gradient(90deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    position: relative;
    z-index: 100;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    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;
    letter-spacing: -0.5px;
}

.logo-icon {
    display: inline-block;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

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

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==================== PAGE CONTAINER ==================== */
.page-container {
    flex: 1;
    overflow-y: auto;
    position: relative;
}

.page {
    min-height: 100%;
    padding: 60px 40px;
    opacity: 0;
    transform: translateX(100px);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

.page.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 50px;
    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-out;
}

/* ==================== HOME PAGE ==================== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content {
    animation: slideInLeft 0.8s ease-out;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-text {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 500px;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.hero-image {
    position: relative;
    height: 400px;
    animation: slideInRight 0.8s ease-out;
}

.floating-box {
    position: absolute;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

.box-1 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: 20px;
    left: 20px;
}

.box-2 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    bottom: 40px;
    right: 20px;
    animation-delay: 0.5s;
}

.box-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    bottom: 80px;
    left: 100px;
    animation-delay: 1s;
}

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* ==================== ABOUT PAGE ==================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
}

.about-text p {
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-light), var(--bg-white));
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
    border-color: var(--primary-color);
}

.stat-card h3 {
    font-size: 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-card p {
    color: var(--text-light);
    font-weight: 500;
}

/* ==================== PROJECTS PAGE ==================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    position: relative;
    overflow: hidden;
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.project-card:hover .project-image::after {
    background: rgba(0, 0, 0, 0.1);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

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

.tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* ==================== SKILLS PAGE ==================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skill-category {
    animation: fadeInUp 0.8s ease-out;
}

.skill-category h3 {
    font-size: 22px;
    margin-bottom: 30px;
    color: var(--text-dark);
    font-weight: 600;
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.skill {
    animation: fadeInUp 0.8s ease-out;
}

.skill-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    animation: expandWidth 1.2s ease-out;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

@keyframes expandWidth {
    from { width: 0 !important; }
}

/* ==================== CONTACT PAGE ==================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-info {
    animation: slideInLeft 0.8s ease-out;
}

.contact-item {
    margin-bottom: 40px;
}

.contact-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.contact-item p {
    color: var(--text-light);
    font-size: 16px;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.social-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 600;
}

.social-link:hover {
    color: var(--secondary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: slideInRight 0.8s ease-out;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.submit-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

/* ==================== ACHIEVEMENTS PAGE ==================== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.achievement-card {
    background: linear-gradient(135deg, var(--bg-light), var(--bg-white));
    border-radius: 15px;
    padding: 40px 30px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    animation: fadeInUp 0.8s ease-out;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
    border-color: var(--primary-color);
}

.achievement-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.achievement-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.achievement-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cp-platforms {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
    text-align: left;
}

.cp-item {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.cp-item h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.cp-score {
    color: var(--text-light);
    font-size: 13px;
    margin: 0;
}

.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
    text-align: left;
}

.achievement-item {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.achievement-item h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.achievement-item p {
    color: var(--text-light);
    font-size: 13px;
    margin: 4px 0;
}

.achievement-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    margin-top: 6px;
    transition: var(--transition);
}

.achievement-link:hover {
    color: var(--secondary-color);
}

.achievement-highlight {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    margin-top: 10px;
}

/* ==================== EXTRACURRICULARS PAGE ==================== */
.extracurriculars-content {
    max-width: 800px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

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

.timeline-item {
    margin-bottom: 40px;
    position: relative;
    padding-left: 90px;
    animation: fadeInUp 0.8s ease-out;
}

.timeline-marker {
    position: absolute;
    left: 12px;
    top: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
    z-index: 2;
}

.timeline-card {
    background: linear-gradient(135deg, var(--bg-light), var(--bg-white));
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.timeline-card:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    border-color: var(--primary-color);
}

.timeline-card:hover::before {
    left: 100%;
}

.timeline-header {
    margin-bottom: 12px;
}

.timeline-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.timeline-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
}

.timeline-description {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.timeline-card:hover .timeline-description {
    max-height: 200px;
    opacity: 1;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 15px;
    }

    .timeline-marker {
        left: -1px;
        width: 32px;
        height: 32px;
        border-width: 3px;
    }

    .timeline-item {
        padding-left: 70px;
    }

    .timeline-header h3 {
        font-size: 16px;
    }
}




/* ==================== EXTRACURRICULARS PAGE ==================== */
.extracurriculars-content {
    max-width: 800px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

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

.timeline-item {
    margin-bottom: 40px;
    position: relative;
    padding-left: 90px;
    animation: fadeInUp 0.8s ease-out;
}

.timeline-marker {
    position: absolute;
    left: 12px;
    top: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
    z-index: 2;
}

.timeline-card {
    background: linear-gradient(135deg, var(--bg-light), var(--bg-white));
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.timeline-card:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    border-color: var(--primary-color);
}

.timeline-card:hover::before {
    left: 100%;
}

.timeline-header {
    margin-bottom: 12px;
}

.timeline-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.timeline-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
}

.timeline-description {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.timeline-card:hover .timeline-description {
    max-height: 200px;
    opacity: 1;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 15px;
    }

    .timeline-marker {
        left: -1px;
        width: 32px;
        height: 32px;
        border-width: 3px;
    }

    .timeline-item {
        padding-left: 70px;
    }

    .timeline-header h3 {
        font-size: 16px;
    }
}


/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(90deg, #f8f9fa, #ffffff);
    border-top: 1px solid var(--border-color);
    padding: 20px 30px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

/* ==================== SCROLLBAR ==================== */
.page-container::-webkit-scrollbar {
    width: 8px;
}

.page-container::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.page-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

.page-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) and (min-width: 750px) {
    .monitor-bezel {
        padding: 20px;
        aspect-ratio: 9 / 16;
        min-height: auto;
    }

    .page {
        padding: 50px 25px;
    }

    .page-title {
        font-size: 36px;
        margin-bottom: 35px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .monitor-bezel {
        padding: 15px;
        aspect-ratio: 9 / 16;
        min-height: auto;
    }

    .nav-container {
        padding: 0 15px;
        height: 60px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        gap: 0;
        z-index: 50;
        padding: 20px 0;
    }

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

    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link {
        display: block;
        padding: 15px;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .page {
        padding: 40px 20px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-image {
        height: 300px;
    }

    .page-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        animation: fadeInUp 0.8s ease-out;
    }

    .hero-image {
        animation: fadeInUp 0.8s ease-out;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .monitor-bezel {
        border-radius: 20px;
        padding: 12px;
        min-height: 400px;
    }

    .monitor-stand {
        width: 100px;
        height: 30px;
    }

    .nav-container {
        padding: 0 10px;
    }

    .logo {
        font-size: 18px;
    }

    .page {
        padding: 30px 15px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .page-title {
        font-size: 24px;
    }

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

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