/* ================================================
           MODERN ELEGANT PORTFOLIO - FULLY RESPONSIVE
           Theme: Deep Navy + Gold Accent + Glassmorphism
           Desktop: Photo on Right | Mobile: Photo on Top
           ================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    background: #0a0f1f;
    color: #e8edf5;
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 80px 0;
    position: relative;
}

#about {
    padding-top: 60px;
}

#resume {
    padding: 60px 0;
}

#services {
    padding: 60px 0;
}

#contact {
    padding: 60px 0;
}

.glass-card {
    background: rgba(18, 25, 45, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 215, 120, 0.15);
    border-radius: 28px;
}

.gradient-text {
    background: linear-gradient(135deg, #ffd966 0%, #ffb347 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.section-intro {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 50px auto;
}

.section-intro .badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(255, 217, 102, 0.12);
    border-radius: 50px;
    color: #ffd966;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.section-intro h2 {
    font-size: 46px;
    margin-bottom: 20px;
    color: #ffffff;
}

.section-intro p {
    font-size: 18px;
    color: #a0aac2;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ffd966, #ffb347);
    color: #0a0f1f;
    box-shadow: 0 8px 20px rgba(255, 185, 71, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255, 185, 71, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255, 217, 102, 0.5);
    color: #ffd966;
}

.btn-outline:hover {
    background: rgba(255, 217, 102, 0.1);
    border-color: #ffd966;
    transform: translateY(-3px);
}

/* Floating Action Button */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd966, #ffb347);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #0a0f1f;
    font-size: 24px;
    box-shadow: 0 5px 20px rgba(255, 185, 71, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.fab-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 185, 71, 0.6);
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s;
    background: rgba(10, 15, 31, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 217, 102, 0.1);
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 26px;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, #ffd966, #ffb347);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 45px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #cbd5e8;
    transition: color 0.2s;
    font-size: 15px;
}

.nav-links a:hover {
    color: #ffd966;
}

.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: #ffd966;
}

/* Hero Section - Desktop: Text Left, Photo Right */
#intro {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(
        circle at 80% 20%,
        rgba(255, 217, 102, 0.08) 0%,
        #0a0f1f 70%
    );
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

/* Desktop default: text first, image second */
.hero-text {
    order: 1;
}

.hero-image {
    order: 2;
    text-align: center;
}

.hero-text h5 {
    font-size: 16px;
    letter-spacing: 4px;
    color: #ffd966;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 68px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 30px 0 35px;
}

.hero-tags span {
    background: rgba(255, 217, 102, 0.1);
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: #ffd966;
    border: 1px solid rgba(255, 217, 102, 0.2);
}

.hero-image img {
    width: 100%;
    max-width: 380px;
    border-radius: 50%;
    border: 4px solid #ffd966;
    box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

.social-links {
    display: flex;
    gap: 25px;
    margin-top: 35px;
}

.social-links a {
    color: #a0aac2;
    font-size: 22px;
    transition: all 0.2s;
}

.social-links a:hover {
    color: #ffd966;
    transform: translateY(-3px);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.about-card {
    background: rgba(18, 25, 45, 0.6);
    border-radius: 32px;
    padding: 40px;
    border: 1px solid rgba(255, 217, 102, 0.1);
}

.info-row {
    display: flex;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-row strong {
    width: 120px;
    color: #ffd966;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.skill-tag {
    background: rgba(255, 217, 102, 0.12);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    color: #e8edf5;
    border-left: 2px solid #ffd966;
}

/* Timeline */
.timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 48px;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 217, 102, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd966;
    font-size: 20px;
}

.timeline-content {
    background: rgba(18, 25, 45, 0.5);
    padding: 24px 28px;
    border-radius: 24px;
    border: 1px solid rgba(255, 217, 102, 0.08);
}

.timeline-content h3 {
    font-size: 22px;
    margin-bottom: 6px;
}

.timeline-date {
    color: #ffd966;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    display: inline-block;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background: rgba(18, 25, 45, 0.5);
    padding: 40px 28px;
    border-radius: 28px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(255, 217, 102, 0.08);
}

.service-item:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 217, 102, 0.3);
    background: rgba(18, 25, 45, 0.8);
}

.service-item i {
    font-size: 48px;
    color: #ffd966;
    margin-bottom: 24px;
}

.service-item h3 {
    font-size: 22px;
    margin-bottom: 14px;
}

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-block h4 {
    font-size: 52px;
    font-weight: 700;
    color: #ffd966;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.form-group {
    margin-bottom: 24px;
}

input,
textarea {
    width: 100%;
    padding: 16px 24px;
    background: rgba(18, 25, 45, 0.7);
    border: 1px solid rgba(255, 217, 102, 0.2);
    border-radius: 28px;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: #ffffff;
    transition: 0.2s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #ffd966;
    background: rgba(18, 25, 45, 0.9);
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
    background: rgba(18, 25, 45, 0.4);
    padding: 20px;
    border-radius: 28px;
}

.contact-info-item i {
    font-size: 32px;
    color: #ffd966;
}

.contact-social {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: flex-start;
}

.contact-social a {
    background: rgba(255, 217, 102, 0.12);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd966;
    font-size: 24px;
    transition: all 0.3s;
}

.contact-social a:hover {
    background: #ffd966;
    color: #0a0f1f;
    transform: translateY(-3px);
}

footer {
    background: #06090f;
    padding: 60px 0 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 217, 102, 0.1);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-social a {
    background: rgba(255, 217, 102, 0.1);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd966;
    font-size: 22px;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: #ffd966;
    color: #0a0f1f;
    transform: translateY(-3px);
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ================================================
           RESPONSIVE DESIGN
           Mobile: Photo comes FIRST (on top)
           Desktop: Photo on RIGHT (as grid)
        ================================================ */
@media (max-width: 992px) {
    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    /* On mobile: image first, text after */
    .hero-image {
        order: 1;
        margin-bottom: 20px;
    }

    .hero-text {
        order: 2;
    }

    .hero-text h1 {
        font-size: 48px;
    }

    .hero-tags {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .about-grid,
    .contact-grid,
    .stats-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* About section: profile card first then skills */
    .about-grid {
        display: flex;
        flex-direction: column;
    }

    .about-grid > div:first-child {
        order: 1;
    }

    .about-grid > div:last-child {
        order: 2;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: #0a0f1f;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        padding: 30px;
        gap: 25px;
        text-align: center;
        border-bottom: 1px solid #ffd96630;
    }

    .nav-links.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .container {
        padding: 0 24px;
    }

    section {
        padding: 60px 0;
    }

    .section-intro h2 {
        font-size: 36px;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 38px;
    }

    .hero-tags span {
        font-size: 12px;
        padding: 6px 16px;
    }

    .section-intro h2 {
        font-size: 32px;
    }

    .timeline-item {
        padding-left: 0;
    }

    .timeline-icon {
        position: relative;
        margin-bottom: 15px;
        display: inline-flex;
    }

    .timeline-content {
        margin-top: 10px;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .stat-block h4 {
        font-size: 36px;
    }

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

    .fab-container {
        bottom: 20px;
        right: 20px;
    }

    .fab-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    .about-card {
        padding: 24px;
    }

    .timeline-content {
        padding: 18px;
    }

    .timeline-content h3 {
        font-size: 18px;
    }
}
