/* Global Styles */
:root {
    --primary-color: #2a2a2a;
    --secondary-color: #f5f5f5;
    --accent-color: #ff4d4d;
    --text-color: #333;
    --light-text: #777;
    --white: #ffffff;
    --black: #000000;
    --transition: all 0.3s ease;
    --side-padding: min(8vw, 120px);
    --content-max-width: 1400px;
    --section-spacing: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--secondary-color);
    overflow-x: hidden;
    min-width: 320px; /* Prevents site from getting too narrow */
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    min-width: 280px;
    margin: 0 auto;
    padding: 0 var(--side-padding);
}

/* Add container class to main sections that need padding */
.hero,
.about-section,
.portfolio-section,
.services-section,
.contact-section {
    padding-left: var(--side-padding);
    padding-right: var(--side-padding);
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #e63939;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-download {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-download:hover {
    background-color: var(--accent-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.decorative-line {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.decorative-line span {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links li a {
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    padding: 150px 0 100px;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-content h4 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--light-text);
}

.hero-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image .image-placeholder {
    width: 100%;
    height: 500px;
    background-color: #ddd;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}


.hero .container,
.hero-flex {
    position: relative;
    z-index: 2;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    height: 100%;
}

.hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    margin-left: 4vw;
    margin-right: 0;
    min-width: 0;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: var(--white);
}

.about-content {
    display: flex;
    gap: calc(var(--element-padding) * 2);
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--light-text);
}

.skills {
    display: flex;
    gap: 50px;
    margin-top: 30px;
}

.skill-category h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.skill-category ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.skill-category ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.about-image {
    flex: 1;
}

.about-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* Portfolio Section */
.portfolio-section {
    padding: 100px 0;
    background-color: var(--secondary-color);
    overflow: hidden;
}

.portfolio-carousel {
    position: relative;
    padding: 2rem 0;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0 5%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 2rem;
    padding: 2rem 0;
    align-items: center;
}

.portfolio-item {
    scroll-snap-align: center;
    flex: 0 0 calc(33.333% - 1.33rem);
    transition: transform 0.4s cubic-bezier(.4,2,.6,1), box-shadow 0.4s cubic-bezier(.4,2,.6,1), z-index 0.4s;
    position: relative;
    background-color: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform-origin: center;
    opacity: 0.7;
    transform: scale(0.9);
    cursor: pointer;
    z-index: 1;
}

.portfolio-item:hover {
    transform: scale(1.12);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
    opacity: 1;
}

.item-image {
    height: 250px;
    background-color: #ddd;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.portfolio-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-video {
    opacity: 1;
}

.portfolio-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.portfolio-item p {
    color: var(--light-text);
    transition: all 0.3s ease;
}

.portfolio-item:hover h3,
.portfolio-item:hover p {
    transform: scale(1.05);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
    z-index: 3;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 1024px) {
    .portfolio-item {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .portfolio-item {
        flex: 0 0 100%;
    }
    
    .carousel-container {
        padding: 0 2%;
    }
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--secondary-color);
    padding: 40px 30px;
    border-radius: 10px;
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

.contact-content {
    display: flex;
    gap: calc(var(--element-padding) * 2);
}

.contact-info {
    flex: 1;
    max-width: 420px;
    margin: 0 auto 32px auto;
    text-align: center;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    text-align: center;
}

.contact-info h4 {
    font-size: 1.3rem;
    margin-bottom: 18px;
    color: var(--accent-color);
    text-align: center;
}

.contact-info p {
    margin-bottom: 38px;
    color: var(--light-text);
    text-align: justify;
    line-height: 1.7;
}

.contact-details {
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.detail-item i {
    margin-right: 15px;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--primary-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-form {
    flex: 1;
    max-width: 480px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    margin-bottom: 6px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-status {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: none;
    border: none;
    box-shadow: none;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.footer-links a {
    color: var(--white);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .about-image,
    .hero-image {
        margin-top: 50px;
    }
    
    .skills {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: var(--transition);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero {
        flex-direction: column;
        padding: 100px 0 40px;
        min-height: 60vh;
    }
    
    .hero-bg-video {
        height: 60vw;
        min-height: 180px;
        max-height: 300px;
        width: 100vw;
        left: 0;
        top: 0;
        object-fit: cover;
        border-radius: 0;
        position: absolute;
        z-index: 0;
        opacity: 0.45;
    }
    
    .hero-flex {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        z-index: 2;
    }
    
    .hero-left, .hero-right {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        align-items: center;
        text-align: center;
    }
    
    .hero-left {
        align-items: center;
        text-align: center;
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-content {
        padding-right: var(--element-padding);
        margin-bottom: 50px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h3 {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* Dark mode styles */
body.dark-mode {
    --primary-color: #f5f5f5;
    --secondary-color: #1a1a1a;
    --text-color: #e0e0e0;
    --white: #2a2a2a;
    --black: #ffffff;
    background-color: #121212;
}

body.dark-mode .portfolio-item,
body.dark-mode .service-card,
body.dark-mode .about-image .image-placeholder,
body.dark-mode .hero-image .image-placeholder {
    background-color: #2a2a2a;
}

/* Floating dark mode button */
.dark-mode-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--white);
    color: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    transition: all 0.3s ease;
}

.dark-mode-fab:hover {
    transform: scale(1.1);
}

.dark-mode-fab i {
    color: #111;
    font-size: 1.7rem;
    transition: color 0.3s;
}

body.dark-mode .dark-mode-fab {
    background-color: #222;
}

body.dark-mode .dark-mode-fab i {
    color: #ff4d4d;
}

/* Dark mode header styles */
body.dark-mode header {
    background-color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .top-bar {
    background-color: #1a1a1a;
}

body.dark-mode .social-icons a {
    color: #e0e0e0;
}

body.dark-mode .menu-btn {
    color: #e0e0e0;
}

/* Dark mode text colors */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode p {
    color: #e0e0e0;
}

/* Dark mode section backgrounds */
body.dark-mode .about-section,
body.dark-mode .services-section {
    background-color: #1a1a1a;
}

body.dark-mode .portfolio-section,
body.dark-mode .contact-section {
    background-color: #121212;
}

/* No scroll when mobile menu is open */
body.no-scroll {
    overflow: hidden;
}

/* Sticky header styles */
header.sticky {
    padding: 10px 0 !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
}

.dark-mode header.sticky {
    background-color: rgba(26, 26, 26, 0.98) !important;
}

/* Animation styles */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    :root {
        --section-spacing: 70px;
        --side-padding: min(6vw, 40px);  /* Adjusted for mobile */
        --content-max-width: 1200px;       /* Slightly reduced for better spacing */
        --section-vertical-padding: 120px; /* Added separate vertical spacing */
        --element-padding: 2rem;           /* New variable for inner elements */
    }
    
    .hero-content h1 {
      font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-content h3 {
      font-size: clamp(1rem, 5vw, 1.5rem);
    }
}

/* Portfolio Scroll Section */
.portfolio-scroll-container {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    margin: 3rem 0;
    padding: 2rem 0;
}

.portfolio-scroll-wrapper {
    display: flex;
    gap: 1.5rem;
    padding: 2rem 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    align-items: center;
}

.portfolio-scroll-wrapper::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

/* Scroll Controls */
.scroll-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.scroll-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.scroll-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .portfolio-item {
      flex: 0 0 calc(50% - 1rem); /* 2 items visible on tablets */
    }
}

@media (max-width: 768px) {
    .portfolio-item {
      flex: 0 0 100%; /* 1 item visible on mobile */
      min-width: 280px;
    }
    
    .portfolio-scroll-wrapper {
      gap: 1rem;
    }
}

.hero-flex, .about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.hero-left, .hero-right, .about-text, .about-image {
    flex: 0 1 520px;
    max-width: 520px;
    width: 100%;
}

.hero-left h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-left .highlight {
    display: inline-block;
}

.hero-left .accent {
    color: #000000; /* black accent */
    font-weight: 800;
}

.hero-desc {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 2rem;
    max-width: 400px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-cv {
    background: #000000;
    color: #fff;
    border-radius: 2rem;
    padding: 0.8rem 2rem;
    font-weight: 600;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cv:hover {
    background: #333333;
}

.btn-play {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #000000;
    border: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: background 0.2s;
}

.btn-play:hover {
    background: #e0e0e0;
}

.hero-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img-bg {
    background: linear-gradient(135deg, #000000 60%, #333333 100%);
    border-radius: 32px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 2px 24px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s, transform 0.3s;
}

.hero-img-bg:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,0.2), 0 4px 32px rgba(0,0,0,0.15);
    transform: translateY(-6px) scale(1.03);
}

.hero-img {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 24px;
    border: 4px solid #fff;
    background: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    transition: box-shadow 0.3s, transform 0.3s;
    cursor: pointer;
}

.hero-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

@media (max-width: 900px) {
    .hero-flex {
        flex-direction: column;
        gap: 2rem;
        padding-top: 80px;
    }

    .hero-right, .hero-left {
        width: 100%;
        text-align: center;
    }

    .hero-left h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-desc {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-img-bg {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .about-text, .about-image {
        width: 100%;
    }

    .about-text h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .about-text p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .about-image {
        display: flex;
        justify-content: center;
    }

    .about-img {
        width: 100%;
        max-width: 400px;
        height: auto;
    }
}

@media (max-width: 768px) {
    :root {
        --side-padding: 20px;
        --section-spacing: 60px;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content h3 {
        font-size: 1.2rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-info, .contact-form {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h3 {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .hero-img-bg {
        width: 240px;
        height: 240px;
    }
}

.dark-mode .service-card:hover {
    background-color: #ff6666; /* lighter accent for dark mode */
    color: #fff;
}

/* Top bar with social icons */
.top-bar {
    background: #fff;
    padding: 0.5rem 0;
    text-align: left;
}
.social-icons {
    display: flex;
    gap: 1rem;
    padding-left: 2rem;
}
.social-icons a {
    color: #222;
    font-size: 1.2rem;
    transition: color 0.2s;
}
.social-icons a:hover {
    color: var(--accent-color, #ff4d4d);
}

/* Main nav */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 1.2rem 2rem;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 10;
}
.logo {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-color, #ff4d4d);
}
.desktop-nav {
    display: flex;
    gap: 2rem;
}
.desktop-nav a {
    color: #222;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}
.desktop-nav a:hover {
    color: var(--accent-color, #ff4d4d);
}
.menu-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    color: #222;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 3.5rem;
}
.menu-icon {
    font-size: 1.5rem;
}

/* Side panel styles */
.side-panel {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: #111;
    color: #fff;
    z-index: 1002;
    transition: right 0.4s cubic-bezier(.4,2,.6,1);
    box-shadow: -2px 0 24px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
}
.side-panel.open {
    right: 0;
}
.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    align-self: flex-end;
    cursor: pointer;
    margin-bottom: 2rem;
}
.side-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}
.side-nav a {
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.side-nav a:hover {
    color: var(--accent-color, #ff4d4d);
}

/* Overlay for fade effect */
.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Hide desktop nav and show menu on mobile */
@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }
    .menu-btn {
        display: flex;
    }
}

/* Prevent scroll when menu is open */
body.no-scroll {
    overflow: hidden;
}

.dark-mode-btn {
    background: none;
    border: none;
    color: #222;
    font-size: 1.5rem;
    margin-left: 1rem;
    cursor: pointer;
    transition: color 0.2s;
    vertical-align: middle;
}
.dark-mode-btn:hover {
    color: var(--accent-color, #ff4d4d);
}
body.dark-mode .dark-mode-btn {
    color: #fff;
}

@media (max-width: 400px) {
    body, .container {
        min-width: 220px;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1800px;
    }
}
@media (min-width: 2000px) {
    .container {
        max-width: 90vw;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 98vw;
    }
    .hero-left, .hero-right, .about-text, .about-image {
        max-width: 100%;
    }
}

.minimal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7em;
    padding: 6px 0 4px 0;
    font-family: 'Montserrat', 'Inter', Arial, sans-serif;
    font-size: 1.08rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: #e0e0e0;
    background: rgba(34,34,34,0.92);
    backdrop-filter: blur(2px);
    text-transform: uppercase;
    position: relative;
}

.footer-icon {
    color: #ff4d4d;
    font-size: 1.1em;
    opacity: 0.85;
    animation: footerPulse 2.5s infinite alternate;
}

@keyframes footerPulse {
    0% { filter: drop-shadow(0 0 0 #ff4d4d); }
    100% { filter: drop-shadow(0 0 8px #ff4d4d88); }
}

.footer-text {
    letter-spacing: 0.14em;
    font-weight: 400;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.footer-by {
    font-size: 0.98em;
    color: #aaa;
    font-weight: 300;
    margin: 0 0.2em;
}

.footer-accent {
    color: #ff4d4d;
    font-weight: 700;
    letter-spacing: 0.16em;
    position: relative;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
}

.footer-accent::after {
    content: '';
    display: block;
    margin: 0 auto;
    width: 60%;
    height: 2px;
    border-radius: 1px;
    background: #ff4d4d;
    opacity: 0.5;
    margin-top: 2px;
}

.video-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.75);
    align-items: center;
    justify-content: center;
}
.video-modal.active {
    display: flex;
}
.video-modal-content {
    position: relative;
    background: #181818;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 8px 40px #000a;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.video-modal-iframe-wrapper {
    width: 1280px;
    height: 720px;
    max-width: 95vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-modal-iframe-wrapper video {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: #000;
}
.video-modal-close {
    position: absolute;
    top: 10px; right: 18px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}
.video-modal-close:hover {
    color: #ff4d4d;
}
@media (max-width: 900px) {
    .video-modal-iframe-wrapper {
        width: 90vw;
        height: 50vw;
        min-height: 180px;
    }
}

body.dark-mode .site-main {
    color: #fff;
}

/* Dark mode styles */
body.dark-mode .hero-left .accent {
    color: #ffffff;
}

body.dark-mode .btn-cv {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 4px 24px rgba(255,255,255,0.2);
}

body.dark-mode .btn-cv:hover {
    background: #e0e0e0;
}

body.dark-mode .btn-play {
    background: #333333;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(255,255,255,0.1);
}

body.dark-mode .btn-play:hover {
    background: #444444;
}

body.dark-mode .hero-img-bg {
    background: linear-gradient(135deg, #ffffff 60%, #e0e0e0 100%);
    box-shadow: 0 8px 32px rgba(255,255,255,0.15), 0 2px 24px rgba(255,255,255,0.1);
}

body.dark-mode .hero-img-bg:hover {
    box-shadow: 0 16px 48px rgba(255,255,255,0.2), 0 4px 32px rgba(255,255,255,0.15);
}

body.dark-mode .hero-img:hover {
    box-shadow: 0 8px 32px rgba(255,255,255,0.15);
}

@media (min-width: 900px) {
  .hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    padding: 0;
    overflow: hidden;
    background: none;
  }
  .hero-bg-video {
    position: absolute;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
    min-width: unset;
    min-height: unset;
    max-width: unset;
    max-height: unset;
    opacity: 0.25;
    pointer-events: none;
  }
  .hero-flex {
    position: relative;
    z-index: 2;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4vw;
    padding: 0;
  }
  .hero-left, .hero-right {
    max-width: none;
    padding: 0;
  }
}

.side-nav-toggle {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    transition: color 0.2s;
}
.side-nav-toggle:hover {
    color: var(--accent-color, #ff4d4d);
}

.side-nav-sublinks {
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    margin-left: 1.2rem;
    transition: max-height 0.3s ease;
    overflow: hidden;
}

.side-nav-sublinks a {
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.5rem 0;
}

.side-nav-sublinks a:hover {
    color: var(--accent-color, #ff4d4d);
}

.side-nav-sublinks.show {
    display: flex;
}

.portfolio-nav-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.side-nav-toggle {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    transition: color 0.2s;
    text-align: left;
    width: 100%;
}

.side-nav-toggle:hover {
    color: var(--accent-color, #ff4d4d);
}

#portfolioChevron {
    transition: transform 0.2s ease;
}

.side-nav-sublinks {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    margin-left: 1.2rem;
    padding: 0.5rem 0;
}

.side-nav-sublinks.show {
    display: flex;
}

.side-nav-sublinks a {
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.3rem 0;
}

.side-nav-sublinks a:hover {
    color: var(--accent-color, #ff4d4d);
}