/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #ffcc00;
    --dark-bg: #0a0a0a;
    --light-text: #ffffff;
    --secondary-text: #b0b0b0;
    --card-bg: #1a1a1a;
    --border-color: #333333;
    --hover-duration: 0.3s;
    --transition: all 0.3s ease;
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out: cubic-bezier(0.4, 0, 0.6, 1);
}

@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 glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 204, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 204, 0, 0.6);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-image: url("images/wallpaper.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--light-text);
    overflow-x: hidden;
    line-height: 1.6;
}

body[data-theme="light"] {
    --dark-bg: #f8f9fb;
    --light-text: #111111;
    --secondary-text: #333333;
    --card-bg: #ffffff;
    --border-color: #d9d9d9;
    background-image: none;
    background-color: #f4f4f4;
}

body[data-theme="light"]::before {
    background-color: rgba(255, 255, 255, 0.55);
}

body[data-theme="light"] .navbar,
body[data-theme="light"] footer,
body[data-theme="light"] .project,
body[data-theme="light"] .certificate,
body[data-theme="light"] .contact-info,
body[data-theme="light"] .contact-form-wrapper,
body[data-theme="light"] .admin-section,
body[data-theme="light"] .item-card {
    background-color: rgba(255, 255, 255, 0.96);
    color: #111111;
}

body[data-theme="light"] .navbar nav a,
body[data-theme="light"] .project p,
body[data-theme="light"] .certificate p,
body[data-theme="light"] .footer-section p,
body[data-theme="light"] .footer-bottom {
    color: #2b2b2b;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--hover-duration) var(--ease-smooth);
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== SCROLL PROGRESS BAR ===== */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), rgba(255, 204, 0, 0.5));
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

/* ===== BACK TO TOP BUTTON ===== */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 999;
    transition: all var(--hover-duration) var(--ease-smooth);
    opacity: 0;
    visibility: hidden;
}

#back-to-top.show {
    display: flex;
    opacity: 1;
    visibility: visible;
    animation: slideInUp 0.3s var(--ease-smooth);
}

#back-to-top:hover {
    background-color: #e0b800;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.3);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CONTAINER ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: rgba(10, 10, 10, 0.98);
    color: var(--light-text);
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideInDown 0.5s var(--ease-smooth);
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
}

.navbar .logo img {
    height: 60px;
    transition: opacity var(--hover-duration) var(--ease-smooth), transform var(--hover-duration) var(--ease-smooth);
    animation: fadeIn 0.6s var(--ease-smooth) 0.1s both;
}

.navbar .logo img:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.navbar nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.toggle-btn {
    border: 1px solid rgba(255, 204, 0, 0.6);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.toggle-btn:hover {
    background-color: var(--primary-color);
    color: #111111;
}

.navbar nav a {
    color: var(--light-text);
    font-weight: 500;
    font-size: 0.95rem;
    padding-bottom: 4px;
    position: relative;
    border-bottom: 2px solid transparent;
    transition: border-color var(--hover-duration) var(--ease-smooth), color var(--hover-duration) var(--ease-smooth);
    animation: fadeIn 0.6s var(--ease-smooth) both;
}

.navbar nav a:nth-child(1) { animation-delay: 0.2s; }
.navbar nav a:nth-child(2) { animation-delay: 0.3s; }
.navbar nav a:nth-child(3) { animation-delay: 0.4s; }
.navbar nav a:nth-child(4) { animation-delay: 0.5s; }
.navbar nav a:nth-child(5) { animation-delay: 0.6s; }

.navbar nav a:hover,
.navbar nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 6rem 0;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-img {
    border: 3px solid var(--primary-color);
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    transition: transform var(--hover-duration) var(--ease-smooth), box-shadow var(--hover-duration) var(--ease-smooth);
    animation: slideInLeft 0.8s var(--ease-smooth) 0.2s both;
}

.hero-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
}

.hero-text {
    animation: slideInRight 0.8s var(--ease-smooth) 0.3s both;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin: 0 0 0.3rem 0;
    font-weight: 700;
    line-height: 1.2;
    transition: color var(--hover-duration) var(--ease-smooth);
}

.hero-text h1:hover {
    color: var(--primary-color);
}

.hero-text h2 {
    font-size: 2.2rem;
    margin: 0.3rem 0 1rem 0;
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.2rem;
    margin: 0;
    color: var(--secondary-text);
    transition: color var(--hover-duration) var(--ease-smooth);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease-smooth) 0.4s both;
}

