/* ===========================
   CSS RESET & BASE STYLES
   =========================== */

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

:root {
    /* Dark Theme Colors */
    --bg-primary: #0a0e27;
    --bg-secondary: #111827;
    --bg-tertiary: #1a1f36;

    /* Accent Colors - Cyan/Teal */
    --accent-primary: #00d9ff;
    --accent-secondary: #00b8d4;
    --accent-glow: rgba(0, 217, 255, 0.3);

    /* Text Colors */
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    /* Border & Dividers */
    --border-color: #374151;

    /* Font Stack */
    --font-main: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;
    --font-brand: 'Playfair Display', serif;
    --font-signature: 'Great Vibes', cursive;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===========================
   HERO SECTION (HOME PAGE)
   =========================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-bottom: 6rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.15;
    animation: pulse 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 60%);
    opacity: 0.2;
    animation: pulse-alt 10s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.25; }
}

@keyframes pulse-alt {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.3; }
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
}

.name {
    font-family: var(--font-signature);
    font-size: clamp(3.5rem, 10vw, 6.5rem);
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    text-shadow: 0 0 30px var(--accent-glow),
                 0 0 60px rgba(0, 217, 255, 0.2);
    animation: fadeInUp 1.2s ease-out;
    position: relative;
}

.name::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.6;
}

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

.role {
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-weight: 300;
    color: var(--accent-primary);
    margin-bottom: 2.5rem;
    margin-top: 1.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: var(--font-main);
    opacity: 0.95;
    animation: fadeInUp 1.2s ease-out 0.2s both;
}

/* ===========================
   TYPING ANIMATION
   =========================== */

.typing-container {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2.5rem 0;
    font-family: var(--font-main);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    font-weight: 300;
    font-style: italic;
    animation: fadeInUp 1.2s ease-out 0.4s both;
}

#typed-text {
    margin-right: 2px;
}

.cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent-primary);
    font-weight: bold;
}

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

/* ===========================
   BUTTONS
   =========================== */

.cta-buttons {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2.5rem 0;
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

.btn {
    padding: 0.5rem 0;
    font-weight: 400;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.08em;
    position: relative;
    color: #c1c7d0;
    text-transform: uppercase;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: #c1c7d0;
    transition: all 0.3s ease;
}

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

.btn:hover::after {
    background: var(--accent-primary);
    height: 2.5px;
    box-shadow: 0 0 10px var(--accent-glow);
}

.btn-primary {
    /* No special styling - same as base btn */
}

.btn-secondary {
    /* No special styling - same as base btn */
}

/* ===========================
   SOCIAL LINKS
   =========================== */

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    animation: fadeInUp 1.2s ease-out 0.8s both;
}

.social-icon {
    position: relative;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.social-icon:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px var(--accent-glow);
    background: rgba(0, 217, 255, 0.05);
}

/* Tooltip for social icons */

.social-icon::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    padding: 0.5rem 0.75rem;
    background-color: var(--bg-tertiary);
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 1000;
}

.social-icon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--bg-tertiary);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.social-icon:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    bottom: -45px;
}

.social-icon:hover::after {
    opacity: 1;
    bottom: -13px;
}

/* ===========================
   NAVBAR
   =========================== */

.navbar {
    background-color: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-logo {
    font-family: var(--font-signature);
    font-size: 2rem;
    font-weight: 400;
    color: var(--accent-primary);
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    color: var(--accent-secondary);
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

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

/* ===========================
   CONTENT WRAPPER
   =========================== */

.content-wrapper {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

/* ===========================
   ABOUT PAGE
   =========================== */

.about-intro {
    margin-bottom: 3rem;
}

.about-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

.intro-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
}

.resume-section {
    margin-top: 4rem;
}

.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.resume-header h2 {
    font-size: 2rem;
    color: var(--accent-primary);
}

.resume-block {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.resume-block h3 {
    color: var(--accent-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* Skills Grid */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background-color: var(--bg-tertiary);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

/* Experience */
.experience-item {
    margin-bottom: 2rem;
}

.experience-item:last-child {
    margin-bottom: 0;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.exp-header h4 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

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

.exp-company {
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.exp-details {
    list-style: none;
    padding-left: 0;
}

.exp-details li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.exp-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* Certifications */
.cert-list {
    list-style: none;
    padding-left: 0;
}

.cert-list li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.cert-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

/* Education */
.education-item {
    margin-bottom: 1.5rem;
}

.education-item:last-child {
    margin-bottom: 0;
}

.education-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.education-item p {
    color: var(--text-secondary);
}

/* ===========================
   BLOGS PAGE
   =========================== */

.blogs-header {
    margin-bottom: 3rem;
}

.blogs-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
}

.blogs-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.disclaimer {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.75rem;
    opacity: 0.8;
}

.blogs-listing {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.blog-year-group h2 {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.blog-month-group {
    margin-bottom: 2rem;
}

.blog-month-group h3 {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.blog-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(8px);
    box-shadow: -4px 0 0 var(--accent-primary);
}

.blog-item h4 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.blog-item .blog-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.blog-item .blog-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===========================
   BLOG ARTICLE PAGE
   =========================== */

.blog-article {
    max-width: 800px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

#article-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
}

#article-content .article-meta {
    color: var(--text-muted);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

#article-content .article-body {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
}

#article-content .article-body h2 {
    font-size: 1.875rem;
    color: var(--accent-primary);
    margin: 2.5rem 0 1rem;
}

#article-content .article-body h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

#article-content .article-body p {
    margin-bottom: 1.5rem;
}

#article-content .article-body ul,
#article-content .article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

#article-content .article-body li {
    margin-bottom: 0.5rem;
}

#article-content .article-body code {
    background-color: var(--bg-tertiary);
    color: var(--accent-primary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9em;
}

#article-content .article-body pre {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

#article-content .article-body pre code {
    background-color: transparent;
    padding: 0;
}

#article-content .article-body blockquote {
    border-left: 4px solid var(--accent-primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-style: italic;
}

#article-content .article-body a {
    color: var(--accent-primary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

#article-content .article-body a:hover {
    color: var(--accent-secondary);
}

/* ===========================
   FOOTER
   =========================== */

footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    margin-top: auto;
}

/* ===========================
   UTILITY CLASSES
   =========================== */

.loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 3rem;
    font-size: 1.125rem;
}

.error {
    color: #ef4444;
    text-align: center;
    padding: 2rem;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .content-wrapper {
        padding: 2rem 1rem;
    }

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

    .exp-header {
        flex-direction: column;
        gap: 0.25rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2rem;
    }

    .role {
        font-size: 1.125rem;
    }

    .typing-container {
        font-size: 0.9rem;
        min-height: 60px;
    }

    .about-intro h1,
    .blogs-header h1 {
        font-size: 2rem;
    }

    #article-content h1 {
        font-size: 1.875rem;
    }
}
