/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #d4e8d4 0%, #e0f0e0 25%, #f0f0f0 50%, #e8f0e8 75%, #d4e8d4 100%), radial-gradient(circle at 30% 30%, rgba(240, 240, 240, 0.1) 0%, transparent 50%);
    overflow-x: hidden;
}



/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
    opacity: 0;
}

.scale-in {
    animation: scaleIn 0.6s ease-out forwards;
    opacity: 0;
}

.bounce-in {
    animation: bounceIn 0.8s ease-out forwards;
    opacity: 0;
}

.rotate-in {
    animation: rotateIn 0.8s ease-out forwards;
    opacity: 0;
}

.slide-in-up {
    animation: slideInUp 0.8s ease-out forwards;
    opacity: 0;
}

.slide-in-down {
    animation: slideInDown 0.8s ease-out forwards;
    opacity: 0;
}

.zoom-in {
    animation: zoomIn 0.6s ease-out forwards;
    opacity: 0;
}

.pulse {
    animation: pulse 2s infinite;
}

.shake {
    animation: shake 0.5s ease-in-out;
}

.fade-in-up.animate,
.fade-in.animate,
.slide-in-left.animate,
.slide-in-right.animate,
.scale-in.animate,
.bounce-in.animate,
.rotate-in.animate,
.slide-in-up.animate,
.slide-in-down.animate,
.zoom-in.animate {
    opacity: 1;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: background 0.3s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

/* Theme Toggle */
.theme-toggle {
    margin-right: 1rem;
    perspective: 1000px;
}

.theme-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s;
    transform-style: preserve-3d;
    position: relative;
}

.theme-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #38e1b7, #228B22);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1) rotateY(10deg);
}

.theme-btn:hover::before {
    opacity: 0.3;
}

.theme-btn.flip {
    animation: flip 0.6s ease-in-out;
}

