@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Lato:wght@300;400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none
}

html,
body {
    overflow-x: hidden;
    max-width: 100vw
}

:root {
    --primary: #2c3e50;
    --secondary: #ecf0f1;
    --accent: #a36200;
    --text: #34495e;
    --bg: #ffffff;
    --border: #bdc3c7;
    --shadow: rgba(0, 0, 0, 0.1);
    --highlight: #ffe6e6;
    --nav-bg: rgba(255, 255, 255, 0.98)
}

[data-theme="dark"] {
    --primary: #ecf0f1;
    --secondary: #34495e;
    --accent: #a36200;
    --text: #bdc3c7;
    --bg: #1a1a1a;
    --border: #2c3e50;
    --shadow: rgba(255, 255, 255, 0.05);
    --highlight: #3a2828;
    --nav-bg: rgba(26, 26, 26, 0.98)
}

::selection {
    background: var(--highlight);
    color: var(--primary)
}

::-moz-selection {
    background: var(--highlight);
    color: var(--primary)
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
    line-height: 1.6;
    position: relative
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(163, 98, 0, 0.03) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(44, 62, 80, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0
}

.crystal {
    position: fixed;
    background: linear-gradient(135deg, rgba(163, 98, 0, 0.15), rgba(163, 98, 0, 0.05));
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: float-crystal linear infinite
}

.crystal:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    top: 20%;
    animation-duration: 15s;
    animation-delay: 0s
}

.crystal:nth-child(2) {
    width: 60px;
    height: 60px;
    left: 80%;
    top: 40%;
    animation-duration: 20s;
    animation-delay: 2s
}

.crystal:nth-child(3) {
    width: 100px;
    height: 100px;
    left: 50%;
    top: 60%;
    animation-duration: 18s;
    animation-delay: 4s
}

.crystal:nth-child(4) {
    width: 70px;
    height: 70px;
    left: 25%;
    top: 75%;
    animation-duration: 22s;
    animation-delay: 1s
}

.crystal:nth-child(5) {
    width: 90px;
    height: 90px;
    left: 70%;
    top: 15%;
    animation-duration: 17s;
    animation-delay: 3s
}

@keyframes float-crystal {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3
    }

    50% {
        transform: translateY(-100px) rotate(180deg);
        opacity: 0.6
    }

    100% {
        transform: translateY(-200px) rotate(360deg);
        opacity: 0
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700
}

.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s, opacity 0.2s;
    transform: translate(-50%, -50%)
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0.6;
    border-color: var(--accent)
}

.custom-cursor.text {
    width: 2px;
    height: 18px;
    border: none;
    background: var(--accent);
    border-radius: 1px
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%)
}

.section {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.9s ease;
    position: relative;
    z-index: 2
}

.section.active {
    opacity: 1;
    transform: translateY(0)
}

.section-title {
    text-align: center;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 60px;
    color: var(--primary);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%)
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 3px
}

.container {
    max-width: 85%;
    margin: 0 auto;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
    z-index: 2
}

.hero-container {
    max-width: 85%;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center
}

.hero-content {
    z-index: 2
}

.hero-title {
    font-size: 62px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 28px;
    color: var(--primary);
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards
}

.dynamic-text {
    display: inline-block;
    color: var(--accent);
    position: relative;
    min-width: 300px
}

.dynamic-text::after {
    content: '';
    position: absolute;
    right: -10px;
    width: 3px;
    height: 100%;
    background: var(--accent);
    animation: blink 0.9s infinite
}

.hero-subtitle {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 35px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards
}

.hero-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border: 2px solid var(--primary);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.4s;
    display: inline-block;
    position: relative;
    overflow: hidden
}

.btn-primary {
    background: var(--primary);
    color: var(--bg)
}

.btn-secondary {
    background: transparent;
    color: var(--primary)
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.7s, height 0.7s
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    width: 300px;
    height: 300px
}

.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3)
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--bg);
    transform: translateY(-3px)
}