.btn {
    background-color: var(--primary-color);
    color: #000;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all var(--hover-duration) var(--ease-bounce);
    display: inline-block;
    text-align: center;
}

.btn:hover {
    background-color: #e0b800;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.3);
}

/* ===== SECTION HEADERS ===== */
.projects, .about, .certificates {
    padding: 4rem 0;
}

.projects h2, .certificates h2, .about h2, .contact h2 {
    text-align: center;
    margin: 0 0 1rem 0;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    animation: fadeInUp 0.6s var(--ease-smooth) both;
}

.projects > .container > p,
.certificates > .container > p,
.about > .container > p,
.contact > .container > p {
    text-align: center;
    color: var(--secondary-text);
    margin: 0 0 2rem 0;
    animation: fadeIn 0.8s var(--ease-smooth) 0.2s both;
}

/* ===== PROJECTS SECTION ===== */
.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project {
    background-color: rgba(26, 26, 26, 0.9);
    padding: 0;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all var(--hover-duration) var(--ease-smooth);
    overflow: hidden;
    animation: fadeInUp 0.6s var(--ease-smooth) both;
}

.project:nth-child(1) { animation-delay: 0.1s; }
.project:nth-child(2) { animation-delay: 0.2s; }
.project:nth-child(3) { animation-delay: 0.3s; }
.project:nth-child(4) { animation-delay: 0.4s; }
.project:nth-child(5) { animation-delay: 0.5s; }
.project:nth-child(6) { animation-delay: 0.6s; }

.project:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(255, 204, 0, 0.2);
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--hover-duration) var(--ease-smooth);
}

.project:hover .project-img {
    transform: scale(1.08);
}

.project h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 1.2rem 1rem 0.5rem 1rem;
    transition: color var(--hover-duration) var(--ease-smooth);
}

.project p {
    color: var(--secondary-text);
    margin: 0.5rem 1rem;
    font-size: 0.95rem;
}

.project .btn {
    margin: 1rem 1rem 1.2rem 1rem;
}

/* ===== CERTIFICATES SECTION ===== */
.certificate-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.certificate {
    background-color: rgba(26, 26, 26, 0.9);
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all var(--hover-duration) var(--ease-smooth);
    animation: slideInLeft 0.6s var(--ease-smooth) both;
}

.certificate:nth-child(1) { animation-delay: 0.1s; }
.certificate:nth-child(2) { animation-delay: 0.2s; }
.certificate:nth-child(3) { animation-delay: 0.3s; }
.certificate:nth-child(4) { animation-delay: 0.4s; }
.certificate:nth-child(5) { animation-delay: 0.5s; }

.certificate:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.15);
    border-left-color: #ffcc00;
}

.certificate-img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    transition: transform var(--hover-duration) var(--ease-smooth);
}

.certificate:hover .certificate-img {
    transform: scale(1.08) rotate(2deg);
}

.certificate-content {
    flex: 1;
    text-align: left;
}

.certificate h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    transition: color var(--hover-duration) var(--ease-smooth);
}

.certificate:hover h3 {
    color: #ffee99;
}

.certificate p {
    color: var(--secondary-text);
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.about-img {
    border-radius: 6px;
    width: 250px;
    height: 250px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    flex-shrink: 0;
    transition: transform var(--hover-duration) var(--ease-smooth), filter var(--hover-duration) var(--ease-smooth);
    animation: slideInLeft 0.8s var(--ease-smooth) 0.2s both;
}

.about-img:hover {
    transform: scale(1.05) rotate(-2deg);
    filter: brightness(1.1);
}

.about-text {
    animation: slideInRight 0.8s var(--ease-smooth) 0.3s both;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    transition: color var(--hover-duration) var(--ease-smooth);
}

.about-text p {
    font-size: 1rem;
    color: var(--secondary-text);
    line-height: 1.8;
    transition: color var(--hover-duration) var(--ease-smooth);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 4rem 0;
}

.contact-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

.contact-info {
    background-color: rgba(26, 26, 26, 0.9);
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all var(--hover-duration) var(--ease-smooth);
    animation: fadeInUp 0.6s var(--ease-smooth) both;
}

.contact-info:nth-child(1) { animation-delay: 0.1s; }
.contact-info:nth-child(2) { animation-delay: 0.2s; }

.contact-info:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 204, 0, 0.15);
}

