/* --- CSS VARIABLES & RESET --- */
:root {
    --bg-color: #050505;
    --card-bg: #0f0f0f;
    --card-border: #1f1f1f;
    --text-main: #dddddd;
    --text-secondary: #a1a1a1;
    --accent: #dddddd;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --separator-color: #1f1f1f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    /* Prevents navbar from covering section titles */
    scroll-padding-top: 100px; 
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -0.05em;
    color: var(--text-main);
    line-height: 1.1;
}

/* --- FULL WIDTH GLOSSY HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 15%;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: none;
    border-radius: 0;
    transition: var(--transition);
}

/* --- UPDATED LOGO STYLE FOR SVG --- */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* This controls the size of your SVG photo */
.logo svg {
    height: 40px; /* Adjust this number to make your photo bigger or smaller */
    width: auto;  /* Keeps your photo perfectly proportioned */
    transition: transform 0.3s ease; /* Adds a nice hover effect */
}

/* Optional: Slight zoom when someone hovers over your photo */
.logo svg:hover {
    transform: scale(1.05);
}
.nav-links { display: flex; gap: 2rem; }

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--text-main); }

.nav-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 0.6rem 1.8rem;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--text-main);
    color: var(--bg-color);
    border-color: var(--text-main);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
}

.hero-badge {
    background: #1a1a1a;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid var(--card-border);
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.hero p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1.5rem auto 2.5rem;
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Updated Button Style (Pill Shape) */
.btn {
    padding: 0.7rem 1.8rem;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-color);
    border: 1px solid var(--text-main);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-main);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* --- SECTION SEPARATORS --- */
section:not(.hero) {
    border-top: 1px solid var(--separator-color);
    width: 100%;
}

/* --- GENERAL CARD STYLE --- */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition);
}

.card:hover {
    border-color: #333;
    transform: translateY(-5px);
}

/* --- ABOUT SECTION --- */
.about-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text .section-title { font-size: 4rem; margin-bottom: 2rem; }

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
    height: 100%;
}

.stat-card {
    background: #0f0f0f;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #1f1f1f;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 180px;
}

.stat-card h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: white;
}

.stat-card span { color: #888; font-size: 0.95rem; }

/* --- SKILLS SECTION --- */
.skills-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.skill-card h3 { margin-bottom: 1.5rem; font-size: 1.2rem; }

.skill-item {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
}

.skill-item::before {
    content: "•";
    color: #444;
    margin-right: 10px;
}

.skill-item:hover { color: var(--text-main); }

/* Tooltip Styles */
.skill-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    width: 220px;
    text-align: center;
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.skill-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.skill-item:hover .skill-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

/* --- PROJECTS SECTION --- */
.projects-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.project-card {
    padding: 0;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    transition: var(--transition);
}

.card-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid var(--card-border);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover {
    border-color: #4e4e4e;
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    transition: var(--transition);
}

.project-card:hover .card-image { transform: scale(1.05); }

.project-content { padding: 1.5rem; }

.project-content h3 { margin-bottom: 0.5rem; font-size: 1.4rem; }

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tech-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.tech-tag {
    background: #1f1f1f;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    color: #ccc;
}

.project-links { display: flex; gap: 1rem; }

/* Small Button with Icons */
.btn-sm {
    padding: 0.5rem 1rem;
    border: 1px solid #333;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
    transition: var(--transition);
    
    /* Flex for Icon Alignment */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px; 
}

.btn-sm:hover {
    background: #1f1f1f;
    border-color: #555;
}

/* --- EXPERIENCE & EDUCATION (FIT SCREEN) --- */
.experience-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0; 
}

.timeline {
    position: relative;
    padding-left: 3rem;
    border-left: 1px solid #333;
    margin-left: 1rem;
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.35rem;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 8px var(--bg-color);
}

.timeline-date {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
    font-weight: 500;
    display: block;
}

.timeline-item h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.timeline-item h4 {
    color: #ccc;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
}

.timeline-item p {
    color: #888;
    line-height: 1.6;
    font-size: 1rem;
    max-width: 550px; /* Forces wrapping exactly like reference */
}

/* --- CERTIFICATIONS SECTION --- */
.cert-section { padding: 6rem 0; }

.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.cert-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cert-icon {
    width: 40px;
    height: 40px;
    background: #1f1f1f;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.cert-info h4 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.cert-info p { font-size: 0.9rem; color: var(--text-secondary); }

/* --- CONTACT SECTION --- */
.contact-section { padding: 6rem 0 8rem; }

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
}

.contact-header {
    text-align: center;
    max-width: 600px;
}

.contact-header h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.contact-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.contact-card-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition);
}

.contact-card-item:hover {
    border-color: #444;
    transform: translateY(-5px);
}

.contact-icon-box {
    width: 48px;
    height: 48px;
    background: #1f1f1f;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.contact-card-info h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.contact-card-info p { color: var(--text-secondary); font-size: 0.95rem; }

.contact-form-wrapper { width: 100%; max-width: 700px; }

.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: #111;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
}