.hero-image {
    position: relative;
    opacity: 1;
    animation: fadeInRight 1s ease 0.5s forwards
}

.hero-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 60px var(--shadow);
    transition: transform 0.5s
}

.hero-image:hover img {
    transform: scale(1.05) rotate(2deg)
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent);
    border-radius: 12px;
    z-index: -1;
    transition: all 0.4s
}

.hero-image:hover::before {
    top: -25px;
    left: -25px
}

.floating {
    animation: floating 4s ease-in-out infinite
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-20px)
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(60px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 0;
    align-items: center
}

.about-image {
    position: relative;
    overflow: hidden
}

.about-image img {
    width: 100%;
    height: 580px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s, filter 0.4s
}

.about-image:hover img {
    transform: scale(1.1);
    filter: brightness(1.1)
}

.about-content {
    background: var(--secondary);
    padding: 70px 55px;
    transition: background 0.3s
}

.about-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 28px;
    color: var(--primary)
}

.about-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
    text-align: justify;
    white-space: pre-line;
    margin-bottom: 28px
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 60px
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.4s;
    box-shadow: 0 6px 25px var(--shadow)
}

.portfolio-item:hover {
    transform: translateY(-12px)
}

.portfolio-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s
}

.portfolio-item:hover img {
    transform: scale(1.15)
}

.portfolio-info {
    padding: 24px;
    background: var(--bg);
    transition: background 0.3s, border 0.3s
}

.portfolio-category {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 10px
}

.portfolio-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary)
}

.portfolio-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text)
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 60px
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 18px var(--shadow)
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.3s
}

.gallery-item:hover img {
    transform: scale(1.12);
    filter: brightness(0.7)
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    pointer-events: auto
}

.gallery-icon {
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s
}

.gallery-icon:hover {
    transform: scale(1.2) rotate(10deg)
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center
}

.lightbox.active {
    display: flex
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 45px;
    height: 45px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s
}

.lightbox-close:hover {
    transform: scale(1.2) rotate(90deg)
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--secondary);
    border-radius: 8px;
    transition: all 0.4s;
    box-shadow: 0 4px 18px var(--shadow)
}

.contact-item:hover {
    transform: translateX(12px);
    box-shadow: 0 6px 25px var(--shadow)
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3)
}

.contact-details h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--primary)
}

.contact-details p {
    font-size: 15px;
    color: var(--text);
    font-weight: 400
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 40px var(--shadow)
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
    z-index: 999;
    box-shadow: 0 4px 18px rgba(231, 76, 60, 0.4)
}

.scroll-top.active {
    opacity: 1;
    visibility: visible
}

.scroll-top:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.6)
}

@media(max-width:1024px) {

    .hero-title {
        font-size: 52px
    }

    .hero-container {
        gap: 50px
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media(max-width:768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px
    }

    .hero-title {
        font-size: 44px
    }

    .hero-image img {
        height: 400px
    }

    .hero-buttons {
        flex-direction: column
    }

    .btn-primary,
    .btn-secondary {
        text-align: center;
        width: 100%
    }

    .about-grid {
        grid-template-columns: 1fr
    }

    .about-content {
        padding: 50px 35px
    }

    .about-image img {
        height: 380px
    }

    .portfolio-grid {
        grid-template-columns: 1fr
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .contact-grid {
        grid-template-columns: 1fr
    }

    .section-title {
        font-size: 38px
    }
}

@media(max-width:480px) {
    .hero-title {
        font-size: 32px
    }

    .dynamic-text {
        min-width: 180px
    }

    .hero-subtitle {
        font-size: 15px
    }

    .hero-image img {
        height: 320px
    }

    .section-title {
        font-size: 32px
    }

    .about-title {
        font-size: 30px
    }

    .about-content {
        padding: 35px 20px
    }

    .portfolio-item img {
        height: 280px
    }

    .gallery-grid {
        grid-template-columns: 1fr
    }

    .gallery-item img {
        height: 260px
    }
}

@media(max-width:600px) {
    .custom-cursor , .cursor-dot {
        display: none;
    }
    
}