/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Light Theme Variables */
:root {
    --primary-color: #4a6bff;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #212529;
    --card-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-color: #e9ecef;
    --header-height: 8rem;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

/* Dark Theme Variables */
.dark-mode {
    --primary-color: #5a7bff;
    --secondary-color: #adb5bd;
    --background-color: #121212;
    --text-color: #f8f9fa;
    --card-bg: #1e1e1e;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --border-color: #343a40;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* ===== WELCOME SCREEN ===== */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 2000;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.welcome-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-circle {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}

.logo-circle::after {
    content: '';
    position: absolute;
    width: 85%;
    height: 85%;
    background: var(--background-color);
    border-radius: 50%;
    z-index: 1;
}

.logo-circle span {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(var(--primary-color), #6c5ce7);
    border-radius: 50%;
    animation: rotate 8s linear infinite;
}

.logo-circle span:nth-child(1) {
    filter: blur(15px);
}

.logo-image {
    position: relative;
    width: 85%;
    height: 85%;
    border-radius: 50%;
    z-index: 2;
    overflow: hidden;
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-text {
    font-size: 2.5rem;
    color: var(--text-color);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-screen.hide {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
}

/* ===== HEADER STYLES ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    padding: 0 9%;
    background: var(--background-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 15px var(--shadow-color);
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.8s ease, transform 0.8s ease, background-color 0.3s;
}

.header.visible {
    opacity: 1;
    transform: translateY(0);
}

.header.sticky {
    background: var(--background-color);
    box-shadow: 0 2px 15px var(--shadow-color);
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    z-index: 1001;
}

.logo span {
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    gap: 3.5rem;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s, transform 0.2s;
    white-space: nowrap;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
    color: var(--primary-color);
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

/* Animasi pulse untuk active link */
@keyframes linkPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.navbar a.active {
    animation: linkPulse 0.3s ease;
}

/* Menu Icon */
#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
    display: none;
    z-index: 1001;
    transition: color 0.3s;
}

#menu-icon:hover {
    color: var(--primary-color);
}

/* Theme Icon Container */
.theme-icon-container {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

#theme-icon {
    font-size: 2.4rem;
    color: var(--text-color);
    cursor: pointer;
    transition: transform 0.3s, color 0.3s;
}

#theme-icon:hover {
    color: var(--primary-color);
    transform: rotate(30deg);
}

/* ===== HOME SECTION ===== */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: calc(var(--header-height) + 2rem) 9% 2rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.home.visible {
    opacity: 1;
    transform: translateY(0);
}

.home-content {
    max-width: 60rem;
    z-index: 10;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), #6c5ce7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.typing-text {
    font-size: 3.2rem;
    color: var(--secondary-color);
    height: 3.5rem;
    margin-bottom: 2rem;
    display: inline-block;
}

.home-content p {
    font-size: 1.6rem;
    margin-bottom: 3rem;
}

.social-media {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--primary-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.5s ease;
    text-decoration: none;
}

.social-media a:hover {
    background: var(--primary-color);
    color: var(--card-bg);
    box-shadow: 0 0 1rem var(--primary-color);
    transform: translateY(-3px);
}

.btn-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: var(--primary-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--primary-color);
    font-size: 1.6rem;
    color: var(--card-bg);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn:hover {
    box-shadow: none;
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--card-bg);
}

.home-img {
    position: relative;
    width: 45vw;
    max-width: 500px;
    animation: floatImage 4s ease-in-out infinite;
    transition: all 1s ease;
}

@keyframes floatImage {
    0% { transform: translateY(0); }
    50% { transform: translateY(-2.4rem); }
    100% { transform: translateY(0); }
}