.form-input:focus { outline: none; border-color: #444; }

textarea.form-input { min-height: 150px; resize: vertical; }

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: white;
    color: black;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover { opacity: 0.9; }

/* --- FOOTER --- */
.vkg-footer-section {
    background-color: var(--bg-color);
    border-top: 1px solid var(--separator-color);
    padding: 3rem 0;
    margin-top: auto;
    width: 100%;
}

.vkg-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vkg-copyright { color: #666; font-size: 0.9rem; margin: 0; }

.vkg-social-links { display: flex; gap: 2rem; margin: 0; padding: 0; }

.vkg-social-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.vkg-social-links a:hover { color: var(--text-main); }

/* --- BUTTERY SMOOTH ANIMATIONS --- */
.hidden {
    opacity: 0;
    transform: translateY(50px) scale(0.96);
    filter: blur(5px);
    will-change: opacity, transform, filter;
    transition: 
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* --- STAGGERED DELAYS (CASCADE EFFECT) --- */
/* --- STAGGERED DELAYS (CASCADE EFFECT) - UPDATED --- */

/* 2nd Card waits 100ms */
.projects-grid .project-card:nth-child(2),
.skills-grid .card:nth-child(2),
.stats-grid .stat-card:nth-child(2),
.cert-grid .cert-card:nth-child(2),
.contact-cards-grid .contact-card-item:nth-child(2) { 
    transition-delay: 100ms; 
}

/* 3rd Card waits 200ms */
.projects-grid .project-card:nth-child(3),
.skills-grid .card:nth-child(3),
.stats-grid .stat-card:nth-child(3),
.cert-grid .cert-card:nth-child(3),
.contact-cards-grid .contact-card-item:nth-child(3) { 
    transition-delay: 200ms; 
}

/* 4th Card waits 300ms (Includes WhatsApp now) */
.projects-grid .project-card:nth-child(4),
.skills-grid .card:nth-child(4),
.stats-grid .stat-card:nth-child(4),
.cert-grid .cert-card:nth-child(4),
.contact-cards-grid .contact-card-item:nth-child(4) { 
    transition-delay: 300ms; 
}

/* 5th Card (if any) waits 400ms */
.skills-grid .card:nth-child(5) { 
    transition-delay: 400ms; 
}
/* --- RESPONSIVE MOBILE OPTIMIZATION --- */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .section-title { font-size: 3rem; }
    .hero h1 { font-size: 4rem; }
    nav { padding: 1.5rem 5%; }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    
    /* 1. Global Typography & Titles */
    html { font-size: 14px; }
    
    .section-title, 
    .about-text .section-title,
    .contact-header h2 {
        font-size: 2rem !important;
        text-align: center;
        margin-bottom: 2rem;
        line-height: 1.1;
    }
    
    .contact-header p {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
    
    /* 2. Navbar (Glossy) & Hero */
    .nav-links { display: none; }
    
    nav { 
        padding: 1rem 1.2rem; 
        background: rgba(5, 5, 5, 0.6); 
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .logo { font-size: 1.1rem; }
    .nav-btn { display: none; } 

    .hero {
        padding-top: 60px;
        min-height: 90vh;
    }
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; width: 100%; padding: 0 2rem; }
    .btn { width: 100%; }

    /* 3. About Section (Stacked) */
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-text p { text-align: center; font-size: 0.95rem; }
    
    .stats-grid { 
        grid-template-columns: 1fr 1fr; 
        gap: 0.8rem; 
    }
    .stat-card { min-height: 120px; padding: 1rem; }
    .stat-card h3 { font-size: 2rem; }

    /* 4. PROJECTS (Stacked 1 by 1) */
    .projects-grid {
        grid-template-columns: 1fr; 
        gap: 2rem;
        padding: 0 1rem;
    }

    .project-card {
        transform: none !important; 
        margin-bottom: 0.5rem;
    }

    .card-image-wrapper { height: 180px; }

    .project-content { padding: 1.5rem; }
    .project-content h3 { font-size: 1.3rem; }

    /* 5. Other Grids (Skills, Certs, Contact) */
    .skills-grid, .cert-grid, .contact-cards-grid {
        grid-template-columns: 1fr; 
        gap: 1.5rem;
        padding: 0 1rem;
    }

    /* 6. Experience */
    .timeline { padding-left: 1.5rem; }
    .timeline-item h3 { font-size: 1.3rem; }
    .timeline-item p { font-size: 0.9rem; }
    
    /* 7. Footer */
    .vkg-footer-container { flex-direction: column; gap: 1rem; text-align: center; }
}

/* Extra Small Phones */
@media (max-width: 380px) {
    .hero h1 { font-size: 2rem; }
    .stats-grid { grid-template-columns: 1fr; }

}
