@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700&family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-color: #191A25;
    --text-color: #f8fafc;
    --primary-color: #8b5cf6;
    --secondary-color: #c084fc;
    --card-bg: #1e293b;
    --border-color: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

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

.nav-links li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.25rem 0;
}

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

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Main Container */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 5% 0;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

.full-width-hero {
    max-width: 100%;
    border-radius: 0;
    margin: 0;
    padding: 8rem 5% 6rem;
    position: relative;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    opacity: 0.8;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(25, 26, 37, 0.4), rgba(25, 26, 37, 0.9));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    transition: transform 0.5s ease;
}

.hero-avatar:hover {
    transform: scale(1.05) rotate(5deg);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero h1 span {
    color: var(--primary-color);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero p {
    font-size: 1.1rem;
    max-width: 800px;
    margin-bottom: 2rem;
    color: #cbd5e1;
    position: relative;
    z-index: 2;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: rgba(139, 92, 246, 0.1);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.skill-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.skill-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.skill-card ul {
    list-style-type: none;
}

.skill-card li {
    margin-bottom: 0.5rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
}

.skill-card li::before {
    content: "▹";
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.project-img {
    width: 100%;
    aspect-ratio: 808 / 632;
    background-color: var(--card-bg);
    display: block;
    overflow: hidden;
}

.project-img img, .project-img video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.project-card:hover .project-img img,
.project-card:hover .project-img video {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.2;
}

.project-desc {
    color: #94a3b8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background-color: rgba(139, 92, 246, 0.1);
    color: var(--secondary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Experience/Resume Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
}

.timeline-item {
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.timeline-date {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.timeline-company {
    color: #94a3b8;
    margin-bottom: 1rem;
    font-style: italic;
}

.timeline-content ul {
    margin-left: 1.5rem;
    color: #cbd5e1;
}

.timeline-content li {
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-container {
    max-width: 600px;
    margin: 0 auto 4rem;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 30px;
    text-align: center;
}

.contact-item a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    color: #94a3b8;
    background-color: var(--bg-color);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        padding: 1rem 5%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        display: flex;
    }
}

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

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Glassmorphism & Neon Blobs */
.glass-card {
    background: rgba(30, 41, 59, 0.4) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
    transform-style: preserve-3d;
}

.glass-card > * {
    transform: translateZ(30px);
}

.neon-blob {
    position: absolute;
    filter: blur(60px);
    z-index: 1;
    border-radius: 50%;
    opacity: 0.6;
    animation: floatBlob 10s ease-in-out infinite alternate;
}

.blob-purple {
    top: 20%;
    left: 20%;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
}

.blob-blue {
    bottom: 10%;
    right: 20%;
    width: 250px;
    height: 250px;
    background: var(--secondary-color);
    animation-delay: -5s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

/* Case Detail Pages */
.case-detail {
    max-width: 1000px;
    margin: 0 auto;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 0.3s;
}

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

.case-header {
    margin-bottom: 3rem;
    text-align: center;
}

.case-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.gallery-grid {
    column-count: 3;
    column-gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 900px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
    }
}

.gallery-item {
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
    break-inside: avoid;
    display: inline-block;
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.full-width-media {
    width: 100%;
    border-radius: 0.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* Full Width Hero Override */
.full-width-hero {
    max-width: 100%;
    border-radius: 0;
    margin: 0;
    padding: 8rem 5% 6rem;
}

/* Long landing without gaps */
.long-landing {
    display: flex;
    flex-direction: column;
    max-width: 1400px; /* same as nav max-width */
    margin: 0 auto;
    padding: 0 5%;
}

.long-landing img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.long-landing img.zoomed, .pinterest-grid img.zoomed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    background: rgba(10,10,15,0.95);
    z-index: 9999;
    cursor: zoom-out;
    padding: 2rem;
    box-sizing: border-box;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.video-grid video {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.video-grid video:hover {
    transform: scale(1.02);
}

@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Video Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-height: 90vh;
    max-width: 90vw;
    border-radius: 0.5rem;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.pinterest-grid {
    column-count: 3;
    column-gap: 1.5rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 5%;
}
.pinterest-grid img {
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    display: inline-block;
    border-radius: 8px;
    cursor: zoom-in;
}
@media (max-width: 900px) {
    .pinterest-grid { column-count: 2; }
}
@media (max-width: 600px) {
    .pinterest-grid { column-count: 1; }
}


@media (max-width: 768px) {
    .long-landing { padding: 0 !important; }
    .pinterest-grid { padding: 0 !important; gap: 0 !important; }
    .pinterest-grid .pin-col { gap: 0 !important; }
}
