:root {
    --bg-color: #0b1021;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #cfb53b;
    /* Old Gold */
    --accent-hover: #e6c94c;
    --gradient-1: linear-gradient(135deg, #cfb53b 0%, #a48f2e 100%);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.btn-primary {
    background: var(--gradient-1);
    color: #000;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(207, 181, 59, 0.3);
}

.btn-secondary {
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    margin-left: 15px;
}

.btn-secondary:hover {
    background: rgba(207, 181, 59, 0.1);
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(5, 5, 5, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a:not(.btn-primary) {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--text-primary);
}

.lang-toggle a {
    border: 1px solid var(--glass-border);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem !important;
    transition: var(--transition);
}

.lang-toggle a:hover {
    border-color: var(--accent-color);
    background: rgba(207, 181, 59, 0.1);
    color: var(--accent-color) !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at top right, rgba(207, 181, 59, 0.1), transparent 40%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin: 20px 0;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 30px;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Hero Visual Updates */
.hero-image-container {
    position: relative;
    max-width: 450px;
    margin: 0 auto;
    border-radius: 20px;
}

.floating-stats {
    position: absolute;
    bottom: -20px;
    right: -20px;
    left: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    padding: 20px;
    background: rgba(11, 16, 33, 0.85);
    /* Darker background for readability */
    border: 1px solid var(--accent-color);
}

.stat-item {
    padding: 10px;
    border: none;
    background: transparent;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.01);
}

.stat-item .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-item .label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-top: 5px;
    display: block;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--text-secondary);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.education {
    margin-top: 40px;
}

.edu-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    background: var(--card-bg);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.edu-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    background: rgba(207, 181, 59, 0.1);
    padding: 15px;
    border-radius: 50%;
}

.edu-item h4 {
    margin-bottom: 5px;
}

.edu-item span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder i {
    font-size: 5rem;
    color: var(--glass-border);
}

/* Profile Image Cropping */
.profile-container {
    width: 100%;
    /* height: auto;  removed to let aspect-ratio work better */
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    /* This cuts off the overflow from the scaled image */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    aspect-ratio: 3/4;
    /* Force a nice portrait ratio */
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    /* Focus mainly on the face/top, which pushes bottom (watermark) down */
    transform: scale(1.15);
    /* Zoom in to push edges out used to hide watermark */
    transition: transform 0.5s ease;
}

.profile-container:hover .profile-img {
    transform: scale(1.2);
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--bg-color);
    border: 2px solid var(--accent-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

.timeline-content {
    padding: 20px 30px;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.timeline-content .date {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.timeline-content h4 {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.media-wrapper {
    position: relative;
    height: 250px;
    background: #000;
    overflow: hidden;
}

.media-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.media-wrapper:hover video {
    transform: scale(1.05);
}

.media-wrapper .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 60%);
    pointer-events: none;
    z-index: 1;
}

/* Legacy support if needed */
.project-image {
    height: 200px;
    background: #111;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image i {
    font-size: 3rem;
    color: var(--text-secondary);
    z-index: 1;
}

.project-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags span {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

/* Skills Section */
.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.skill-category h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-tags span {
    padding: 10px 20px;
    background: var(--card-bg);
    border: 1px solid var(--access-color);
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.skill-tags span:hover {
    border-color: var(--accent-color);
    background: rgba(207, 181, 59, 0.1);
    color: var(--accent-color);
}

/* Contact Section */
.contact-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.btn-reveal {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-reveal:hover {
    border-color: var(--accent-color);
    color: var(--text-primary);
}

.hidden-contact {
    display: none;
    color: var(--text-primary);
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-text {
        margin: 0 auto 30px;
    }

    .about-grid,
    .skills-wrapper {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
    }



}

/* Blog Styles */
.blog-header {
    text-align: center;
    padding-top: 150px;
    padding-bottom: 50px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.featured-post {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    overflow: hidden;
    padding: 0;
}

.featured-image {
    height: 100%;
    min-height: 350px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.featured-post:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-category {
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.featured-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.featured-content h2 a {
    color: var(--text-primary);
}

.featured-content h2 a:hover {
    color: var(--accent-color);
}

.post-excerpt {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.post-meta {
    display: flex;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.card-content h3 a {
    color: var(--text-primary);
}

.card-content h3 a:hover {
    color: var(--accent-color);
}

.card-content .post-meta {
    margin-top: auto;
    margin-bottom: 0;
    font-size: 0.8rem;
}

/* Responsive Blog */
@media (max-width: 768px) {
    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-image {
        height: 250px;
    }

    .featured-content {
        padding: 25px;
    }

    .featured-content h2 {
        font-size: 1.5rem;
    }
}


/* Share Section */
.share-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
}

.qr-code-wrapper {
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    flex-shrink: 0;
}

.qr-img {
    width: 150px;
    height: 150px;
    display: block;
}

.share-info h3 {
    margin-bottom: 10px;
    color: var(--accent-color);
}

.share-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .share-container {
        flex-direction: column;
        text-align: center;
    }
}