@keyframes flip {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Dark Mode Styles */
body.dark-mode {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 25%, #000000 50%, #1a1a1a 75%, #2d2d2d 100%), radial-gradient(circle at 30% 30%, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
    color: #e0e0e0;
}

body.dark-mode .brand {
    color: #e0e0e0;
}

body.dark-mode .nav-links li a {
    color: #e0e0e0;
}

body.dark-mode .nav-links li a:hover {
    color: #38e1b7;
}

body.dark-mode .theme-btn {
    color: #e0e0e0;
}

body.dark-mode .hamburger span {
    background: #e0e0e0;
}

body.dark-mode section h2 {
    color: #e0e0e0;
}

body.dark-mode section p {
    color: #d0d0d0;
}

body.dark-mode .about-text h2,
body.dark-mode .contact-text h2,
body.dark-mode .project-description h2 {
    color: #e0e0e0;
}

body.dark-mode .about-text p,
body.dark-mode .contact-text p,
body.dark-mode .project-description p {
    color: #d0d0d0;
}

body.dark-mode .service {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .service:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .service h3 {
    color: #38e1b7;
}

body.dark-mode .service p {
    color: #c0c0c0;
}

body.dark-mode .skill {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .skill:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .skill i {
    color: #38e1b7;
}

body.dark-mode .skill h3 {
    color: #e0e0e0;
}

body.dark-mode .skill p {
    color: #c0c0c0;
}

body.dark-mode .step {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(56, 225, 183, 0.1)), radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

body.dark-mode .step h3 {
    color: #38e1b7;
}

body.dark-mode .step p {
    color: #c0c0c0;
}

body.dark-mode .tab {
    color: #d0d0d0;
}

body.dark-mode .tab.active {
    color: #38e1b7;
}

body.dark-mode .project {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .project:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .project-overlay h3 {
    color: #e0e0e0;
}

body.dark-mode .project-overlay p {
    color: #b0b0b0;
}

body.dark-mode .social-links a {
    color: #38e1b7;
}

body.dark-mode .social-links a:hover {
    color: #2cc99a;
}

body.dark-mode .modal-content {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode #modalTitle {
    color: #38e1b7;
}

body.dark-mode #modalDescription {
    color: #e0e0e0;
}

body.dark-mode .modal-description {
    color: #e0e0e0;
}

body.dark-mode .close {
    color: #aaa;
}

body.dark-mode .close:hover {
    color: #fff;
}

body.dark-mode footer {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .footer-content ul li a {
    color: #e0e0e0;
}

body.dark-mode .footer-content .social-links a {
    color: #e0e0e0;
}

body.dark-mode footer p {
    color: #b0b0b0;
}

body.dark-mode #hero-image {
    filter: brightness(0.5) contrast(1.2);
}

body.dark-mode #hero::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

body.dark-mode #project-detail {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

body.dark-mode #project-detail h1 {
    color: #38e1b7;
}

body.dark-mode .project-description h3 {
    color: #e0e0e0;
}

body.dark-mode .project-description li {
    color: #d0d0d0;
}

body.dark-mode .project-description ul li::marker {
    color: #38e1b7;
}

.brand {
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s, border-bottom 0.3s;
    position: relative;
}

.nav-links li a:hover {
    color: #38e1b7;
    border-bottom: 2px solid #38e1b7;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    will-change: transform;
    transform: translateZ(0) rotate(180deg);
    backface-visibility: hidden;
    filter: brightness(0.8) contrast(1.1);
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-family: 'Georgia', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 0 20px rgba(56, 225, 183, 0.5);
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% { text-shadow: 0 0 20px rgba(56, 225, 183, 0.5); }
    100% { text-shadow: 0 0 30px rgba(56, 225, 183, 0.8), 0 0 40px rgba(34, 139, 34, 0.3); }
}

.hero-content h1 span {
    color: #228B22;
    font-family: 'Times New Roman', serif;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn:hover {
    transform: scale(1.05) rotate(2deg) translateZ(10px);
    box-shadow: 0 0 15px rgba(56, 225, 183, 0.6);
    animation: btnPulse 0.6s ease-in-out infinite alternate;
}

@keyframes btnPulse {
    0% { box-shadow: 0 0 15px rgba(56, 225, 183, 0.6); }
    100% { box-shadow: 0 0 25px rgba(56, 225, 183, 1), 0 0 35px rgba(34, 139, 34, 0.5); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes flip {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(180deg); }
}

@keyframes slideDown {
    0% { transform: translateY(-10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.btn.primary {
    background: #38e1b7;
    color: #000;
}

.btn.primary:hover {
    background: #2cc99a;
}

.btn.secondary {
    background: #2c3e50; /* Dark navy */
    color: white;
}

.btn.secondary:hover {
    background: #34495e;
}

/* Sections */
section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #000000;
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-image img {
    width: 300px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    perspective: 1000px;
}

.service {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service:hover {
    transform: rotateY(5deg) rotateX(5deg) translateZ(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.service h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    color: #228B22;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    perspective: 1000px;
}

.skill {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.skill:hover {
    transform: rotateY(-5deg) rotateX(5deg) translateZ(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.skill i {
    font-size: 3rem;
    color: #228B22;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.skill:hover i {
    color: #38e1b7;
}

.skill h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    color: #333;
}

.skill p {
    font-size: 0.9rem;
    color: #666;
}

/* Process */
.process-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #ddd;
    z-index: 1;
}

.step {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(200, 255, 200, 0.3)), radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 10px;
    width: 250px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.5s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.step:hover {
    transform: rotateY(5deg) rotateX(-5deg) translateZ(15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.step img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin-bottom: 1rem;
}

.step-number {
    font-size: 2rem;
    font-weight: bold;
    color: #228B22;
    margin-bottom: 0.5rem;
}

.step h3 {
    font-family: 'Playfair Display', serif;
    color: #228B22;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.step p {
    font-size: 0.9rem;
    text-align: center;
}

/* Portfolio */
.filter-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.tab {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    transition: color 0.3s;
}

.tab.active {
    color: #228B22;
    border-bottom: 2px solid #228B22;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

.project {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    transform-style: preserve-3d;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}



.project img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem;
    transition: background 0.3s;
    pointer-events: auto;
}

.project-overlay h3 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
}

.project-overlay p {
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.view-3d-btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #38e1b7;
    color: #000;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s;
}

.view-3d-btn:hover {
    background: #2cc99a;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Slideshow */
.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    height: auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.slide {
    display: none;
    width: 100%;
}

.slide img {
    width: 100%;
    height: 400px;
    max-height: 600px;
    object-fit: contain;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.slide img:hover {
    transform: scale(1.02);
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    padding: 0;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: all 0.3s ease;
    border-radius: 50%;
    user-select: none;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover, .next:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.1);
}

.dots {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.8);
    border-radius: 0 0 15px 15px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #ddd;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}

.active, .dot:hover {
    background-color: #38e1b7;
    transform: scale(1.2);
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-text h2 {
    text-align: left;
    margin-bottom: 1rem;
}

.contact-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: #228B22;
    text-decoration: none;
    font-weight: 500;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input, textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button[type="submit"] {
    align-self: flex-start;
    background: #38e1b7;
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

button[type="submit"]:hover {
    background: #2cc99a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.footer-content ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.footer-content ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.footer-content .social-links {
    display: flex;
    gap: 1rem;
}

.footer-content .social-links a {
    color: white;
    text-decoration: none;
}

footer p {
    text-align: center;
    margin-top: 2rem;
    opacity: 0.7;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    margin: 5% auto;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 80%;
    max-width: 500px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Removed empty ruleset for .slideshow-modal-content */

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

#modalImage {
    width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 5px;
}

#modalTitle {
    font-family: 'Playfair Display', serif;
    color: #228B22;
    margin-bottom: 10px;
}

#modalDescription {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Modal slideshow styles */
.modal-slideshow-container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 400px;
    margin: 20px 0;
}

.modal-slide {
    display: none;
    width: 100%;
    height: auto;
}

.modal-slide img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
}

.modal-prev, .modal-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
}

.modal-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.modal-prev:hover, .modal-next:hover {
    background-color: rgba(0,0,0,0.8);
}

.modal-dots {
    text-align: center;
    padding: 10px;
}

.modal-dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.modal-dot.active, .modal-dot:hover {
    background-color: #717171;
}

.modal-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 20px;
    color: #333;
}

/* Project Detail Styles */
#project-detail {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

#project-detail h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #228B22;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.project-images {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.image-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.image-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-description h2 {
    font-family: 'Playfair Display', serif;
    color: #228B22;
    margin-bottom: 1rem;
}

.project-description h3 {
    font-family: 'Playfair Display', serif;
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.project-description ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.project-description li {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .floating-shapes {
        display: none;
    }

    header {
        padding: 0 1rem;
    }

    nav {
        padding: 1rem;
    }

    .brand {
        font-size: 1.2rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-links li a {
        color: #333;
        font-size: 1.1rem;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    #hero {
        height: 80vh;
        padding: 2rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
        min-width: 200px;
    }

    section {
        padding: 3rem 1rem;
    }

    section h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .about-content,
    .contact-content,
    .project-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text h2,
    .contact-text h2 {
        text-align: center;
    }

    .about-image img {
        width: 200px;
        height: 280px;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service {
        padding: 1.5rem;
    }

    .service h3 {
        font-size: 1.2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill {
        padding: 1.5rem;
    }

    .skill i {
        font-size: 2.5rem;
    }

    .skill h3 {
        font-size: 1.1rem;
    }

    .process-timeline {
        flex-direction: column;
        gap: 2rem;
    }

    .process-timeline::before {
        display: none;
    }

    .step {
        width: 100%;
        height: auto;
        border-radius: 10px;
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .step img {
        width: 100%;
        height: 120px;
        margin-bottom: 1rem;
        margin-right: 0;
        border-radius: 8px;
    }

    .step-number {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .step h3 {
        font-size: 1.1rem;
    }

    .step p {
        font-size: 0.95rem;
    }

    .filter-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tab {
        padding: 0.4rem 0.8rem;
        margin: 0.25rem;
        font-size: 0.9rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project img {
        height: 180px;
    }

    .project-overlay h3 {
        font-size: 1.1rem;
    }

    .project-overlay p {
        font-size: 0.85rem;
    }

    .slideshow-container {
        max-width: 100%;
        margin: 0;
    }

    .slide img {
        height: 300px;
        max-height: 400px;
    }

    .prev, .next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }

    .dots {
        padding: 15px;
    }

    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    form {
        gap: 0.8rem;
    }

    input, textarea {
        padding: 0.6rem;
        font-size: 1rem;
    }

    button[type="submit"] {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
        align-self: center;
        min-width: 150px;
    }

    footer {
        padding: 1.5rem 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 0 1rem;
    }

    .footer-content ul {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 15px;
    }

    #modalImage {
        margin: 15px 0;
    }

    #modalTitle {
        font-size: 1.3rem;
    }

    #modalDescription {
        font-size: 1rem;
    }

    .modal-slideshow-container {
        min-height: 300px;
    }

    .modal-prev, .modal-next {
        padding: 12px;
        font-size: 16px;
    }

    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.8rem;
    }

    .image-gallery img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
        min-width: 180px;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .service, .skill {
        padding: 1.2rem;
    }

    .service h3, .skill h3 {
        font-size: 1rem;
    }

    .skill i {
        font-size: 2rem;
    }

    .step {
        padding: 1.2rem;
    }

    .step img {
        height: 100px;
    }

    .slide img {
        height: 250px;
        max-height: 350px;
    }

    .modal-content {
        width: 98%;
        margin: 2% auto;
        padding: 10px;
    }

    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .image-gallery img {
        height: 120px;
    }
}