.contact-info h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    font-weight: 600;
    transition: color var(--hover-duration) var(--ease-smooth);
}

.contact-info:hover h3 {
    color: #ffee99;
}

.contact-info p {
    color: var(--secondary-text);
    margin: 0.5rem 0;
    font-size: 0.95rem;
    transition: color var(--hover-duration) var(--ease-smooth);
}

.contact-info a {
    color: var(--primary-color);
    transition: color var(--hover-duration) var(--ease-smooth), text-decoration var(--hover-duration) var(--ease-smooth);
}

.contact-info a:hover {
    text-decoration: underline;
    color: #ffee99;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.social-link {
    background-color: var(--primary-color);
    color: #000;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--hover-duration) var(--ease-smooth);
    cursor: pointer;
}

.social-link:hover {
    background-color: #e0b800;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
}

/* ===== CONTACT FORM ===== */
.contact-form-wrapper {
    background-color: rgba(26, 26, 26, 0.9);
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.6s var(--ease-smooth) 0.3s both;
    transition: all var(--hover-duration) var(--ease-smooth);
}

.contact-form-wrapper:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(255, 204, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--secondary-text);
    font-size: 0.9rem;
    transition: color var(--hover-duration) var(--ease-smooth);
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label {
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: rgba(10, 10, 10, 0.8);
    color: var(--light-text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all var(--hover-duration) var(--ease-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(10, 10, 10, 0.9);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== MESSAGE DISPLAY ===== */
.message {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    font-size: 0.95rem;
}

.message.success {
    background-color: rgba(76, 175, 80, 0.15);
    border-left-color: #4caf50;
    color: #81c784;
}

.message.error {
    background-color: rgba(244, 67, 54, 0.15);
    border-left-color: #f44336;
    color: #ef5350;
}

/* ===== COPY TO CLIPBOARD BUTTON ===== */
.btn-copy {
    background-color: var(--primary-color);
    color: #000;
    border: none;
    padding: 6px 12px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--hover-duration) var(--ease-smooth);
    font-family: inherit;
}

.btn-copy:hover {
    background-color: #e0b800;
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(255, 204, 0, 0.2);
}

.btn-copy:active {
    transform: scale(0.98);
}

/* ===== FOOTER ===== */
footer {
    background-color: rgba(10, 10, 10, 0.98);
    color: var(--light-text);
    border-top: 1px solid var(--primary-color);
    margin-top: 4rem;
    animation: fadeIn 0.6s var(--ease-smooth);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    width: 90%;
    margin: 2rem auto;
    padding: 0;
}

.footer-section {
    text-align: center;
    animation: fadeInUp 0.6s var(--ease-smooth) both;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }

.footer-section h4 {
    color: #ffffff;
    font-size: 0.78rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color var(--hover-duration) var(--ease-smooth);
}

.footer-section:hover h4 {
    color: #ffee99;
}

.footer-section p {
    margin: 0.5rem 0;
    color: var(--secondary-text);
    font-size: 0.9rem;
    transition: color var(--hover-duration) var(--ease-smooth);
}

.footer-section a {
    color: #c8c8c8;
    transition: all var(--hover-duration) var(--ease-smooth);
}

.footer-section a:hover {
    text-decoration: underline;
    color: #ffee99;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-section ul li a {
    display: inline-block;
    padding: 0.3rem 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: inline-flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: #000;
    border-radius: 4px;
    transition: all var(--hover-duration) var(--ease-smooth);
    font-size: 1.2rem;
    cursor: pointer;
    animation: fadeIn 0.4s var(--ease-smooth) both;
}

.social-icon:nth-child(1) { animation-delay: 0.2s; }
.social-icon:nth-child(2) { animation-delay: 0.25s; }
.social-icon:nth-child(3) { animation-delay: 0.3s; }

.social-icon:hover {
    transform: translateY(-6px) scale(1.1);
    background-color: #e0b800;
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.3);
}

.social-icon:active {
    transform: translateY(-2px) scale(1.08);
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 204, 0, 0.1);
    color: var(--secondary-text);
    font-size: 0.85rem;
    animation: fadeIn 0.6s var(--ease-smooth) 0.4s both;
}

.footer-bottom p {
    margin: 0.3rem 0;
}

.footer-bottom a {
    color: var(--primary-color);
    transition: all var(--hover-duration) var(--ease-smooth);
}

