:root {
    --primary-text: #000000;
    --secondary-text: #333333;
    --background: #ffffff;
    --surface: #f0f0f0;
    --accent: #0a0a2a;
    --border: #333;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Apply variables */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    color: var(--primary-text);
    font-size: 16px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

/* Tablet and larger device styles */
@media screen and (min-width: 768px) {
    body {
        font-size: 18px;
    }
    
    .hero-section {
        padding: 100px 20px;
    }
    
    .photocontent {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .services {
        padding: 80px 20px;
    }
    
    .services .card {
        width: calc(33.333% - 20px);
        margin: 10px;
    }
    
    .mywork .work-card {
        width: calc(33.333% - 20px);
        margin: 10px;
    }
    
    .contact {
        padding: 80px 20px;
    }
    
    .contact-form {
        max-width: 800px;
        margin: 0 auto;
    }
    
    nav {
        padding: 20px 40px;
    }
    
    nav ul {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 30px;
    }
    
    #menu-icon, #close-icon {
        display: none;
    }
    
    .main-section .abouth {
        font-size: 3.5rem;
    }
    
    .aboudark {
        font-size: 2.5rem;
    }
}

/* Large screen styles */
@media screen and (min-width: 1200px) {
    .hero-section {
        padding: 120px 40px;
    }
    
    .services {
        padding: 100px 40px;
    }
    
    .mywork {
        padding: 100px 40px;
    }
    
    .contact {
        padding: 100px 40px;
    }
    
    nav {
        padding: 20px 80px;
    }
}

/* Dark mode styles */
[data-theme="dark"] {
    background-color: var(--background);
    color: var(--primary-text);
    color: white !important;
}

/* Cards in dark mode */
[data-theme="dark"] .card,
[data-theme="dark"] .work-card {
    border: 1px solid var(--border);
    box-shadow: 0 0 10px white;
}
[data-theme="dark"] .links {
    background-color: #0a0a2a !important;
    border: 1.5px solid #fff !important;
}
[data-theme="dark"]ul li a {
    color: #000;
}
[data-theme="dark"] .card h5,
[data-theme="dark"] .work-card h4,
[data-theme="dark"] .links a {
    color: #ffffff;
}

[data-theme="dark"] .card p,
[data-theme="dark"] .work-card p {
    color: var(--secondary-text);
}

/* Section headings in dark mode */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5 {
    color: var(--primary-text);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-weight: 300;
    color: white;
}
body.dark-mode .main-section .abouth {
    position: absolute !important;
    top: 31% !important;
    right: 35% !important;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    font-weight: 300;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;

}
body.dark-mode .cards {
    margin-top: 300px !important;
}
body.dark-mode .aboudark {
    position: absolute !important;
    top: 20px;
    
}

/* Hero section heading in dark mode */
[data-theme="dark"] .hero-section h1.ovo-regular {
    color: var(--primary-text);
    font-weight: 300;
    font-size: 3rem;
    color: white;
    position: absolute;
}

/* Add subtle underline effect for headings */
[data-theme="dark"] h1::after,
[data-theme="dark"] h2::after,
[data-theme="dark"] h3::after,
[data-theme="dark"] h4::after,
[data-theme="dark"] h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30%;
    height: 2px;
    background-color: var(--accent);
    opacity: 0.5;
    color: white;
}

/* Remove white backgrounds from sections in dark mode */
[data-theme="dark"] .hero-section,
[data-theme="dark"] .main-section,
[data-theme="dark"] .services,
[data-theme="dark"] .mywork {
    background-color: transparent;
}
[data-theme="dark"] .hero-section .explainer h1 {
    position: absolute;
    right: 20rem;
}


/* Services section in dark mode */
[data-theme="dark"] .services {
    background-color: var(--surface);
    border: 1px solid var(--border);
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .services h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    line-height: 1.2;
}

/* About me section in dark mode */
body.dark-mode #aboutme {
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
    color: white;
}

body.dark-mode #aboutme h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    line-height: 1.2;
    position: absolute;
    right: 43%;
    top: 5rem;
}

/* My work section in dark mode */
body.dark-mode #mywork {
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
    color: white;
}

body.dark-mode #mywork h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    line-height: 1.2;
}

/* Section content spacing */
body.dark-mode .services p,
body.dark-mode #aboutme p,
body.dark-mode #mywork p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: white;
}

