/* ===================================
   APPLE GLASSMORPHISM DESIGN SYSTEM
   =================================== */

:root {
    --primary-blue: rgba(0, 122, 255, 1);
    --primary-blue-light: rgba(0, 122, 255, 0.8);
    --primary-blue-lighter: rgba(0, 122, 255, 0.6);
    --primary-blue-subtle: rgba(0, 122, 255, 0.1);
    --primary-gradient: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, #ffffff 100%);
    --secondary-gradient: linear-gradient(135deg, #e5e5e7 0%, #f5f5f7 100%);
    --accent-gradient: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(255, 255, 255, 0.8) 100%);
    --glass-white: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --text-white: #1d1d1f;
    --text-dark: #1d1d1f;
    --text-secondary: rgba(29, 29, 31, 0.7);
    --blur: 20px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Subtle light orbs background effect */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.015) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 0, 0, 0.01) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Glass morphism utility class */
.glass {
    background: var(--glass-white);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

/* ===================================
   NAVIGATION
   =================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.7;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--text-dark);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-dark);
}

.nav-link:hover::after {
    width: 100%;
}

/* ===================================
   CONTAINER & LAYOUT
   =================================== */

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Responsive container widths */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
        padding: 0 1rem;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 1.5rem;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
        padding: 0 2rem;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
        padding: 0 2.5rem;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
        padding: 0 3rem;
    }
}

section {
    padding: 8rem 0;
    position: relative;
    z-index: 1;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 10rem 2rem 12rem 2rem;
    text-align: center;
    z-index: 1;
}

.hero-content {
    max-width: 1000px;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #1d1d1f;
    letter-spacing: -0.04em;
}

.hero-title .line {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    letter-spacing: 0.02em;
    opacity: 1;
    transform: translateY(0);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    opacity: 1;
    transform: translateY(0);
}

.btn-primary,
.btn-secondary {
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-primary i,
.btn-secondary i {
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-blue);
    color: #ffffff;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 122, 255, 0.4);
    background: var(--primary-blue-light);
}

.btn-secondary {
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary-blue);
    border: 1px solid rgba(0, 122, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(0, 122, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(0, 122, 255, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 1;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.scroll-indicator i {
    font-size: 1rem;
    color: var(--primary-blue-lighter);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent);
    border-radius: 2px;
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(0.3); opacity: 0.3; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about {
    position: relative;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.section-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    text-align: center;
}

.about-text {
    font-size: 1.4rem;
    line-height: 1.8;
    font-weight: 300;
    color: var(--text-dark);
    text-align: center;
}

/* ===================================
   WORK SECTION
   =================================== */

.work {
    padding: 10rem 0;
}

.work .section-title {
    text-align: center;
    margin-bottom: 6rem;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.work-card {
    text-decoration: none;
    color: var(--text-dark);
    display: block;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 122, 255, 0.15);
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 122, 255, 0.2);
}

.work-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card:hover .work-card-image img {
    transform: scale(1.05);
}

.work-card-content {
    padding: 2rem;
}

.work-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

.work-card-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.work-card-count {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pdf-placeholder,
.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact {
    padding: 10rem 0;
}

.contact .section-title {
    text-align: center;
    margin-bottom: 6rem;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--text-dark);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 1;
    transform: translateY(0);
}

.contact-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-label i {
    font-size: 0.95rem;
}

.contact-value {
    font-size: 1.4rem;
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-value:hover {
    color: var(--primary-blue-light);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
}

.footer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===================================
   PROJECT PAGES
   =================================== */

.project-page {
    padding-top: 100px;
    min-height: 100vh;
}

.project-header {
    padding: 8rem 0;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-blue-lighter);
    text-decoration: none;
    margin-bottom: 3rem;
    transition: all 0.3s ease;
}

.back-link i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.back-link:hover {
    color: var(--primary-blue);
}

.back-link:hover i {
    transform: translateX(-3px);
}

.project-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #1d1d1f;
}

.project-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ===================================
   GALLERY GRID
   =================================== */

.project-gallery {
    padding: 6rem 0 10rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* Logos grid - 3 per row */
#logos-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
}

.gallery-item {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 122, 255, 0.15);
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 122, 255, 0.2);
}

.gallery-item-image {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.gallery-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Show full logos without cropping */
#logos-grid .gallery-item-image {
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

#logos-grid .gallery-item-image img {
    object-fit: contain;
}

/* Flyers - maintain portrait aspect ratio */
#flyers-grid .gallery-item-image {
    aspect-ratio: 8.5 / 11;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#flyers-grid .gallery-item-image img {
    object-fit: contain;
}

/* Email Signatures - landscape aspect ratio */
#signatures-grid .gallery-item-image {
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

#signatures-grid .gallery-item-image img {
    object-fit: contain;
}

/* Company Profiles - portrait cards with content section */
#company-profiles-grid .gallery-item {
    cursor: default;
}

#company-profiles-grid .gallery-item-image {
    aspect-ratio: 8.5 / 11;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#company-profiles-grid .gallery-item-image img {
    object-fit: contain;
}

#company-profiles-grid .pdf-download-btn {
    width: 100%;
    justify-content: center;
}

/* Website Interfaces - landscape aspect ratio for web designs */
#website-grid .gallery-item-image {
    aspect-ratio: 16 / 10;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#website-grid .gallery-item-image img {
    object-fit: contain;
}

/* Infographics - portrait/tall aspect ratio */
#infographics-grid .gallery-item-image {
    aspect-ratio: 8.5 / 11;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#infographics-grid .gallery-item-image img {
    object-fit: contain;
}

