/* Premium Polished Professional Portfolio - Refined Elegance */
/* Color Palette: Midnight Navy, Royal Gold, Pearl White */

:root {
    --bg-primary: #F8F9FA;
    --bg-secondary: #FFFFFF;
    --text-primary: #0A1128; /* Midnight Navy */
    --text-secondary: #3B4256; /* Lighter reading text */
    --accent-gold: #D4AF37;
    --accent-gold-hover: #b8962c;
    --nav-height: 80px;
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    
    /* Refined Shadows */
    --shadow-sm: 0 4px 12px rgba(10, 17, 40, 0.03);
    --shadow-md: 0 10px 30px rgba(10, 17, 40, 0.06);
    --shadow-hover: 0 20px 40px rgba(10, 17, 40, 0.1);
    
    /* Glassmorphism - Much softer, more premium */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    background-color: var(--bg-primary);
    overflow-x: hidden;
    position: relative;
    /* Very subtle dot pattern */
    background-image: radial-gradient(var(--text-secondary) 0.5px, transparent 0.5px);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(to bottom, rgba(248, 249, 250, 0.9), rgba(248, 249, 250, 0.95));
    z-index: -2;
}

/* Typography Basics */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

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

.gradient-text {
    background: linear-gradient(135deg, var(--text-primary), #2C3E50);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Background Accents (Subtle Orbs) */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
}
.orb-1 {
    top: -5%; left: 0%;
    width: 600px; height: 600px;
    background: var(--accent-gold);
}
.orb-2 {
    bottom: -10%; right: -5%;
    width: 700px; height: 700px;
    background: var(--text-primary);
    opacity: 0.05;
}
.orb-3 {
    top: 40%; left: 60%;
    width: 500px; height: 500px;
    background: var(--accent-gold);
}

/* Navigation Structure */
.glass-nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(10, 17, 40, 0.02);
    transition: var(--transition-smooth);
}

.glass-nav:hover {
    background: rgba(255, 255, 255, 0.95);
}

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

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -1px;
}
.logo::after {
    content: '.';
    color: var(--accent-gold);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0%; height: 2px;
    background: var(--accent-gold);
    transition: var(--transition-smooth);
}
.nav-links a:hover::after {
    width: 100%;
}

/* Clean Professional Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    border-radius: 8px; /* Sharper edges for a professional look */
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 0.6rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-secondary);
    border: 1px solid var(--text-primary);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-secondary);
}
.btn-outline:hover {
    border-color: var(--text-primary);
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Soft Premium Cards */
.glass-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border: 1px solid rgba(0,0,0,0.06);
}

/* Layout Standards */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.header-line {
    width: 40px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 2px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: var(--nav-height);
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 5rem;
}

.hero-text {
    flex: 1;
}

.greeting {
    font-size: 1.1rem;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-text .subtitle {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero-text .bio {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 550px;
    line-height: 1.8;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 8px; /* Square squircle shape */
    background: var(--bg-secondary);
    border: 1px solid rgba(0,0,0,0.05);
    font-size: 1.3rem;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--text-primary);
    color: var(--bg-secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.hero-image-wrapper {
    flex: 0 0 400px;
    position: relative;
}

.image-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    background: var(--accent-gold);
    filter: blur(60px);
    opacity: 0.08;
    border-radius: 50%;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

/* About Section */
.about-card {
    padding: 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.about-card p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-card p:last-of-type {
    margin-bottom: 0;
}

.languages-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Experience Section - Clean Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0; bottom: 0;
    width: 2px;
    background: rgba(10, 17, 40, 0.08);
}

.timeline-item {
    padding: 2.5rem;
    display: flex;
    gap: 3rem;
    margin-left: 50px;
    position: relative;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -35px;
    top: 3.5rem;
    width: 12px; height: 12px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.timeline-item:hover::after {
    background: var(--accent-gold);
    transform: scale(1.3);
}

.timeline-meta {
    flex: 0 0 250px;
}

.timeline-meta h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.timeline-meta .company a {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.05rem;
}
.timeline-meta .company a:hover {
    color: var(--text-primary);
}

.timeline-meta .duration {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.8rem;
    font-weight: 600;
    background: rgba(10, 17, 40, 0.04);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Skills Section - Minimal Badges */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border-radius: var(--border-radius-md);
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
}

.skill-card img {
    width: 40px; height: 40px;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.skill-card span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.skill-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

.skill-card:hover img {
    transform: scale(1.1);
}

.core-skill {
    border: 1px solid var(--accent-gold);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

/* Education Section */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.edu-card {
    padding: 2.5rem;
}

.edu-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.edu-card .institute {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.edu-card .year {
    color: var(--bg-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--text-primary);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    display: inline-block;
}

/* Projects Section */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    display: flex;
    overflow: hidden;
    padding: 0;
}

.project-image {
    flex: 0 0 45%;
    overflow: hidden;
    background: var(--bg-primary);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.03);
}

.project-info {
    padding: 3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.tags span {
    background: rgba(10, 17, 40, 0.04);
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
    align-self: flex-start;
}

.project-link i {
    transition: transform 0.3s ease;
}

.project-link:hover {
    color: var(--accent-gold);
}

.project-link:hover i {
    transform: translateX(4px);
}

/* Contact Section */
.contact-card {
    padding: 5rem 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

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

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.typing-active::after {
    content: '|';
    display: inline-block;
    color: var(--accent-gold);
    margin-left: 2px;
    animation: typeBlink 0.8s step-end infinite;
}

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

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 4rem;
        gap: 3rem;
    }
    
    .hero-text .bio {
        margin: 0 auto 2rem auto;
    }
    
    .action-buttons {
        justify-content: center;
    }

    .hero-image-wrapper {
        flex: 0 0 300px;
    }

    .timeline-item {
        flex-direction: column;
        gap: 1.5rem;
        margin-left: 20px;
    }

    .timeline::before {
        left: 0;
    }
    .timeline-item::after {
        left: -26px;
    }

    .project-card {
        flex-direction: column;
    }
    
    .project-image {
        flex: 0 0 250px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; 
    }

    .hero-text h1 {
        font-size: 3rem;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .contact-methods {
        flex-direction: column;
        align-items: center;
    }
}
