*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}
html, body {
    height: 100%;
    margin: 0;
}
#preloader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #f4f1ea;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-content {
    text-align: center;
}

.loader-title {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.loader-subtitle {
    font-size: 14px;
    letter-spacing: 3px;
    color: #a67c00;
    margin-bottom: 20px;
}

/* Animated Loading Line */
.loader-line {
    width: 0;
    height: 2px;
    background: #000;
    margin: auto;
    animation: loadingLine 2s ease-in-out infinite;
}

@keyframes loadingLine {
    0% { width: 0; }
    50% { width: 180px; }
    100% { width: 0; }
}

/* Hide Animation */
#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

body {
    margin: 0;
    font-family: 'Georgia', serif;
    background: #f4f1ea;
    color: #222;
}

.article-section {
    display: none;
    padding: 40px 8%;
}

.article-section.active {
    display: block;
}

/* subtle paper grain */
body::before{
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/ filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}
.tech-header {
    border-bottom: 2px solid #000;
    padding: 10px 5%;
    background: #f4f1ea;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Remove absolute positioning */
.header-name {
    text-align: center;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(22px, 4vw, 44px);
    letter-spacing: 3px;
}

.subtitle {
    font-size: clamp(10px, 2vw, 14px);
    letter-spacing: 3px;
    color: #a67c00;
}

.header-weather,
.header-datetime {
    font-size: clamp(12px, 2vw, 18px);
}

.nav-links {
    border-bottom: 1px solid #ccc;
    padding: 15px 0;
}

.nav-links ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* ✅ allows wrapping */
    gap: 20px;
    padding: 0;
    margin: 0;
}

.nav-links a {
    font-size: clamp(13px, 2vw, 16px);
}


.nav-links a:hover,
.active-link {
    color: #a67c00;
    border-bottom: 2px solid #a67c00;
    padding-bottom: 4px;
}



/* Smooth fade */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Active Nav Link */
.nav-links a.active-link {
    border-bottom: 2px solid #c6a648;
    color: #c6a648;
}

/* Newspaper Style */
.article-section h1,
.article-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.article-section p {
    font-size: 18px;
    line-height: 1.8;
    text-align: justify;
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: start;
}


/* IMAGE SIDE */

.article-image img {
    width: 100%;
    height: auto;  /* 🔥 REMOVE fixed height */
    max-height: 500px;
    object-fit: cover;
    border: 6px solid #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}


.image-caption {
    font-size: 13px;
    margin-top: 8px;
    color: #555;
    text-align: center;
}
.article-content h1 {
    font-size: 34px;
    margin-bottom: 5px;
}

.article-content h3 {
    font-style: italic;
    font-weight: 500;
    border-bottom: 1px solid #ccc;
    padding-bottom: 8px;
}

.article-meta {
    font-size: 13px;
    color: #777;
    margin: 10px 0 20px 0;
}

.article-content p {
    font-size: 17px;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 18px;
}

/* Newspaper Drop Cap */
.article-content p:first-of-type::first-letter {
    font-size: 50px;
    float: left;
    line-height: 1;
    padding-right: 8px;
    font-weight: bold;
}


/* Remove overflow */
.social-links {
    margin-top: 25px;
}

.social-btn {
    display: inline-block;
    padding: 8px 18px;
    margin: 5px 10px 5px 0;
    border: 1px solid #222;
    font-size: 13px;
    letter-spacing: 1px;
    text-decoration: none;
    color: #222;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: #222;
    color: #fff;
}

/* ================= ABOUT SECTION ================= */

.about-container {
    padding: 10px 8%;
    animation: fadeIn 0.8s ease-in-out;
}

.about-header {
    text-align: center;
    margin-bottom: 15px;
}

.about-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    border-bottom: 2px solid #000;
    display: inline-block;
    padding-bottom: 8px;
}

.about-tagline {
    font-size: 13px;
    letter-spacing: 4px;
    color: #a67c00;
    margin-top: 8px;
    text-transform: uppercase;
}

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

.about-column p {
    font-size: 17px;
    line-height: 1.9;
    text-align: justify;
    margin-bottom: 10px;
}

/* Newspaper Drop Cap */
.about-column p:first-of-type::first-letter {
    font-size: 55px;
    float: left;
    line-height: 1;
    padding-right: 8px;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
}

.about-footer {
    margin-top: 30px;
    text-align: right;
    font-style: italic;
    font-size: 14px;
    border-top: 1px solid #ccc;
    padding-top: 10px;
}
.education-container {
    max-width: 1200px;
    margin: auto;
}

.education-header {
    text-align: center;
    margin-bottom: 40px;
}

.education-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
}

