/* Global Vars & Reset */
:root {
    /* Modern Dark Premium Theme */
    --bg-dark: #0f172a;
    /* Slate 900 */
    --bg-card: #1e293b;
    /* Slate 800 */
    --bg-card-hover: #334155;
    /* Slate 700 */
    --text-primary: #f8fafc;
    /* Slate 50 */
    --text-secondary: #94a3b8;
    /* Slate 400 */
    --accent-primary: #38bdf8;
    /* Sky 400 */
    --accent-secondary: #fbbf24;
    /* Amber 400 (Goldish) */

    --font-main: 'Inter', sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --glow: 0 0 20px rgba(56, 189, 248, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo a {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo a:hover {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-primary);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 1) 100%),
        url('assets/hero-bg.png') no-repeat center center/cover;
    padding: 0 20px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.greeting {
    color: var(--accent-primary);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

h1 {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
    line-height: 1.1;
}

h2 {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 400;
}

.hero-tagline {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: #0ea5e9;
    /* Sky 500 */
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Skills Section */
#skills {
    padding: 120px 50px;
    background-color: var(--bg-dark);
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-primary);
    text-align: center;
    font-weight: 700;
}

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

.skill-card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-5px);
    background-color: var(--bg-card-hover);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: var(--glow);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 24px;
    /* Default color removed to allow specific brand colors */
}

/* Brand Colors */
.fa-windows {
    color: #0078D6;
}

/* Windows Blue */
.fa-linux {
    color: #FCC624;
}

/* Linux Gold (Tux beak color) or White */
.fa-microsoft {
    color: #F25022;
}

/* Microsoft Red-Orange (Office 365) */
.fa-cloud {
    color: #008AD7;
}

/* generic cloud blue/Azure-ish */
.fa-aws {
    color: #FF9900;
}

/* AWS Orange */
.fa-docker {
    color: #2496ED;
}

/* Docker Blue */
.fa-jenkins {
    color: #D24939;
}

/* Jenkins Red */
.fa-java {
    color: #007396;
}

/* Java Blue */
.fa-linkedin {
    color: #0a66c2;
}

/* LinkedIn Blue */
.fa-instagram {
    color: #E4405F;
}

/* Instagram Pink */

.skill-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Contact Section */
#contact {
    padding: 120px 20px;
    text-align: center;
    background: linear-gradient(to top, #0b1120, var(--bg-dark));
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
}

.social-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(56, 189, 248, 0.05);
}

.social-btn.linkedin i {
    color: #0077b5;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Resume Page Styles */
.resume-container {
    max-width: 900px;
    margin: 120px auto 60px;
    padding: 0 40px;
}

.resume-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.header-content h1 {
    font-size: 3rem;
    margin-bottom: 8px;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--text-primary);
}

.resume-title {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 16px;
    font-weight: 500;
}

.contact-info {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-info a {
    color: var(--text-secondary);
}

.contact-info a:hover {
    color: var(--accent-primary);
}

.resume-section {
    margin-bottom: 50px;
}

.resume-section h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    border-left: 4px solid var(--accent-primary);
    padding-left: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.resume-section h2 i {
    color: var(--accent-primary);
    font-size: 1.2rem;
    opacity: 0.8;
}

.resume-section p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.experience-item {
    margin-bottom: 32px;
    position: relative;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.experience-item h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
}

.company {
    color: var(--accent-secondary);
    font-weight: 500;
    margin-bottom: 12px;
}

.date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.exp-details {
    list-style: disc;
    margin-left: 20px;
    color: var(--text-secondary);
}

.exp-details li {
    margin-bottom: 8px;
}

.resume-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.skill-category h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.skill-category p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background-color: var(--text-primary);
    }

    /* Hamburger Animation */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

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

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

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        /* Below navbar */
        gap: 0;
        flex-direction: column;
        background-color: rgba(15, 23, 42, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

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

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

    h1 {
        font-size: 2.5rem;
    }

    .header-content h1 {
        font-size: 2.2rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .resume-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .contact-info {
        flex-direction: column;
        gap: 12px;
    }

    .resume-container {
        padding: 0 20px;
        margin-top: 100px;
    }

    #skills,
    #contact {
        padding: 80px 20px;
    }
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}