.footer-bottom a:hover {
    text-decoration: underline;
    color: #ffee99;
}

/* ===== RESPONSIVE DESIGN ===== */

@media screen and (max-width: 1024px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .projects h2, .certificates h2, .about h2, .contact h2 {
        font-size: 2rem;
    }

    .contact-sections {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .navbar nav ul {
        gap: 1.5rem;
        font-size: 0.85rem;
    }

    .navbar .logo img {
        height: 50px;
    }

    .hero {
        padding: 3rem 0;
        min-height: auto;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-img {
        width: 220px;
        height: 220px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text h2 {
        font-size: 1.4rem;
    }

    .project-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .certificate {
        flex-direction: column;
        text-align: center;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .about-img {
        width: 200px;
        height: 200px;
    }

    .projects h2, .certificates h2, .about h2, .contact h2 {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 480px) {
    .navbar nav ul {
        gap: 0.8rem;
        font-size: 0.75rem;
    }

    .navbar .logo img {
        height: 45px;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-img {
        width: 180px;
        height: 180px;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text h2 {
        font-size: 1rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }

    .project-list {
        grid-template-columns: 1fr;
    }

    .projects h2, .certificates h2, .about h2, .contact h2 {
        font-size: 1.3rem;
    }

    .certificate-img {
        width: 100px;
        height: 100px;
    }

    .about-img {
        width: 160px;
        height: 160px;
    }

    .about-text h3 {
        font-size: 1.2rem;
    }

    .contact-sections {
        gap: 1.5rem;
    }

    .footer-container {
        gap: 1.5rem;
        margin: 1.5rem auto;
    }

    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== CONTAINER ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    color: var(--light-text);
    padding: 0.75rem 0;
    display: flex;
    justify-content: center;
    border-bottom: 3px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
}

.navbar .logo img {
    height: 70px;
    transition: var(--transition);
}

.navbar .logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px var(--primary-color));
}

.navbar nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.navbar nav a {
    color: var(--light-text);
    font-weight: 600;
    font-size: 1rem;
    padding-bottom: 8px;
    position: relative;
    transition: var(--transition);
}

.navbar nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.navbar nav a:hover::after,
.navbar nav a.active::after {
    width: 100%;
}

.navbar nav a:hover,
.navbar nav a.active {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

/* ===== HERO SECTION ===== */
.hero {
    color: var(--light-text);
    padding: 6rem 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 3rem;
    text-align: left;
}

.hero-img {
    border: 4px solid var(--primary-color);
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(255, 204, 0, 0.2);
    transition: var(--transition);
    flex-shrink: 0;
}

.hero-img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 12px 48px rgba(255, 204, 0, 0.4);
}

.hero-text h1 {
    font-size: 3.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 800;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin: 0.5rem 0 1rem 0;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-text h2 span {
    color: var(--light-text);
}

.hero-text p {
    font-size: 1.3rem;
    margin: 1rem 0 0 0;
    color: var(--secondary-text);
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

.hero-buttons .btn,
.btn {
    background: linear-gradient(135deg, var(--primary-color), #e0b800);
    color: #000;
    padding: 14px 32px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.2);
    display: inline-block;
    text-align: center;
}

.btn:hover {
    background: linear-gradient(135deg, #e0b800, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

/* ===== PROJECTS SECTION ===== */
.projects, .about, .certificates {
    padding: 5rem 0;
}

.projects h2, .certificates h2, .about h2, .contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.8rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(255, 204, 0, 0.2);
    position: relative;
    padding-bottom: 1.5rem;
}

.projects h2::after, .certificates h2::after, .about h2::after, .contact h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    animation: fadeInUp 1s ease-out;
}

.project {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.project::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.1) 0%, transparent 70%);
    transition: var(--transition);
}

.project:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(255, 204, 0, 0.15);
}

.project-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.project h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    transition: var(--transition);
}

.project:hover h3 {
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.project p {
    color: var(--secondary-text);
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
}

/* ===== CERTIFICATES ===== */
.certificate-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeInUp 1s ease-out;
}

.certificate {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 2rem;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.certificate:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.15);
}

.certificate-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 2px solid var(--primary-color);
}

.certificate-content {
    flex: 1;
}

.certificate h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
}

.certificate p {
    color: var(--secondary-text);
    margin: 0 0 1rem 0;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    animation: fadeInUp 1s ease-out;
}

