@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    /* Industrial Engineering Palette */
    --color-primary: #003366; /* Navy Blue */
    --color-secondary: #333333; /* Charcoal Gray */
    --color-accent: #004080; /* Brighter Navy */
    --color-accent-light: #e6f0fa; /* Very Light Blue */
    --color-bg-light: #ffffff;
    --color-text-dark: #1a1a1a;
    --color-text-muted: #4d4d4d;
    --color-white: #ffffff;
    --color-accent-rose: #B75310;
    
    /* Dark Mode Defaults */
    --color-bg-dark: #001220; /* Deep Midnight Blue */
    --color-text-white: #ffffff;
    --color-card-bg-dark: rgba(255, 255, 255, 0.05);

    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s, color 0.5s;
}

body.dark-mode {
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* Background Rain Animation */
#rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.drop {
    position: absolute;
    width: 7px;
    height: 60px;
    background: linear-gradient(transparent, rgba(102, 209, 255, 0.3));
    animation: fall 2s linear infinite;
}

@keyframes fall {
    from { transform: translateY(-100px); }
    to { transform: translateY(100vh); }
}

/* Typography Effects */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.dark-mode h1, .dark-mode h2, .dark-mode h3 {
    color: var(--color-text-white);
}

.headline {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    text-shadow: 0 0 10px rgba(183, 83, 16, 0.3);
}

.text-glow {
    transition: text-shadow 0.3s ease, color 0.3s ease;
    text-shadow: 0 0 5px rgba(183, 83, 16, 0.2);
}

.text-glow:hover {
    text-shadow: 0 0 15px rgba(0, 51, 102, 0.3);
}

.glow-text {
    color: var(--color-primary);
    text-shadow: none;
}

.dark-mode .glow-text {
    color: var(--color-white);
}

.rose-gold-text {
    color: var(--color-primary);
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
}

/* Navigation */
#main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid var(--color-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dark-mode #main-nav {
    background: rgba(0, 18, 32, 0.95);
    border-bottom: 2px solid var(--color-accent);
}

/* Logo Content */
.nav-logo-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-name {
    font-size: 1.8rem;
    line-height: 1.2;
}

.nav-credit-small {
    text-decoration: none;
    color: #d6169c;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    line-height: 1;
}

.nav-credit-small:hover {
    color: #81c784;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.dark-mode .logo {
    color: var(--color-white);
}

.gear-icon {
    width: 35px;
    height: 35px;
    fill: var(--color-primary);
}

.dark-mode .gear-icon {
    fill: var(--color-white);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: inherit;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-accent-rose);
}

.active-indicator {
    position: absolute;
    bottom: -5px;
    height: 2px;
    background: var(--color-accent-rose);
    transition: all 0.3s ease;
    display: none; /* Removed indicator as it interferes with mobile and overlay transitions */
}

/* Nav Extra (Toggle + Hamburger) */
.nav-extra {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1100;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background: var(--color-accent-rose);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Site Credit Banner (Footer) */
.site-credit {
    width: 100%;
    text-align: center;
    padding: 2px 0;
    /* background: var(--color-secondary); */
    /* color: var(--color-white); */
    /* border-top: 1px solid rgba(255, 255, 255, 0.1); */
}

.site-credit a {
    text-decoration: none;
    color: #4CAF50; /* Professional Green */
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.site-credit a:hover {
    color: #81c784;
}

.brand-name {
    text-transform: uppercase;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    color: var(--color-primary);
}

.professional-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--color-secondary);
    font-weight: 500;
}

.hero-text .summary {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 3rem;
    color: var(--color-text-muted);
}

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

.hero-image img {
    margin-top: 40px;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 15px 35px rgba(0, 51, 102, 0.2);
    border: 8px solid var(--color-white);
    outline: 2px solid var(--color-primary);
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.zoom-scale {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.zoom-scale:hover {
    transform: scale(1.05);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 4px; /* Sharper edges for industrial feel */
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: all 0.3s;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-accent);
}

.btn-secondary {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
}

.dark-mode .btn-secondary {
    border-color: var(--color-white);
    color: var(--color-white);
}

.dark-mode .btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-bg-dark);
}

.push-3d {
    position: relative;
    box-shadow: 0 4px 0 #8d3e0b;
    top: 0;
}