.glowing-circle {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glowing-circle::after {
    content: '';
    position: absolute;
    width: 85%;
    height: 85%;
    background: var(--background-color);
    border-radius: 50%;
}

.glowing-circle span {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(var(--primary-color), #6c5ce7);
    border-radius: 50%;
    animation: rotate 8s linear infinite;
}

.glowing-circle span:nth-child(1) {
    filter: blur(15px);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.image {
    position: relative;
    width: 85%;
    height: 85%;
    border-radius: 50%;
    z-index: 1;
    overflow: hidden;
}

.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== ABOUT SECTION ===== */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6rem;
    background: var(--card-bg);
    padding: 10rem 9%;
    min-height: 100vh;
}

.about-img {
    position: relative;
    width: 40vw;
    max-width: 450px;
}

.floating-img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 30px var(--shadow-color);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-2rem); }
    100% { transform: translateY(0); }
}

.about-content {
    max-width: 60rem;
}

.about-content h2 {
    font-size: 4.5rem;
    text-align: left;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.about-content h3 {
    font-size: 2.6rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

.skills-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.skills-box {
    flex: 1 1 30rem;
    background: var(--background-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--background-color);
    transition: .5s ease;
}

.skills-box:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.skills-box i {
    font-size: 7rem;
    color: var(--primary-color);
}

.skills-box h3 {
    font-size: 2.6rem;
    margin: 1rem 0;
}

.skills-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background: var(--background-color);
    padding: 10rem 9%;
    min-height: 100vh;
}

.projects h2 {
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 5rem;
}

.swiper {
    width: 100%;
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.swiper-slide {
    width: 30rem;
}

.project-card {
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 2rem var(--shadow-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease;
    height: 100%;
    background: var(--card-bg);
}

.project-card:hover {
    transform: scale(1.05);
}

.project-image {
    width: 100%;
    height: 25rem;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, .1), var(--primary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(100%);
    transition: .5s ease;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.project-overlay p {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 2rem;
}

.project-content {
    padding: 2rem;
    background: var(--card-bg);
}

.project-tech {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.project-tech span {
    font-size: 1.2rem;
    color: var(--text-color);
    background: rgba(74, 107, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.project-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.swiper-pagination-bullet {
    background: var(--text-color) !important;
    opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
    opacity: 1 !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color) !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 3rem !important;
    font-weight: bold !important;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--card-bg);
    padding: 10rem 9%;
    min-height: 100vh;
}

.contact h2 {
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 5rem;
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--background-color);
    border-radius: .8rem;
    margin: .7rem 0;
    border: 1px solid var(--border-color);
    outline: none;
    transition: border-color 0.3s;
}

.input-box input:focus,
.contact form textarea:focus {
    border-color: var(--primary-color);
}

.input-box input {
    width: calc(50% - 0.5rem);
}

.contact form textarea {
    resize: none;
    min-height: 25rem;
}

.contact form .btn {
    margin-top: 2rem;
    cursor: pointer;
    border: none;
}

/* ===== FOOTER STYLES ===== */
.footer {
    background: var(--background-color);
    padding: 5rem 9% 2rem;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-col h4 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-col h4 span {
    color: var(--primary-color);
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-col p {
    font-size: 1.4rem;
    color: var(--secondary-color);
    line-height: 1.8;
    margin-bottom: 2rem;
}

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

.footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: var(--card-bg);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: var(--card-bg);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1.2rem;
}

.footer-links a {
    font-size: 1.4rem;
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.footer-links a i {
    font-size: 1.6rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-links a:hover i {
    transform: translateX(3px);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: var(--secondary-color);
}

.footer-contact li i {
    font-size: 2rem;
    color: var(--primary-color);
    width: 2.5rem;
}

.footer-contact li span {
    word-break: break-all;
}

.footer-newsletter {
    display: flex;
    margin-top: 1.5rem;
}

.footer-newsletter input {
    flex: 1;
    padding: 1.2rem;
    font-size: 1.4rem;
    color: var(--text-color);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem 0 0 0.5rem;
    outline: none;
}

.footer-newsletter input:focus {
    border-color: var(--primary-color);
}

.footer-newsletter button {
    width: 5rem;
    background: var(--primary-color);
    color: var(--card-bg);
    border: none;
    border-radius: 0 0.5rem 0.5rem 0;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-newsletter button:hover {
    background: var(--secondary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.copyright p {
    font-size: 1.4rem;
    color: var(--secondary-color);
}

.copyright span {
    color: var(--primary-color);
    font-weight: 600;
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: var(--primary-color);
    border-radius: 0.8rem;
    font-size: 2.4rem;
    color: var(--card-bg);
    text-decoration: none;
    transition: all 0.5s ease;
}

.footer-iconTop a:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 0 1rem var(--primary-color);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Large Devices */
@media (max-width: 1200px) {
    html { font-size: 58%; }
    
    .header { padding: 0 5%; }
    .home, .about, .projects, .contact { padding-left: 5%; padding-right: 5%; }
    .footer { padding: 5rem 5% 2rem; }
}

/* Medium Devices */
@media (max-width: 991px) {
    html { font-size: 55%; }
    :root { --header-height: 7rem; }
    
    .header { padding: 0 4%; }
    .navbar { gap: 2.5rem; }
    
    .home { padding-top: calc(var(--header-height) + 3rem); }
    .home-content h1 { font-size: 5rem; }
    .home-img { width: 40vw; }
    
    .about-img { width: 40vw; }
    .about-content h2 { font-size: 4rem; }
    
    .projects h2, .contact h2 { font-size: 4rem; }
    
    .footer { padding: 5rem 4% 2rem; }
}

/* Tablets */
@media (max-width: 768px) {
    html { font-size: 52%; }
    :root { --header-height: 6rem; }
    
    #menu-icon { display: block; }
    
    .navbar {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - var(--header-height));
        background: var(--background-color);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 3rem 2rem;
        gap: 2rem;
        box-shadow: 2px 0 15px var(--shadow-color);
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .navbar.active { left: 0; }
    
    .navbar a {
        font-size: 2rem;
        margin: 0;
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .navbar a:last-child { border-bottom: none; }
    
    .home {
        flex-direction: column;
        text-align: center;
        gap: 4rem;
        padding-top: calc(var(--header-height) + 4rem);
    }
    
    .home-content { max-width: 100%; }
    .home-content h1 { font-size: 4.8rem; }
    .typing-text { font-size: 2.8rem; height: auto; min-height: 3.5rem; }
    .social-media, .btn-container { justify-content: center; }
    .home-img { width: 60vw; max-width: 350px; margin-top: 2rem; }
    
    .about {
        flex-direction: column-reverse;
        text-align: center;
        gap: 4rem;
        padding: 8rem 4%;
    }
    
    .about-content h2 { text-align: center; font-size: 3.8rem; }
    .about-img { width: 60vw; max-width: 350px; }
    
    .projects { padding: 8rem 4%; }
    .projects h2 { font-size: 3.8rem; }
    .swiper-slide { width: 280px; }
    
    .contact { padding: 8rem 4%; }
    .contact h2 { font-size: 3.8rem; }
    .input-box input { width: 100%; }
    
    .logo-circle { width: 150px; height: 150px; }
    .welcome-text { font-size: 2rem; }
    
    /* Footer responsive */
    .footer-row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
    .footer-bottom { flex-direction: column-reverse; text-align: center; gap: 1.5rem; }
    .copyright p { font-size: 1.3rem; }
}

/* Small Tablets */
@media (max-width: 617px) {
    html { font-size: 50%; }
    
    .home-content h1 { font-size: 4.5rem; }
    .typing-text { font-size: 2.4rem; }
    .home-img { width: 70vw; }
    .about-img { width: 70vw; }
    
    .swiper-slide { width: 100%; max-width: 300px; margin: 0 auto; }
    .project-buttons { flex-direction: row; flex-wrap: wrap; }
    .project-buttons .btn { flex: 1 1 auto; min-width: 120px; }
    
    .logo-circle { width: 130px; height: 130px; }
    .welcome-text { font-size: 1.8rem; }
}

/* Mobile L */
@media (max-width: 450px) {
    html { font-size: 48%; }
    :root { --header-height: 5.5rem; }
    
    .logo { font-size: 2rem; }
    #menu-icon { font-size: 3rem; }
    #theme-icon { font-size: 2rem; }
    
    .navbar { width: 100%; max-width: none; padding: 2rem; }
    .navbar a { font-size: 1.8rem; }
    
    .home { padding-top: calc(var(--header-height) + 3rem); }
    .home-content h1 { font-size: 4rem; }
    .typing-text { font-size: 2rem; min-height: 3rem; }
    .home-content p { font-size: 1.4rem; }
    
    .btn-container { flex-direction: column; gap: 1rem; }
    .btn { width: 100%; text-align: center; }
    .home-img { width: 80vw; }
    .about-img { width: 80vw; }
    
    .about-content h2 { font-size: 3.5rem; }
    .about-content h3 { font-size: 2.2rem; }
    .about-content p { font-size: 1.4rem; }
    
    .skills-box { flex: 1 1 100%; }
    .skills-box h3 { font-size: 2.2rem; }
    
    .projects h2, .contact h2 { font-size: 3.5rem; }
    
    /* Footer mobile */
    .footer-row { grid-template-columns: 1fr; gap: 3rem; }
    .footer-col h4 { font-size: 1.8rem; }
    .footer-social { justify-content: center; }
    .footer-links a { justify-content: center; }
    .footer-contact li { justify-content: center; }
    .footer-contact li i { width: auto; }
    .footer-newsletter { flex-wrap: wrap; }
    .footer-newsletter input { 
        width: 100%; 
        border-radius: 0.5rem; 
        margin-bottom: 1rem; 
    }
    .footer-newsletter button { 
        width: 100%; 
        border-radius: 0.5rem; 
        padding: 1.2rem; 
    }
    
    .logo-circle { width: 110px; height: 110px; }
    .welcome-text { font-size: 1.6rem; }
}

/* Mobile M */
@media (max-width: 375px) {
    .home-content h1 { font-size: 3.5rem; }
    .typing-text { font-size: 1.8rem; }
    
    .social-media { gap: 1.5rem; }
    .social-media a { width: 3.5rem; height: 3.5rem; font-size: 1.8rem; }
    
    .about-content h2 { font-size: 3rem; }
    .projects h2, .contact h2 { font-size: 3rem; }
    
    .project-overlay h3 { font-size: 2rem; }
    .project-overlay p { font-size: 1.4rem; }
    
    .logo-circle { width: 100px; height: 100px; }
}

/* Mobile S */
@media (max-width: 320px) {
    .home-content h1 { font-size: 3rem; }
    .typing-text { font-size: 1.6rem; }
    
    .btn { padding: 1rem 2rem; font-size: 1.4rem; }
    
    .about-content h2 { font-size: 2.8rem; }
    .projects h2, .contact h2 { font-size: 2.8rem; }
    
    .logo-circle { width: 90px; height: 90px; }
    .welcome-text { font-size: 1.4rem; }
}

/* Landscape Mode */
@media (max-height: 600px) and (orientation: landscape) {
    .home { min-height: auto; padding: calc(var(--header-height) + 2rem) 5% 4rem; }
    .home-img { width: 40vw; }
    .about { min-height: auto; padding: 8rem 5%; }
    .projects { min-height: auto; }
    .contact { min-height: auto; }
    
    .navbar { padding: 1.5rem; gap: 1rem; }
    .navbar a { font-size: 1.6rem; padding: 0.5rem 0; }
}

/* Print Styles */
@media print {
    .header, .footer, .welcome-screen, #menu-icon, .theme-icon-container,
    .btn, .social-media, .home-img, .about-img {
        display: none !important;
    }
    
    .home, .about, .projects, .contact {
        padding: 2rem;
        min-height: auto;
    }
}

/* Animasi Loading */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.loading {
    background: linear-gradient(90deg, var(--card-bg) 25%, var(--background-color) 50%, var(--card-bg) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: var(--card-bg);
}

/* Focus Styles */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }
