/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #f59e0b;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #f59e0b;
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #f59e0b;
    color: #0f172a;
    border-color: #f59e0b;
}

.btn-primary:hover {
    background: transparent;
    color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: #fff;
    color: #0f172a;
    transform: translateY(-2px);
}

.btn-download {
    background: #334155;
    color: #fff;
    margin-top: 1.5rem;
    width: 100%;
}

.btn-download:hover {
    background: #475569;
}

.btn-full {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: #fff;
    padding: 6rem 1rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-greeting {
    font-size: 1.2rem;
    color: #f59e0b;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-subtitle .separator {
    color: #f59e0b;
    margin: 0 0.6rem;
    font-weight: 700;
}

.hero-description {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-buttons .btn-wide {
    flex-basis: 100%;
    text-align: center;
}

.hero-contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1s forwards;
}

.hero-contact-item {
    color: #94a3b8;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.hero-contact-item:hover {
    color: #f59e0b;
}

.hero-contact-item i {
    color: #f59e0b;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: rgba(255,255,255,0.5);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.scroll-indicator a:hover {
    color: #f59e0b;
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
.section-light {
    background: #f8fafc;
    color: #1e293b;
    padding: 5rem 0;
}

.section-dark {
    background: #0f172a;
    color: #f1f5f9;
    padding: 5rem 0;
}

.section-dark-alt {
    background: #1e293b;
    color: #f1f5f9;
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-light .section-title {
    color: #0f172a;
}

.section-dark .section-title,
.section-dark-alt .section-title {
    color: #fff;
}

.underline {
    width: 60px;
    height: 4px;
    background: #f59e0b;
    margin: 0 auto;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-dark .section-subtitle,
.section-dark-alt .section-subtitle {
    color: #94a3b8;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
}

.profile-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 4px solid #f59e0b;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-content h3 {
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 1rem;
}

.about-content p {
    color: #475569;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.tag {
    background: #0f172a;
    color: #f59e0b;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.2);
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #f59e0b, #d97706);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: #f59e0b;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0f172a;
    font-size: 1.3rem;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.timeline-content {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.section-light .timeline-content {
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.section-light .timeline-content:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.timeline-date {
    display: inline-block;
    background: #f59e0b;
    color: #0f172a;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.timeline-content h4 {
    font-size: 0.95rem;
    color: #94a3b8;
    font-weight: 400;
    margin-bottom: 1rem;
}

.section-light .timeline-content h3 {
    color: #0f172a;
}

.section-light .timeline-content h4 {
    color: #64748b;
}

.timeline-content ul {
    list-style: disc;
    padding-left: 1.2rem;
}

.timeline-content li {
    margin-bottom: 0.5rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.section-light .timeline-content li {
    color: #475569;
}

/* ============================================
   CARDS
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.exp-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.highlight-card {
    border-left: 4px solid #f59e0b;
}

.card-icon {
    width: 70px;
    height: 70px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-icon i {
    font-size: 1.8rem;
    color: #f59e0b;
}

.card-date {
    display: inline-block;
    background: #0f172a;
    color: #f59e0b;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.card-body h3 {
    font-size: 1.4rem;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.card-body h4 {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 400;
    margin-bottom: 1rem;
}

.card-body p {
    color: #475569;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.card-body ul {
    list-style: disc;
    padding-left: 1.2rem;
}

.card-body li {
    color: #475569;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* ============================================
   TECH STACK
   ============================================ */
.tech-stack {
    margin-top: 4rem;
    text-align: center;
}

.tech-stack h3 {
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 2rem;
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    min-width: 120px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: #f59e0b;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.15);
}

.tech-item i {
    font-size: 2rem;
    color: #f59e0b;
}

.tech-item span {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
}

/* ============================================
   CONSTRUCTION GALLERY
   ============================================ */
.construction-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    aspect-ratio: 4/3;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.05);
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #64748b;
    transition: all 0.3s ease;
}

.gallery-placeholder:hover {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
    color: #f59e0b;
}

.gallery-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* ============================================
   EDUCATION
   ============================================ */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.edu-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.edu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.wide-card {
    grid-column: span 1;
}

.edu-icon {
    width: 60px;
    height: 60px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem;
}

.edu-icon i {
    font-size: 1.5rem;
    color: #f59e0b;
}

.edu-card h3 {
    font-size: 1.2rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.edu-subject {
    color: #f59e0b;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.edu-provider {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.edu-badge {
    display: inline-block;
    background: #0f172a;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.qual-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.qual-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

.qual-tag.cert {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.3);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info-panel {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2.5rem;
}

.contact-info-panel h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-detail i {
    width: 45px;
    height: 45px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #f59e0b;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-detail div span {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.contact-detail div a,
.contact-detail div p {
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
}

.contact-detail div a:hover {
    color: #f59e0b;
}

.contact-form-panel {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #020617;
    color: #64748b;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    color: #94a3b8;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f59e0b;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Scroll reveal classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        margin-bottom: 1rem;
    }

    .skills-tags {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: #0f172a;
        width: 100%;
        text-align: center;
        transition: 0.4s ease;
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        margin: 0.5rem 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-contact-info {
        flex-direction: column;
        gap: 0.75rem;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 55px;
    }

    .timeline-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .edu-grid {
        grid-template-columns: 1fr;
    }

    .wide-card {
        grid-column: span 1;
    }

    .tech-icons {
        gap: 1rem;
    }

    .tech-item {
        min-width: 100px;
        padding: 1rem;
    }

    .construction-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 5rem 1rem 3rem;
    }

    .section-light,
    .section-dark,
    .section-dark-alt {
        padding: 3rem 0;
    }

    .timeline-content {
        padding: 1.25rem;
    }

    .exp-card {
        padding: 1.5rem;
    }

    .contact-info-panel,
    .contact-form-panel {
        padding: 1.5rem;
    }
}