/* style.css */
:root {
    --bg-color: #0a0a0a; /* Deep Black/Grey */
    --card-bg: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --accent-color: #3b82f6; /* AI Blue */
    --accent-glow: rgba(59, 130, 246, 0.5);
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(10, 10, 10, 0.9);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

/* Layouts */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero Section (Home) */
.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--accent-glow);
}

.btn-secondary {
    border: 2px solid var(--text-secondary);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Projects Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.card-img {
    width: 100%;
    height: 200px;
    background-color: #333; /* Placeholder color */
    object-fit: cover;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    margin-bottom: 10px;
    color: var(--accent-color);
}

.tech-stack {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-family: monospace;
}

.impact-list {
    list-style-type: none;
    margin-bottom: 20px;
}

.impact-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    padding-left: 15px;
    position: relative;
}

.impact-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.card-links {
    display: flex;
    gap: 15px;
}

.link-text {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--accent-color);
}

/* Contact Section */
.contact-wrapper {
    text-align: center;
    margin-top: 50px;
}

.contact-info p {
    font-size: 1.2rem;
    margin: 10px 0;
}

.social-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; } /* Add toggle logic if needed */
    nav { padding: 20px; }
}

/* Skills Section Styles */
.skills {
    padding: 60px 20px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    border-top: 1px solid #333;
    padding-top: 40px;
}

.skill-category h3 {
    color: #ff4d4d; /* The Red/Pink color from your video */
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #ff4d4d;
    display: inline-block;
    padding-bottom: 5px;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-pill {
    background-color: white; /* High contrast white pill */
    color: black;
    padding: 12px 20px;
    border-radius: 50px; /* Fully rounded pill shape */
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.skill-pill i {
    font-size: 1.2rem; /* Icon size */
}

/* Hover Effect */
.skill-pill:hover {
    transform: translateX(10px); /* Slides slightly to the right */
    background-color: var(--accent-color); /* Changes to Blue on hover */
    color: white;
}

/* Mobile Tweak */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns on tablets */
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr; /* 1 column on phones */
    }
}

/* Certifications Section */
.certifications {
    padding: 80px 20px;
    border-top: 1px solid #333; /* Separator line */
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    background: linear-gradient(90deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cert-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.3s ease;
    position: relative;
}

/* Hover Effect: Lifts up and glows slightly */
.cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cert-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid #333;
}

.cert-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the box without stretching */
    transition: transform 0.5s ease;
}

/* Zoom effect on image hover */
.cert-card:hover .cert-img-wrapper img {
    transform: scale(1.05);
}

.cert-content {
    padding: 25px;
}

.cert-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.issuer {
    color: var(--accent-color); /* Blue Text for Company Name */
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-style: italic;
}

.cert-link {
    display: inline-block;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 2px;
    transition: color 0.3s;
}

.cert-link:hover {
    color: var(--accent-color);
}

/* Add/Replace this section in style.css for Projects Page */

.projects-wrapper {
    display: flex;
    flex-direction: column;
    gap: 80px; /* Space between the two big projects */
    margin-top: 40px;
}

.project-showcase {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Video takes slightly more space */
    gap: 40px;
    background-color: var(--card-bg);
    border: 1px solid #333;
    border-radius: 16px;
    overflow: hidden;
    padding: 30px;
}

/* Left Side: Media */
.project-media {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.media-content {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #444;
    aspect-ratio: 16/9;
    object-fit: cover;
    background-color: #000;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tags span {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: monospace;
    border: 1px solid #444;
}

/* Right Side: Details */
.project-details h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.project-tagline {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 500;
}

.detail-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.detail-columns h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1rem;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.detail-columns ul {
    list-style: none;
    padding: 0;
}

.detail-columns li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
    position: relative;
    padding-left: 15px;
}

.detail-columns li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Mobile Responsive for Projects */
@media (max-width: 900px) {
    .project-showcase {
        grid-template-columns: 1fr; /* Stack vertically on tablets/phones */
        padding: 20px;
    }
    
    .detail-columns {
        grid-template-columns: 1fr; /* Stack columns vertically */
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 2. Setup Initial States (Hidden) */
.hero h1, .hero p, .cta-buttons, 
.section-title, .project-showcase, 
.skill-category, .cert-card {
    opacity: 0; /* Hidden by default */
    transform: translateY(30px); /* Pushed down slightly */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* 3. The 'Visible' Class (JS will add this) */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.8s ease-out forwards;
}

/* 4. Staggered Skills Animation (The "Pop" effect) */
.skill-pill {
    opacity: 0;
    animation: none;
}

.skill-category.is-visible .skill-pill {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Stagger delays for skills so they pop one by one */
.skill-category.is-visible .skill-pill:nth-child(1) { animation-delay: 0.1s; }
.skill-category.is-visible .skill-pill:nth-child(2) { animation-delay: 0.2s; }
.skill-category.is-visible .skill-pill:nth-child(3) { animation-delay: 0.3s; }
.skill-category.is-visible .skill-pill:nth-child(4) { animation-delay: 0.4s; }

/* Hidden by default, covers the entire screen when active */

.image-modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.85); 
    backdrop-filter: blur(5px);
}

/* Updated image centering */
.modal-image-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Reduced from 90 to 80 to "zoom out" and show all edges */
    max-width: 70vw; 
    max-height: 70vh; 
    
    /* Enforces proper scaling within the new boundaries */
    width: auto;
    height: auto;
    object-fit: contain;
    
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Close button remains the same */
.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10000;
}

.close-modal:hover {
    color: #bbb;
}