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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 600;
}

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

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

/* ========================================
   Header & Navigation
   ======================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.logo h1 {
    font-size: 1.5rem;
    color: #007bff;
}

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

.nav-links a {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: #f0f0f0;
    color: #007bff;
}

/* Burger Menu (Mobile) */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* ========================================
   Main Content
   ======================================== */
main {
    margin-top: 80px;
}

section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #007bff, #00c9ff);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: #007bff;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

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

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #00c9ff);
    color: white;
    border-color: #007bff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #007bff;
    border-color: #007bff;
}

.btn-secondary:hover {
    background: #007bff;
    color: white;
}

/* ========================================
   About Section
   ======================================== */
.about {
    background-color: #fff;
}

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

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.about-text p {
    margin-bottom: 1rem;
    color: #666;
    font-size: 1.1rem;
}

.about-highlights {
    list-style: none;
    margin-top: 1.5rem;
}

.about-highlights li {
    padding: 0.5rem 0;
    color: #007bff;
    font-weight: 500;
}

.about-highlights li::before {
    content: '✓';
    margin-right: 0.5rem;
    color: #00c9ff;
}

.about-stats {
    display: grid;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f5f7fa, #e3e7ed);
    border-radius: 10px;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #666;
    font-weight: 500;
}

/* ========================================
   Skills Section
   ======================================== */
.skills {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

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

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #007bff;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.skill-category li:last-child {
    border-bottom: none;
}

/* ========================================
   Works Section
   ======================================== */
.works {
    background-color: #fff;
}

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

.work-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.work-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-image .placeholder {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.work-content {
    padding: 1.5rem;
}

.work-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.work-content p {
    color: #666;
    margin-bottom: 1rem;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.work-tags span {
    background: #f0f0f0;
    color: #007bff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.work-impact {
    margin-top: 1rem;
    padding: 0.8rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #007bff;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.6;
}

/* ========================================
   Student Works Section
   ======================================== */
.student-works {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef3 100%);
    padding: 5rem 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.student-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.student-work-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.student-work-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.student-work-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f0f0f0;
}

.student-work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.student-work-item:hover .student-work-image img {
    transform: scale(1.05);
}

.student-work-content {
    padding: 2rem;
}

.work-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #007bff, #00c9ff);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.student-work-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.work-year {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 1rem;
    font-style: italic;
}

.student-work-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.work-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.work-specs span {
    background: #f8f9fa;
    color: #495057;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid #e9ecef;
}

/* Student Works Summary */
.student-works-summary {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.student-works-summary h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.summary-item {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
}

.summary-item h4 {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.summary-item p {
    color: #666;
    font-weight: 500;
    font-size: 0.95rem;
}

.summary-text {
    color: #666;
    line-height: 1.8;
    font-size: 1.05rem;
    max-width: 900px;
    margin: 0 auto;
}

.view-details-btn {
    margin-top: 1rem;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.student-work-item {
    cursor: pointer;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.contact .section-title {
    color: white;
}

.contact .section-title::after {
    background: white;
}

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

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

.contact-info p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.contact-item {
    margin-bottom: 1rem;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.3rem;
}

.contact-item a {
    color: white;
    text-decoration: underline;
}

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

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
}

/* ========================================
   Contact Form
   ======================================== */
.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: white;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.form-note a {
    color: white;
    text-decoration: underline;
}

/* ========================================
   Footer
   ======================================== */
footer {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

footer p {
    margin-bottom: 0.5rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #007bff;
    margin: 0 0.5rem;
}

.footer-links a:hover {
    color: #00c9ff;
}

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

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

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        position: fixed;
        right: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: right 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-links.active {
        right: 0;
    }

    .burger {
        display: flex;
    }

    .burger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.active .line2 {
        opacity: 0;
    }

    .burger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Hero Section */
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 3rem;
    }

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

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

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

    .hero-image {
        margin-bottom: 2rem;
    }

    .image-placeholder {
        width: 200px;
        height: 200px;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
    }

    /* Student Works */
    .student-works-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
    }

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

    /* Container */
    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }
}

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

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

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

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

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

/* ========================================
   Project Detail Modal
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: block;
}

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

.modal-content {
    position: relative;
    margin: 2% auto;
    width: 90%;
    max-width: 1200px;
    background: white;
    border-radius: 15px;
    animation: slideUp 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 40px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
    background: white;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
    color: #007bff;
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-gallery {
    position: relative;
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.modal-gallery img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 100;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

.gallery-counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.modal-info {
    padding: 1rem 0;
}

.modal-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.modal-info .work-category {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.modal-info .work-year {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

#modalDescription {
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

#modalSpecs {
    margin-bottom: 1.5rem;
}

.modal-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
}

.modal-details h4 {
    margin-bottom: 0.8rem;
    color: #1a1a1a;
    font-size: 1.1rem;
}

.modal-details p {
    line-height: 1.7;
    color: #555;
    margin-bottom: 1rem;
}

.modal-details ul {
    list-style: disc;
    padding-left: 1.5rem;
    color: #555;
}

.modal-details li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Modal Responsive */
@media (max-width: 968px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-gallery {
        min-height: 350px;
    }

    .modal-gallery img {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-gallery {
        min-height: 250px;
    }

    .gallery-prev,
    .gallery-next {
        padding: 10px 12px;
        font-size: 18px;
    }

    .modal-info h2 {
        font-size: 1.5rem;
    }
}

/* ========================================
   Student Works Intro Section Styles
   ======================================== */
.student-works-intro {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.student-works-intro .section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.works-preview {
    margin: 3rem 0;
}

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

.preview-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.preview-item:hover {
    transform: translateY(-5px);
}

.preview-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.preview-item p {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

.works-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat-box {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-width: 120px;
}

.stat-box h4 {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.stat-box p {
    font-size: 0.9rem;
    color: #666;
}

.view-all-works {
    text-align: center;
    margin-top: 3rem;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.back-link {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #0056b3;
}

@media (max-width: 768px) {
    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .preview-item img {
        height: 150px;
    }

    .works-stats {
        gap: 1.5rem;
    }

    .stat-box {
        min-width: 100px;
        padding: 1rem;
    }

    .stat-box h4 {
        font-size: 2rem;
    }
}