/* Form feedback messages */
.form-message {
    display: none;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Section card spacing and alignment */
body.dark-mode .services .card,
body.dark-mode #aboutme .card,
body.dark-mode #mywork .card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: #121212;
    box-shadow: 0 0 10px white;
    color: white;
}

/* Section card text */
body.dark-mode .services .card h5,
body.dark-mode #aboutme .card h5,
body.dark-mode #mywork .card h5 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: white;
}

body.dark-mode .services .card p,
body.dark-mode #aboutme .card p,
body.dark-mode #mywork .card p {
    margin-bottom: 0;
    color: white;
}

/* Tools section in dark mode */
body.dark-mode .toolitem {
    border: 1px solid var(--border);
    box-shadow: 0 0 10px white;
}

body.dark-mode .toolitem img {
    filter: brightness(0.9);
}

/* Contact form in dark mode */
body.dark-mode .contact-form {
    border: 1px solid var(--border);
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    border: 1px solid var(--border);
    color: white;
}

body.dark-mode .contact-form input:focus,
body.dark-mode .contact-form textarea:focus {
    border-color: var(--accent);
}

/* Buttons in dark mode */
body.dark-mode .btnmore,
body.dark-mode .contact-resume button:last-child {
    transition: all 0.3s ease;
}

body.dark-mode .btnmore:hover,
body.dark-mode .contact-resume button:last-child:hover {
    transform: translateY(-2px);
}
body.dark-mode .footername {
    position: absolute !important;
    bottom: 10px !important;
}

body.dark-mode .contact-resume button:first-child,
body.dark-mode .contact-form button {
    transition: all 0.3s ease;
}

body.dark-mode .contact-resume button:first-child:hover,
body.dark-mode .contact-form button:hover {
    opacity: 0.9;
}
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h1,
body.dark-mode h5,
body.dark-mode h6 {
    color: #ffffff;
}

body.dark-mode p {
    color: #e0e0e0;
}

/* Dark mode toggle and connect button styles */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode .dark-mode-toggle {
    position: fixed;
    right: 12%;
    top: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 100;
    color: white;
}

.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    color: var(--primary-text);
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

body.dark-mode .dark-mode-toggle i {
    background: url('assets/light-mode.png') no-repeat center;
    background-size: contain;
    width: 24px;
    height: 24px;
    color: transparent;
    filter: brightness(0) invert(1);
}

.connect {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.connect:hover {
    background-color: var(--accent);
    color: var(--background);
    transform: translateY(-2px);
}

.connect span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    transition: color 0.3s ease;
}

.connect:hover span {
    color: var(--background);
}

.connect i {
    transition: transform 0.3s ease;
}

.connect:hover i {
    transform: translateX(5px);
}

/* Dark mode specific styles for connect button */
body.dark-mode .connect {
    border-color: #ffffff;
    color: #000000;
}

body.dark-mode .connect:hover {
    background-color: #170e35;
    color: #ffffff;
}

body.dark-mode .connect span {
    color: #000000;
}

body.dark-mode .connect:hover span {
color: #ffffff;
}

body.dark-mode .connect i {
color: #000000;
}

body.dark-mode .connect:hover i {
color: #ffffff;
}

/* Dark mode styles */
body.dark-mode {
    background-color: #0a0a2a;
    color: #ffffff;
}

/* Apply CSS variables to elements */
.links,
.card,
.toolitem,
.work-card,
.work-card-desc {
    transition: all 0.3s ease;
    box-shadow: 0 0 10px white;
    background-color: #1b2651;
}

.links a,
.card h5,
.card p,
.work-card-desc h4,
.work-card-desc p,
.contact-form input,
.contact-form textarea,
.btnmore,
.contact-resume button:last-child {
    color: var(--primary-text) !important;
    transition: color 0.3s ease;
}

.contact-form input,
.contact-form textarea {
    background-color: var(--surface) !important;
    border-color: var(--border) !important;
}

.btnmore,
.contact-resume button:last-child {
    border-color: var(--accent) !important;
}

.contact-resume button:first-child,
.contact-form button {
    background-color: var(--accent) !important;
    color: var(--background) !important;
}

.contact-resume button:first-child:hover,
.contact-form button:hover {
    background-color: var(--accent) !important;
    opacity: 0.9;
}