.education-tagline {
    color: #a67c00;
    letter-spacing: 2px;
    font-size: 14px;
}

.education-article-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.education-article {
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.education-article h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 6px;
}

.edu-meta {
    display: block;
    font-size: 13px;
    letter-spacing: 1px;
    color: #a67c00;
    margin-bottom: 10px;
    font-weight: 600;
}

.education-article p {
    line-height: 1.7;
    text-align: justify;
}

/* ================= CONTACT SECTION ================= */

.contact-container {
    max-width: 1200px;
    margin: auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 10px;
}

.contact-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
}

.contact-tagline {
    color: #a67c00;
    letter-spacing: 2px;
    font-size: 14px;
}

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

.contact-info-box h3,
.contact-form-box h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

.contact-info-box p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-info-box a {
    text-decoration: none;
    color: #000;
}

.contact-social {
    margin-top: 20px;
}

.contact-social a {
    display: inline-block;
    margin-right: 15px;
    font-size: 14px;
    letter-spacing: 1px;
    text-decoration: none;
    border-bottom: 1px solid #a67c00;
    padding-bottom: 3px;
}

/* FORM */

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #a67c00;
}

.contact-btn {
    background: #a67c00;
    color: white;
    padding: 12px 30px;
    border: none;
    cursor: pointer;
    letter-spacing: 1px;
    font-size: 14px;
}

.contact-btn:hover {
    background: #000;
}

/* Footer */
.contact-footer {
    text-align: right;
    margin-top: -25px;
    font-style: italic;
    color: #888;
}

/* ================= EXPERIENCE SECTION ================= */

.experience-container {
    max-width: 1200px;
    margin: auto;
}

.experience-header {
    text-align: center;
    margin-bottom: 50px;
}

.experience-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
}

.experience-tagline {
    color: #a67c00;
    letter-spacing: 2px;
    font-size: 14px;
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.experience-item {
    border-left: 3px solid #a67c00;
    padding-left: 25px;
}

.exp-duration {
    font-size: 13px;
    letter-spacing: 1px;
    color: #a67c00;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.experience-item h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 5px;
}

.experience-item h4 {
    font-weight: normal;
    margin-bottom: 15px;
    color: #444;
}

.experience-item ul {
    padding-left: 18px;
}

.experience-item ul li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 15px;
}

/* Footer */
.experience-footer {
    text-align: center;
    margin-top: 60px;
    font-style: italic;
    color: #888;
}

@media (max-width: 992px) {

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

    .article-content {
        margin-top: 20px;
    }

    .header-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .education-article-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
    .experience-grid {
        grid-template-columns: 1fr;
    }
}
/* ================= SKILLS SECTION ================= */

.skills-container {
    max-width: 1200px;
    margin: auto;
}

.skills-header {
    text-align: center;
    margin-bottom: 50px;
}

.skills-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
}

.skills-tagline {
    color: #a67c00;
    letter-spacing: 2px;
    font-size: 14px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.skill-category h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
    border-bottom: 2px solid #a67c00;
    display: inline-block;
    padding-bottom: 5px;
}

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

.skill-category ul li {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    padding-left: 15px;
}

.skill-category ul li::before {
    content: "•";
    color: #a67c00;
    position: absolute;
    left: 0;
}

.skills-footer {
    text-align: center;
    margin-top: 60px;
    font-style: italic;
    color: #888;
}

/* Responsive */
@media (max-width: 1000px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .tech-header {
        padding: 10px;
    }

    .main-title {
        letter-spacing: 2px;
    }

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

    .article-section {
        padding: 25px 5%;
    }

    .article-content p {
        font-size: 15px;
    }

    .social-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .article-content p:first-of-type::first-letter {
        font-size: 32px;
    }
}