.about-img {
    border-radius: 12px;
    width: 240px;
    height: 240px;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 8px 32px rgba(255, 204, 0, 0.2);
    transition: var(--transition);
}

.about-img:hover {
    transform: scale(1.05) rotate(-3deg);
    box-shadow: 0 12px 48px rgba(255, 204, 0, 0.35);
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0 0 1rem 0;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--secondary-text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
    text-align: center;
    padding: 5rem 0;
}

.contact-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out;
}

.contact-info {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    text-align: left;
    transition: var(--transition);
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.15);
}

.contact-info h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem 0;
}

.contact-info p {
    color: var(--secondary-text);
    margin: 0.5rem 0;
}

.contact-info a {
    color: var(--primary-color);
    transition: var(--transition);
}

.contact-info a:hover {
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    background: var(--primary-color);
    color: #000;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
}

.social-link:hover {
    background: #e0b800;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
}

/* ===== CONTACT FORM ===== */
.contact-form-wrapper {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    text-align: left;
}

.contact-form-wrapper h3 {
    color: var(--primary-color);
    margin: 0 0 1.5rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 204, 0, 0.3);
    border-radius: 8px;
    background-color: rgba(10, 10, 10, 0.8);
    color: var(--light-text);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.2);
    background-color: rgba(10, 10, 10, 0.95);
}

.form-group textarea {
    min-height: 150px;
}

/* ===== MESSAGE DISPLAY ===== */
.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.success {
    background-color: rgba(76, 175, 80, 0.2);
    border-left: 4px solid #4caf50;
    color: #81c784;
}

.message.error {
    background-color: rgba(244, 67, 54, 0.2);
    border-left: 4px solid #f44336;
    color: #ef5350;
}

/* ===== FOOTER ===== */
footer {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    color: var(--light-text);
    border-top: 3px solid var(--primary-color);
    margin-top: 3rem;
}

.footer {
    padding: 2rem 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    text-align: center;
}

.footer-section h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: #000;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-icon:hover {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 204, 0, 0.2);
    color: var(--secondary-text);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet (769px - 1024px) */
@media screen and (max-width: 1024px) {
    .container {
        width: 95%;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .projects h2, .certificates h2, .about h2, .contact h2 {
        font-size: 2.2rem;
    }

    .hero-content {
        gap: 2rem;
    }

    .contact-sections {
        grid-template-columns: 1fr;
    }
}

/* Mobile (480px - 768px) */
@media screen and (max-width: 768px) {
    .navbar nav ul {
        gap: 1.5rem;
        font-size: 0.9rem;
    }

    .navbar .logo img {
        height: 60px;
    }

    .hero {
        padding: 3rem 0;
        min-height: auto;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-img {
        width: 220px;
        height: 220px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .project-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .certificate {
        flex-direction: column;
        text-align: center;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-img {
        width: 200px;
        height: 200px;
    }

    .projects h2, .certificates h2, .about h2, .contact h2 {
        font-size: 1.8rem;
    }

    .contact-sections {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }
}

/* Small Mobile (max 480px) */
@media screen and (max-width: 480px) {
    .container {
        padding: 10px 0;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .navbar .container {
        width: 95%;
    }

    .navbar nav ul {
        gap: 1rem;
        font-size: 0.8rem;
    }

    .navbar .logo img {
        height: 50px;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-img {
        width: 180px;
        height: 180px;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text h2 {
        font-size: 1.2rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .project-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project {
        padding: 1rem;
    }

    .projects h2, .certificates h2, .about h2, .contact h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .certificate {
        padding: 1rem;
        gap: 1rem;
    }

    .certificate-img {
        width: 100px;
        height: 100px;
    }

    .about-img {
        width: 160px;
        height: 160px;
    }

    .about-text h3 {
        font-size: 1.3rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 16px;
    }

    .contact-info, .contact-form-wrapper {
        padding: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .footer-container {
        gap: 1rem;
    }
}

/* ===== FIXED VISIBILITY OVERRIDES ===== */
.social-icon i {
    color: #0a0a0a !important;
    opacity: 1 !important;
    font-size: 1.15rem;
}

body[data-theme="light"] .social-icon i {
    color: #111111 !important;
}

.social-icon {
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-copy i {
    color: #0a0a0a !important;
    margin-right: 6px;
}

.footer-section a,
.footer-bottom a {
    color: #ffd84d;
}

.footer-section a:hover,
.footer-bottom a:hover {
    color: #fff1a8;
}