.links a:hover {
    color: var(--accent) !important;
}

hr {
    background-color: var(--border);
    border-color: var(--border);
}

/* Dark mode specific hover effects */
body.dark-mode .card:hover,
body.dark-mode .work-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow);
}

body.dark-mode .work-card,
body.dark-mode .work-card-desc {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
}
body.dark-mode .links a,
body.dark-mode .card h5,
body.dark-mode .card p,
body.dark-mode .work-card-desc h4,
body.dark-mode .work-card-desc p,
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea,
body.dark-mode .btnmore,
body.dark-mode .contact-resume button:last-child {
    color: #e0e0e0 !important;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    background-color: #2d2d2d !important;
    border-color: #444 !important;
}

body.dark-mode .btnmore,
body.dark-mode .contact-resume button:last-child {
    border-color: #e0e0e0 !important;
}

body.dark-mode .contact-resume button:first-child,
body.dark-mode .contact-form button {
    background-color: #e0e0e0 !important;
    color: #121212 !important;
}

body.dark-mode .contact-resume button:first-child:hover,
body.dark-mode .contact-form button:hover {
    background-color: #ffffff !important;
}

body.dark-mode .links a:hover {
    color: #ffffff !important;
}

body.dark-mode hr {
    background-color: #444;
}
body.dark-mode .links {
    background-color: rgb(19, 13, 53);
    border: 1px solid white;
}
body.dark-mode .links a {
    color: #000000;
}
nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

nav h2 {
    position: fixed;
    left: 5%;
    top: 20px;
    margin: 0;
    font-size: 1.8rem;
    z-index: 101;
}

.links {
    height: 60px;
    width: 600px;
    display: flex;
    position: fixed;
    right: 50%;
    transform: translateX(50%);
    top: 20px;
    background-color: white;
    border-radius: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.links ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.links a:hover {
    color: #000;
}

.links a:hover::after {
    width: 100%;
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    background-clip: border-box;
    animation: underline-zoom 0.4s cubic-bezier(0.4,0,0.2,1);
}

@keyframes underline-zoom {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #000;
    transition: width 0.3s ease;
}

nav img[alt="nav photo"] {
    width: 1000px;
    height: 150px;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    opacity: 0.5;
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 80%, rgba(0,0,0,0.1) 100%);
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 80%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.connect {
    position: fixed;
    right: 2%;
    top: 20px;
    color: black;
    border: none;
    border-radius: 20px;
    font-weight: 300;
    padding: 7px 20px;
    cursor: pointer;
    font-size: 1rem;
    border: 1px solid gray;
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: pulse 1.5s infinite;
    background-color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255,126,95, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255,126,95, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255,126,95, 0);
    }
}

.connect:hover {
    background-color: #ff7e5f;
    color: white;
    transform: scale(1.05);
}

.mode-toggle {
    position: fixed;
    right: 12%;
    top: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 100;
}

.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    color: var(--primary-text);
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    color: var(--accent);
}

.dark-mode-toggle i {
    transition: transform 0.3s ease;
}

body.dark-mode .dark-mode-toggle i {
    transform: rotate(180deg);
}

.hero-section {
    position: relative;
    width: 100%;
    text-align: center;
    margin-top: 15rem;
    text-align: center;
}

.hero-section img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.ovo-regular {
    font-family: "Ovo", serif;
    font-weight: 450;
    font-style: normal;
    font-size: 50px;
}

.ovo-regularp {
    font-family: "Ovo", serif;
    opacity: 0.6;
}

