/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(to bottom, #ffffff, #f0f4ff);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2000;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    width: 100%;
    box-sizing: border-box;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.site-logo:hover {
    transform: scale(1.05);
}

.site-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.2));
    transition: all 0.3s ease;
}

.site-logo:hover img {
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.4));
    transform: scale(1.1);
}

.site-logo span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.35rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.site-nav {
    display: flex;
}

.nav-link {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    outline: none;
}

.nav-link:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    border-radius: 3px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-cta::after {
    width: 100%;
}

.nav-link:hover, .nav-cta {
    color: #667eea;
}

/* Main sections */
main {
    margin-top: 80px; /* Account for fixed header */
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* About Section */
.about-me {
    padding: 4rem 2rem;
    background: #fff;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.about-container {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 2;
}

.about-visual {
    position: relative;
    flex: 1;
    order: 2; /* Moves profile to the right on desktop */
}

.about-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.25), 
                0 0 60px rgba(102, 126, 234, 0.15);
    border: 3px solid rgba(102, 126, 234, 0.2);
    transition: all 0.4s ease;
    object-fit: cover;
}

.about-photo:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.35),
                0 0 80px rgba(118, 75, 162, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
}

.about-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.about-text {
    order: 1; /* Moves About Me text to the left */
}

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

.name-highlight {
    color: #007bff;
}

.about-intro {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.about-lead {
    margin-bottom: 2rem;
}

.tools-list {
    margin-bottom: 2rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.tool-tag {
    background: #e9ecef;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    word-break: break-word;
}

.about-cta-btn {
    background: #007bff;
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.about-cta-btn:hover {
    background: #0056b3;
}

.about-cta-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

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

.hero-subtext {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-btn {
    background: #fff;
    color: #007bff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.cta-btn:hover {
    background: #e9ecef;
}

.cta-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* scroll-down indicator removed */

/* Marquee Section */
.marquee-section {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    padding: 2rem 0;
    overflow: hidden;
    position: relative;
}

.marquee-container {
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    gap: 2rem;
    animation: scroll-marquee 25s linear infinite;
    padding: 0 2rem;
    white-space: nowrap;
}

.marquee-item {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    flex-shrink: 0;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.06);
}

.marquee-icon {
    width: 22px;
    height: 22px;
    color: #fff;
    flex-shrink: 0;
}

.marquee-text {
    display: inline-block;
    vertical-align: middle;
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.marquee-section:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateY(0); 
    }
    40% { 
        transform: translateY(-15px); 
    }
    60% { 
        transform: translateY(-8px); 
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Portfolio Animations */
.portfolio-animated {
    opacity: 0;
}

.portfolio-animated.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.portfolio-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(102, 126, 234, 0.9);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.portfolio-clicked {
    animation: clickPulse 0.6s ease-out;
}

@keyframes clickPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Form Status Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Responsive scroll-down for tablet */
@media (max-width: 768px) {
    .scroll-down {
        bottom: 2.5rem;
    }
    
    .scroll-down a {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        border-width: 2px;
    }
}

/* Responsive scroll-down for mobile */
@media (max-width: 480px) {
    .scroll-down {
        bottom: 1.5rem;
    }
    
    .scroll-down a {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        border-width: 1.5px;
    }
}

/* Services Section */
.services {
    padding: 4rem 2rem;
    background: #f8f9fa;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.services-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: #007bff;
    border-radius: 50%;
    /* Add icons via CSS or images; placeholder */
}

.service-gd { background: url('icon-gd.svg') center/contain no-repeat; }
.service-ve { background: url('icon-ve.svg') center/contain no-repeat; }
.service-wd { background: url('icon-wd.svg') center/contain no-repeat; }

/* Portfolio Section */
.portfolio-preview {
    padding: 4rem 2rem;
    background: #fff;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.portfolio-preview h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #fff;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.election-img {
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,123,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.portfolio-contact-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid #007bff;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.portfolio-contact-link:hover {
    background: #007bff;
    color: #fff;
    transform: translateY(-2px);
}

.portfolio-contact-link:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.portfolio-more {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.portfolio-more p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #333;
}

/* Featured Project Section */
.featured-project {
    padding: 3rem 0;
    margin: 2rem 0;
    text-align: center;
}

.featured-project h3 {
    font-size: 1.5rem;
    color: #667eea;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.election-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.election-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
}

.election-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.3);
}

.election-link img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.election-link:hover img {
    transform: scale(1.03);
}

.election-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
}

.election-link:hover .election-overlay {
    opacity: 1;
}

.project-description {
    text-align: left;
    padding: 1rem;
}

.project-description h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.project-description p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Responsive Featured Project */
@media (max-width: 768px) {
    .election-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .featured-project {
        padding: 2rem 1rem;
    }
    
    .project-description {
        text-align: center;
    }
}

/* Video Reel Section */
.video-reel {
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.video-reel h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.video-container {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}

.video-description {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-top: 1rem;
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 2rem;
    background: #f8f9fa;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.testimonials h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.testimonials-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.testimonial-card blockquote p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
}

.testimonial-role {
    display: block;
    color: #666;
    font-size: 0.9rem;
}

.featured {
    border: 2px solid #007bff;
}

.caption-message {
    color: #007bff;
    font-weight: 600;
}

.testimonial-submit h3 {
    margin-bottom: 1rem;
}

.testimonial-message-link {
    color: #007bff;
    text-decoration: none;
}

/* Contact Section */
.contact-section {
    padding: 4rem 2rem;
    background: #fff;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.contact-header h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

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

#contact-form {
    max-width: 600px;
    margin: 0 auto;
}

#contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

#contact-form input, #contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    transition: all 0.3s ease;
}

#contact-form input:focus, #contact-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#contact-form button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#contact-form button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    transform: translateY(-2px);
}