.push-3d:active {
    top: 4px;
    box-shadow: 0 0 0 #8d3e0b;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Cards */
.card {
    background: var(--color-card-bg-light);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(183, 83, 16, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.5s;
    backdrop-filter: blur(5px);
    z-index: 2;
    position: relative;
}

.dark-mode .card {
    background: var(--color-card-bg-dark);
}

.gradient-shift {
    background-size: 200% 200%;
    background-image: var(--gradient-shift);
}

.gradient-shift:hover {
    background-position: right bottom;
    box-shadow: 0 15px 40px rgba(183, 83, 16, 0.2);
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

/* Professional Lists */
ul {
    list-style: none;
}

li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

li::before {
    content: "◈"; /* Professional diamond marker */
    position: absolute;
    left: 0;
    color: var(--color-accent-rose);
    font-size: 0.8rem;
    top: 2px;
}

.timeline-item li::before {
    content: "✓"; /* Checkmark for experience tasks */
    font-weight: bold;
}

.skill-category li::before {
    content: "⚡"; /* Bolt for skills */
}

.date {
    font-weight: 700;
    color: var(--color-accent-rose);
    margin-bottom: 0.5rem;
    display: block;
}

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

/* Certificates Grid */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.hidden-cert {
    display: none !important;
}

.explore-more-container {
    text-align: center;
    margin-top: 40px;
}

.cert-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.cert-thumb {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--color-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.1);
    position: relative;
    cursor: pointer;
}

.cert-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cert-thumb:hover img {
    transform: scale(1.1);
}

.pdf-icon {
    font-size: 4rem;
}

.file-type {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-accent-rose);
    color: white;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
}

/* Theme Toggle - Modern Switch Approach */
.theme-switch-container {
    display: flex;
    align-items: center;
}

.theme-switch {
    width: 44px;
    height: 22px;
    background: #e6f0fa;
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-mode .theme-switch {
    background: #003366;
    border-color: #ffffff;
}

.switch-handle {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #003366;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.dark-mode .switch-handle {
    transform: translateX(22px);
    background: #ffffff;
}

.switch-icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 4px;
    font-size: 0.6rem;
}

.theme-btn:hover {
    box-shadow: 0 0 10px rgba(0, 51, 102, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    margin: auto;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    top: 5%;
    background: var(--color-bg-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(183, 83, 16, 0.5);
}

.dark-mode .modal-content {
    background: var(--color-bg-dark);
}

#modal-body {
    width: 100%;
    height: 100%;
}

#modal-body iframe, #modal-body img {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2010;
}

.close:hover {
    color: var(--color-accent-rose);
}

/* Footer */
footer {
    padding: 50px 0;
    border-top: 1px solid rgba(183, 83, 16, 0.2);
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .section-container {
        padding: 50px 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        width: 70%;
        height: 100vh;
        background: #ffffff;
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    }

    .dark-mode .nav-links {
        background: #001220;
    }

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

    .nav-links li {
        margin: 2px 0;
    }

    .nav-links a {
        font-size: 1.8rem;
    }

    #hero {
        min-height: auto;
        padding: 130px 20px 40px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-text .summary {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .professional-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .hero-image {
        order: -1;
    }

    .hero-image img {
        margin-top: 0;
        width: 100%;
        max-width: 200px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .headline {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }

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

    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content {
        height: 70vh;
        top: 15%;
    }

    .logo {
        font-size: 1.3rem;
    }

    .gear-icon {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    #hero {
        padding: 90px 15px 30px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .professional-title {
        font-size: 1.1rem;
    }

    .hero-text .summary {
        font-size: 0.9rem;
    }

    .hero-image img {
        width: 100%;
        max-width: 170px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .nav-links {
        width: 100%;
    }

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

    .section-container {
        padding: 40px 15px;
    }

    .card {
        padding: 20px;
    }

    .logo {
        font-size: 1.1rem;
    .logo-name {
        font-size: 1.2rem;
    }

    .nav-credit-small {
        font-size: 0.55rem;
    }
}

/* Contact Dark Mode Fix */
.dark-mode .contact-list a {
    color: #add8e6; /* Standard light blue for links in dark mode */
    text-shadow: none;
    font-weight: 500;
}

.dark-mode .contact-list a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.dark-mode .contact-list strong {
    color: var(--color-text-white);
}

.dark-mode .contact-card p {
    color: #cccccc;
}

.contact-list li::before {
    display: none; /* Hide custom marker for contact list as it uses bold labels */
}