.photocontent {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.explainer {
    margin-top: 20px;
}

.explainer h1 {
    font-size: 2.5rem;
    margin: 0;
    color: #333;
}

.explainer p {
    font-size: 1.2rem;
    color: #666;
    margin-top: 10px;
}

.contact-resume {
    margin-top: 20px;
}

.contact-resume button {
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.contact-resume button:hover {
    background-color: #333;
    transform: scale(1.05);
    color: white;
}

.contact-resume button:first-child {
    background-color: #000000;
    color: white;
    cursor: pointer;
}

.contact-resume button:first-child:hover {
    background-color: #333;
    transform: scale(1.05);
    color: white !important;
}

.contact-resume button:last-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-resume button:last-child:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .links {
        width: 200px;
        height: 00px;
        border-radius: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: absolute;
    }
    
    .links ul {
        flex-direction: column;
        gap: 15px;
        background-color: rgb(255, 255, 255);
        box-shadow: 0 0 10px rgba(224, 160, 9, 0.2);
        padding: 10px;
        width: 30%;
        align-items: center;
        justify-content: center;
        display: flex;
        border-radius: 10px;
        position: absolute;
        top: 20px;
        right: 110px;
        display: none;
    }
    
    #menu-icon,#close-icon {
        display: block !important;
        z-index: 1000;
        position: absolute;
        top: 35px;
        right: 55%;
        transform: translateX(50%);
        font-size: 16px;
        size: 20px;

    }
    #menu-icon {
        display: none;
    }
    nav .connect {
        margin-right: 40px !important;
        padding: 10px 20px;
        border: none;
    }
    nav h2 {
        margin-left: 20px;
    }
    .cards-serv .card {
        border: 2px solid orangered;
        border-radius: 10px;
        padding: 10px;
        margin: 10px;
        box-shadow: 0 0 20px orangered;
        animation: mover 2s infinite;
        animation-direction: alternate;
        animation-iteration-count: infinite;
        animation-timing-function: ease-in-out;
        animation-duration: 2s;
        animation-delay: 0s;
        animation-fill-mode: both;
        animation-play-state: running;
        animation-name: mover;
        animation-duration: 2s;
        animation-delay: 0s
    }
}

@media (max-width: 425px) {
    nav .connect {
        margin-right: 20px !important;
    }
}


#menu-icon {
    display: none;
}

.contact-resume button:last-child i {
    transition: transform 0.3s ease;
}

.contact-resume button:last-child:hover i {
    transform: translateX(5px);
    color: white;
}

body.dark-mode .contact-resume button:last-child {
    border-color: #ffffff;
    color: #ffffff;
    background: none;
}

body.dark-mode .contact-resume button:last-child:hover {
    background-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
}

body.dark-mode .contact-resume button:last-child i {
    color: #ffffff;
}

body.dark-mode .contact-resume button:last-child:hover i {
    color: #ffffff;
    transform: translateX(5px);
}

.main-section {
    text-align: center;
    margin-top: 50px;
}

.main-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #333;
    font-family: 'ovo', serif;
}

.introduction {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 10px;
}

.photoabout {
    display: inline-block;
    margin-right: 20px;
}

.photoabout img {
    width: 250px;
    height: 300px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 15px;
    float: left;
    margin-right: 40rem;
}

.explanation-about {
    display: inline-block;
    max-width: 600px;
    text-align: left;
    position: absolute;
    right: 20%;
    transform: translatey(-15%);
}

.introp {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.cards {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 20px;
    position: absolute;
    left: 50%;
    transform: translate(-20%, -70%);
}

.card {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    width: 200px;
    box-shadow: 0 4px 50px rgba(0,0,0,0.1);
    border-radius: 9px;
    background-color: #fff;
    cursor: auto;
    flex-direction: column;
    gap: 1px;
    position: relative;
    transition: transform 0.3s ease;
    padding: 0 20px;
}

.card:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.card img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
}

.card.pro img{
    height: 90px;
    width: 90px;
}

.card h5 {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #333;
    opacity: 0.7;
}

.card p {
    font-size: 1rem;
    color: #666;
    text-align: center;
    margin: 0;
    opacity: 0.7;
}

.tools {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 240%);
    margin-top: 20px;
    width: 100%;
}

.toolitem {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 50%;
    background-color: #fff;
    transition: transform 0.3s ease;
}

.toolitem:hover {
    transform: scale(1.1);
    animation: tool-bounce 0.5s;
}

@keyframes tool-bounce {
    0% { transform: scale(1.1) rotate(0deg);}
    30% { transform: scale(1.2) rotate(-10deg);}
    60% { transform: scale(1.05) rotate(8deg);}
    100% { transform: scale(1.1) rotate(0deg);}
}

.tools {
    transform: translate(-50%, 120%);
}

.toolitem img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.8;
    animation: tool-bounce 2s infinite;
}

.toolitem img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.8;
}

.tools p {
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1px;
    height: 10px;
}