#footer-link {
    color: #667eea;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 3rem 2rem 1rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0 1rem;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
}

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

.footer-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #007bff;
}

.footer-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link:hover {
    color: #007bff;
}

.social-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    transition: transform 0.3s;
}

.social-link:hover .social-icon {
    transform: scale(1.2);
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.footer-copyright {
    text-align: center;
    font-size: 0.9rem;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#back-to-top.show {
    opacity: 1;
}

/* Lightbox Gallery */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.lightbox-image-wrapper {
    position: relative;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 10px;
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    animation: zoomIn 0.5s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.2rem;
    display: none;
}

.lightbox-image-wrapper.loading .lightbox-loading {
    display: block;
}

.lightbox-image-wrapper.loading .lightbox-image {
    display: none;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3001;
}

.lightbox-close:hover {
    transform: scale(1.2) rotate(90deg);
    color: #667eea;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(102, 126, 234, 0.8);
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 5px;
    z-index: 3001;
}

.lightbox-nav:hover {
    background: rgba(102, 126, 234, 1);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    font-size: 1.1rem;
    margin-top: 1rem;
    padding: 0 1rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-counter {
    color: #999;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.portfolio-item {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        padding: 0.75rem;
        gap: 1rem;
        justify-content: space-between;
    }
    .menu-toggle {
        display: flex;
    }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        width: 100%;
        box-sizing: border-box;
        display: block;
        z-index: 1999;
    }
    .site-nav.active {
        max-height: 400px;
    }
    .nav-list {
        margin-top: 0;
        gap: 0;
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: 100%;
        flex-direction: column;
        padding: 1rem 0;
    }
    .nav-list li {
        width: 100%;
        border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    }
    .nav-link {
        font-size: 0.9rem;
        word-break: break-word;
        display: block;
        padding: 0.75rem 2rem;
        width: 100%;
        box-sizing: border-box;
    }
    .nav-link.nav-cta {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #fff;
        margin: 0.5rem;
        border-radius: 5px;
        width: auto;
    }
    .about-container {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    .about-visual {
        order: -1; /* Moves photo to top on mobile */
    }
    .about-badge {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
        top: 8px;
        left: 8px;
    }
    .about-text {
        flex: 1;
    }
    .about-photo {
        max-width: 200px;
        margin: 0 auto;
    }
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    .hero {
        padding: 4rem 1.5rem;
    }
    .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.4;
    }
    .hero-subtext {
        font-size: 1rem;
    }
    .services {
        padding: 2.5rem 1.5rem;
    }
    .services h2 {
        font-size: 1.8rem;
    }
    .services-cards, .testimonials-cards, .grid-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .portfolio-preview {
        padding: 2rem 1rem;
    }
    .portfolio-preview h2 {
        font-size: 1.8rem;
    }
    .video-reel {
        padding: 1.5rem;
    }
    .video-reel h3 {
        font-size: 1.4rem;
    }
    .video-container {
        max-width: 100%;
    }
    .testimonials {
        padding: 2.5rem 1.5rem;
    }
    .testimonials h2 {
        font-size: 1.8rem;
    }
    .contact-section {
        padding: 2.5rem 1.5rem;
    }
    .contact-section h2 {
        font-size: 1.8rem;
    }
    .contact-header p {
        font-size: 0.95rem;
    }
    #contact-form {
        max-width: 100%;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .footer-content {
        padding: 1.5rem;
    }
    #back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* Lightbox Responsive */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
    }
    
    .lightbox-image {
        max-height: 60vh;
    }
    
    .lightbox-close {
        top: 5px;
        right: 10px;
        font-size: 2.5rem;
    }
    
    .lightbox-nav {
        padding: 0.75rem 1rem;
        font-size: 1.5rem;
    }
    
    .lightbox-prev {
        left: 5px;
    }
    
    .lightbox-next {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.5rem;
    }
    .site-logo {
        font-size: 0.9rem;
    }
    .site-logo img {
        height: 40px;
    }
    .nav-list {
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    .hero {
        padding: 3rem 1rem;
    }
    .hero-content h1 {
        font-size: 1.4rem;
    }
    .hero-subtext {
        font-size: 0.9rem;
    }
    .services {
        padding: 2rem 1rem;
    }
    .services h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .service-card {
        padding: 1.5rem;
    }
    .portfolio-preview {
        padding: 1.5rem 1rem;
    }
    .portfolio-preview h2 {
        font-size: 1.5rem;
    }
    .grid-container {
        gap: 1rem;
    }
    .portfolio-overlay span {
        font-size: 0.9rem;
    }
    .video-reel {
        padding: 1rem;
    }
    .video-reel h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    .testimonials {
        padding: 2rem 1rem;
    }
    .testimonials h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .testimonial-card {
        padding: 1.5rem;
    }
    .contact-section {
        padding: 2rem 1rem;
    }
    .contact-section h2 {
        font-size: 1.5rem;
    }
    label {
        font-size: 0.95rem;
    }
    input, textarea, button {
        font-size: 1rem;
    }
    .footer-content {
        padding: 1rem;
    }
    .footer-section h3, .footer-section h4 {
        font-size: 1rem;
    }
    .footer-section p {
        font-size: 0.9rem;
    }
    #back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .footer-social {
        gap: 0.5rem;
    }
    .social-link {
        font-size: 0.85rem;
    }
    
    /* Lightbox on very small screens */
    .lightbox-image {
        max-height: 50vh;
    }
    
    .lightbox-close {
        font-size: 2rem;
    }
    
    .lightbox-nav {
        padding: 0.5rem 0.75rem;
        font-size: 1.2rem;
    }
    
    .lightbox-caption {
        font-size: 1rem;
    }
    
    .lightbox-counter {
        font-size: 0.8rem;
    }
}