/* Data Visualization - flexible aspect ratio */
#data-viz-grid .gallery-item-image {
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#data-viz-grid .gallery-item-image img {
    object-fit: contain;
}

.gallery-item:hover .gallery-item-image img {
    transform: scale(1.05);
}

/* PDF Gallery */
.pdf-gallery .gallery-item {
    aspect-ratio: auto;
}

.pdf-gallery .gallery-item-image {
    aspect-ratio: 8.5 / 11;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.pdf-gallery .gallery-item-image img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.pdf-item-content {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
}

.pdf-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Gallery Item Content (for company profiles, etc.) */
.gallery-item-content {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    text-align: center;
}

.gallery-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--text-dark);
    line-height: 1.4;
    text-align: center;
}

.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-blue);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.2);
    margin: 0 auto;
    min-width: 140px;
}

.pdf-download-btn:hover {
    background: var(--primary-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
}

.pdf-download-btn i {
    font-size: 1rem;
}

.pdf-download-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: rgba(29, 29, 31, 0.9);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.pdf-download-link:hover {
    background: rgba(29, 29, 31, 1);
    transform: translateY(-2px);
}

/* Video Gallery */
.video-gallery .gallery-item-image {
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
}

.video-gallery video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.4);
    z-index: 2;
}

.video-item:hover .video-play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary-blue-light);
    box-shadow: 0 12px 40px rgba(0, 122, 255, 0.5);
}

.video-play-overlay i {
    margin-left: 4px;
}

.video-item {
    cursor: pointer;
}

.video-item-content {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(40px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.video-modal-content video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

/* ===================================
   LIGHTBOX
   =================================== */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(40px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

/* ===================================
   CV PAGE
   =================================== */

.cv-page {
    padding-top: 100px;
    min-height: 100vh;
}

.cv-section {
    padding: 4rem 0 6rem;
}

.cv-container {
    max-width: 1100px;
}

/* Hero Card */
.cv-hero-card {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(30px);
    border-radius: 30px;
    padding: 4rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.cv-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cv-hero-content {
    position: relative;
    z-index: 1;
}

.cv-hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 122, 255, 0.15);
    color: rgba(0, 122, 255, 1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.cv-hero-name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #1d1d1f 0%, rgba(0, 122, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cv-hero-role {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.cv-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.cv-stat {
    text-align: center;
}

.cv-stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(0, 122, 255, 0.9);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.cv-stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Contact Grid */
.cv-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.cv-contact-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
}

.cv-contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 122, 255, 0.3);
}

.cv-contact-card i {
    font-size: 1.5rem;
    color: rgba(0, 122, 255, 0.7);
}

.cv-contact-card span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Two Column Layout */
.cv-two-column {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

/* Cards */
.cv-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.cv-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.cv-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1rem;
}

.cv-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, rgba(0, 122, 255, 0.8) 0%, transparent 100%);
    border-radius: 10px;
}

/* Experience */
.cv-experience-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cv-experience-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cv-exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.cv-exp-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.cv-company {
    font-size: 1rem;
    color: rgba(0, 122, 255, 0.8);
    font-weight: 500;
}

.cv-year {
    background: rgba(0, 122, 255, 0.1);
    color: rgba(0, 122, 255, 0.9);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.cv-highlights {
    list-style: none;
    padding: 0;
}

.cv-highlights li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.cv-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    background: rgba(0, 122, 255, 0.6);
    border-radius: 50%;
}

/* Education Grid */
.cv-edu-grid {
    display: grid;
    gap: 1rem;
}

.cv-edu-card {
    background: rgba(255, 255, 255, 0.5);
    padding: 1.25rem;
    border-radius: 12px;
}

.cv-edu-year {
    display: inline-block;
    background: rgba(0, 122, 255, 0.1);
    color: rgba(0, 122, 255, 0.9);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cv-edu-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.cv-edu-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Skill Bars */
.cv-skill-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cv-skill-item {
    position: relative;
}

.cv-skill-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.cv-skill-label span:first-child {
    font-weight: 600;
    color: var(--text-dark);
}

.cv-skill-percent {
    color: rgba(0, 122, 255, 0.8);
    font-weight: 700;
    font-size: 0.9rem;
}

.cv-skill-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.cv-skill-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 122, 255, 0.8) 0%, rgba(0, 122, 255, 0.4) 100%);
    border-radius: 10px;
    transition: width 1s ease;
}

/* Tools Grid */
.cv-tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cv-tool-badge {
    background: rgba(0, 122, 255, 0.1);
    color: rgba(0, 122, 255, 0.9);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cv-tool-badge:hover {
    background: rgba(0, 122, 255, 0.2);
    transform: translateY(-2px);
}

/* Languages */
.cv-languages {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cv-lang-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cv-lang-item span {
    font-weight: 600;
    color: var(--text-dark);
}

.cv-lang-dots {
    display: flex;
    gap: 0.5rem;
}

.cv-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
}

.cv-dot.filled {
    background: rgba(0, 122, 255, 0.7);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1200px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
    
    #logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .work-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    #logos-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .cv-two-column {
        grid-template-columns: 1fr;
    }
    
    .cv-hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cv-contact-grid {
        grid-template-columns: 1fr;
    }
    
    .cv-hero-card {
        padding: 2.5rem;
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 0.7rem;
    }
    
    .cv-hero-name {
        font-size: 2.5rem;
    }
    
    .cv-hero-role {
        font-size: 1.2rem;
    }
    
    .cv-hero-card {
        padding: 2rem;
    }
    
    .cv-stat-number {
        font-size: 2rem;
    }
    
    .cv-card {
        padding: 1.5rem;
    }
}