@font-face {
    font-family: 'Ovo';
    src: url('https://fonts.gstatic.com/s/ovo/v8/0Qw4b2c9a1k5d3g7a6s4a5c5a5c5a5c5.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

center {
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.services {
    text-align: center;
    margin-top: 21rem;
    padding: 20px;
    border-radius: 10px;
}

.services h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #333;
    font-family: 'ovo', serif;
}

.services p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

.cards-serv {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cards-serv .card {
    width: 250px;
    height: 300px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: transform 0.3s ease;
    box-shadow: 0 0 0 0 rgba(0,0,0,0.1), 0 0 0 0 transparent;
    transition: box-shadow 0.4s;
}

.cards-serv .card:hover {
    transform: scale(1.08) translateY(-8px);
    box-shadow: 0 8px 100px rgba(255,126,95,0.15);
}

.cards-serv .card {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    animation: cardFadeIn 1s forwards;
}

.cards-serv .card:nth-child(1) {
    animation-delay: 0.2s;
}

.cards-serv .card:nth-child(2) {
    animation-delay: 0.4s;
}

.cards-serv .card:nth-child(3) {
    animation-delay: 0.6s;
}

.cards-serv .card {
    animation: cardFadeIn 1s forwards, cardFloat 3s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% {
    transform: translateY(0) scale(1);
    }
    50% {
    transform: translateY(-10px) scale(1.03);
    }
}

@keyframes cardFadeIn {
    0%, 20% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cards-serv .card:hover {
    transform: scale(1.08) translateY(-8px);
    box-shadow: 0 8px 32px rgba(255,126,95,0.15);
}

.work {
    text-align: center;
    margin-top: 50px;
}

.work p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 10px;
}

.work h5 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
    font-family: 'ovo', serif;
}

.mywork {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 50px;
}

.mywork .work {
    flex: 1 1 300px;
    margin: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.mywork .work:hover {
    transform: scale(1.05);
}

.work img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.work-card {
    position: relative;
    width: 260px;
    height: 340px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    background: #f9f9f9;
    transition: transform 0.3s;
}

.work-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.work-card-desc {
    position: absolute;
    left: 50%;
    top: 140px;
    transform: translateX(-50%);
    width: 90%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    padding: 18px 14px 14px 14px;
    margin-top: 10px;
    z-index: 2;
    transition: box-shadow 0.3s;
}

.work-card-desc h4 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    color: #222;
}

.work-card-desc p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.work-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(0,0,0,0.15);
}

.work-card:hover .work-card-desc {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.work-card {
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    animation: workCardFloat 3s ease-in-out infinite;
}

@keyframes workCardFloat {
    0%, 100% {
    transform: translateY(0) scale(1);
    }
    50% {
    transform: translateY(-10px) scale(1.03);
    }
}

@keyframes workCardShake {
    0% { transform: translateX(0); }
    20% { transform: translateY(-8px) rotate(-3deg); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

@keyframes workCardPulse {
    0% { box-shadow: 0 0 0 0 rgba(255,126,95,0.3); }
    70% { box-shadow: 0 0 0 16px rgba(255,126,95,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,126,95,0); }
}

@keyframes workCardFadeInUp {
    0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    }
    100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    }
}

.work-card:hover {
    transform: scale(1.07) translateY(-10px) rotate(-1deg);
    box-shadow: 0 16px 48px rgba(255,126,95,0.18), 0 2px 8px rgba(0,0,0,0.10);
    z-index: 3;
    animation: workCardBounce 0.5s;
}

@keyframes workCardBounce {
    0% { transform: scale(1) translateY(0) rotate(0deg);}
    40% { transform: scale(1.09) translateY(-14px) rotate(-2deg);}
    70% { transform: scale(1.04) translateY(-7px) rotate(1deg);}
    100% { transform: scale(1.07) translateY(-10px) rotate(-1deg);}
}

.work-card:hover .work-card-desc {
    box-shadow: 0 8px 32px rgba(255,126,95,0.15);
    background: linear-gradient(90deg, #fff 80%, #ffecd2 100%);
    transition: box-shadow 0.3s, background 0.3s;
}

.btnmore {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 0.5px solid;
    cursor: pointer;
    background-color: transparent;
}

.btnmore:hover {
    background-color: #d5d5d5;
    color: white;
    transform: scale(1.05);
}

.work-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.mywork {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 40px 0;
}

.mywork .work-card {
    width: 300px;
    height: 300px;
    background-color: var(--surface);
    border-radius: 10px;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow);
}

.mywork .work-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.mywork .work-card-desc {
    padding: 20px;
    text-align: center;
}   

.contact {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    border-radius: 10px;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
    font-family: 'ovo', serif;
}

.contact p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    justify-content: center;
}

.contact-form input, .contact-form textarea {
    width: 140%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    margin: 0;
}

.contact-form .form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form .form-group span {
    display: flex;
    gap: 20px;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: space-between
}

.contact-form .form-group span input {
    flex: 1;
    margin: 0;
}

.contact-form button {
    padding: 10px 20px;
    border: none;
    border-radius: 40px;
    background-color: #333;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form span {
    font-size: 1.2rem;
    color: #666;
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-self: unset;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-form span i {
    color: #333;
    transition: color 0.3s ease;
}

.contact-form span i:hover {
    color: #000;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: #001aff;
    outline: none;
}

.contact-form button:hover {
    background-color: #d6d6d6;
    color: black;
    transform: scale(1.05);
}

hr {
    width: 80%;
    border: 0;
    height: 1.5px;
    background-color: #ccc;
    margin: 20px auto;
}

footer {
    text-align: center;
    width: 100%;
    display: flex;
    height: 30px;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    position: relative;
    margin-bottom: 50px;
}

footer p {
    font-size: 1rem;
    color: #666;
}

footer a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #000;
}

@media (max-width: 1200px) {
    .photoabout img {
        margin-right: 30rem;
    }
    #close-icon {
        display: none;
    }
}

@media (max-width: 992px) {
    .photoabout img {
        margin-right: 20rem;
    }
    .explanation-about {
        right: 15%;
    }
}

@media (max-width: 768px) {
    .links {
        width: 90%;
        height: 50px;
    }
    #close-icon {
        display: none !important;
    }
    .links ul {
        gap: 15px;
    }
    
    nav img[alt="nav photo"] {
        width: 100%;
        height: 120px;
    }
    
    .hero-section img {
        width: 120px;
        height: 120px;
    }
    
    .explainer h1 {
        font-size: 2rem;
    }
    
    .explainer p {
        font-size: 1rem;
    }
    
    .contact-resume button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .main-section h2 {
        font-size: 2.5rem;
    }
    
    .photoabout img {
        width: 200px;
        height: 250px;
        margin-right: 0;
        float: none;
    }
    
    .explanation-about {
        position: static;
        transform: none;
        max-width: 90%;
        margin-top: 20px;
        text-align: center;
    }
    
    .cards {
        position: static;
        transform: none;
        flex-direction: column;
        gap: 20px;
        margin-top: 30px;
    }
    
    .tools {
        position: static;
        transform: none;
        margin-top: 30px;
    }
    
    .photoabout {
        margin-right: 0;
    }
    
    .dark-mode {
        right: 20%;
    }
    
    footer p:first-child {
        position: static;
    }
    
    footer p:last-child a {
        position: static;
    }
}

@media (max-width: 575px) {
    .hero-section {
        margin-top: 10rem;
    }
    
    .contact-form span {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-form input {
        width: 90%;
    }
    
    .contact-form textarea {
        width: 90%;
    }
    
    .work-card {
        width: 90%;
    }
    
    footer {
        flex-direction: column;
        gap: 10px;
    }
    #close-icon {
        display: none !important;
}
}
#light-mode{
    color: rgb(199, 4, 4) !important;
}
.mobile-view {
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    background: linear-gradient(145deg, #ffffff);
    box-shadow: 0 0 10px rgba(217, 196, 8, 0.1);
    height: 200px;
    border-radius: 5px;
    width: 150px;
    text-align: center;
    position: absolute;
    display: none;
    right: 30%;
    top: 48px;
    transition: all 0.3s ease;
}
.mobile-view {
    animation: mobileViewAnimation 0.5s ease forwards;
}

@keyframes mobileViewAnimation {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.mobile-view.active {
    display: flex;
}

.mobile-view ul {
    align-items: center;
    text-align: center;
    justify-content: center;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mobile-view ul a {
    text-decoration: none;
    text-align: center;  
    color: #333;
    align-items: center;
    justify-content: center;
    display: flex;
}