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

/* Variabel CSS - Light Theme Default */
:root {
    --primary-color: #536dfe;
    --secondary-color: #6c757d;
    --accent-color: #ff6b6b;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --background-color: #ffffff;
    --text-color: #333333;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 5px;
    --form-bg: #ffffff;
    --input-bg: #f8f9fa;
    --input-text: #333333;
    --border-color: #e0e0e0;
    --button-hover: #4361ee;
    --form-placeholder: #6c757d;
}

/* Add smooth transition for theme changes */
html {
    scroll-behavior: smooth;
    transition: background-color 0.5s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Add transition to all elements that use theme variables */
*, *::before, *::after {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
    flex-direction: column;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

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

.loader span {
    width: 18px;
    height: 18px;
    margin: 0 8px;
    background: linear-gradient(45deg, var(--primary-color), #00ffff);
    border-radius: 50%;
    animation: loader 1.2s infinite ease-in-out;
    box-shadow: 0 0 20px var(--primary-color);
}

.loader span:nth-child(1) {
    animation-delay: 0.1s;
    background: linear-gradient(45deg, #ff0080, #ff4080);
    box-shadow: 0 0 20px #ff0080;
}

.loader span:nth-child(2) {
    animation-delay: 0.2s;
    background: linear-gradient(45deg, #00ff80, #80ff80);
    box-shadow: 0 0 20px #00ff80;
}

.loader span:nth-child(3) {
    animation-delay: 0.3s;
    background: linear-gradient(45deg, #0080ff, #4080ff);
    box-shadow: 0 0 20px #0080ff;
}

.loader span:nth-child(4) {
    animation-delay: 0.4s;
    background: linear-gradient(45deg, #ff8000, #ffff00);
    box-shadow: 0 0 20px #ff8000;
}

@keyframes loader {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-25px) scale(1.2);
        opacity: 1;
    }
}

.loading-text {
    margin-top: 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    text-align: center;
    animation: loadingPulse 1.5s infinite ease-in-out;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

a {
    text-decoration: none;
    color: var(--dark-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 80px 0;
    overflow: hidden;
}

.section-padding {
    padding: 100px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Utility Classes */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-line {
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto;
    margin-top: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    box-shadow: var(--box-shadow);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--dark-color);
}

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

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: var(--background-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

header.sticky {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

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

.menu-items {
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-items li {
    margin-left: 30px;
}

.menu-item {
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.menu-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.menu-item:hover {
    color: var(--primary-color);
}

.menu-item:hover::after {
    width: 100%;
}

.download-cv {
    padding: 8px 15px;
    background: var(--primary-color);
    color: white !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.download-cv:hover {
    background: var(--dark-color);
}

.download-cv::after {
    display: none;
}

.menu-btn {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.menu-btn__lines, 
.menu-btn__lines::before, 
.menu-btn__lines::after {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--dark-color);
    transition: all 0.3s ease;
}

.menu-btn__lines {
    top: 50%;
    transform: translateY(-50%);
}

.menu-btn__lines::before {
    content: '';
    top: -8px;
}

.menu-btn__lines::after {
    content: '';
    top: 8px;
}

.menu-btn.open .menu-btn__lines {
    background: transparent;
}

.menu-btn.open .menu-btn__lines::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.open .menu-btn__lines::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f8ff 0%, #e5ebff 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="10" cy="10" r="2" fill="%234a63e730"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    padding-right: 30px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--dark-color);
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 90%;
    animation: float 3s ease-in-out infinite;
}

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

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    position: relative;
}

.image-frame {
    position: relative;
    border: 5px solid white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transform: rotate(-3deg);
    transition: all 0.5s ease;
    z-index: 2;
}

.about-image:hover .image-frame {
    transform: rotate(0);
}

.about-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    top: 20px;
    left: 20px;
    border-radius: 10px;
    z-index: 1;
    opacity: 0.1;
    transform: rotate(3deg);
    transition: all 0.5s ease;
}

.about-image:hover .about-shape {
    transform: rotate(0);
    top: 10px;
    left: 10px;
}

.image-frame img {
    width: 100%;
    max-width: 400px;
    border-radius: 5px;
    transition: all 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-color);
    position: relative;
    padding-left: 15px;
}

.about-text h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: var(--primary-color);
    border-radius: 10px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.about-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.info-item {
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(5px);
}

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

/* Skills Section */
.skills-content {
    display: flex;
    gap: 50px;
}

.skills-text {
    flex: 1;
}

.skills-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-color);
    position: relative;
    padding-left: 15px;
}

.skills-text h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: var(--primary-color);
    border-radius: 10px;
}

.skills-text p {
    color: var(--secondary-color);
}

.skills-wrapper {
    flex: 1;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-info p {
    font-weight: 500;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, #6d83ff 100%);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.2, 1);
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.5) 50%, 
        rgba(255, 255, 255, 0) 100%);
    animation: shimmer 2s infinite;
}

/* Skills tabs */
.skills-tabs {
    display: flex;
    margin: 25px 0;
    border-bottom: 1px solid #e9ecef;
}

.skills-tab {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.skills-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.skills-tab.active {
    color: var(--primary-color);
}

.skills-tab.active::after {
    width: 100%;
}

.skills-content-tab {
    display: none;
    margin-top: 20px;
}

.skills-content-tab.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.skills-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.skill-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px;
    text-align: center;
    transition: all 0.3s ease;
}

.skill-icon i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.skill-icon span {
    font-size: 0.8rem;
    font-weight: 500;
}

.skill-icon:hover {
    transform: translateY(-5px);
}

.skill-icon:hover i {
    color: var(--accent-color);
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Projects Section */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    border: none;
    border-radius: var(--border-radius);
    background: #f1f3f5;
    color: var(--dark-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1);
    z-index: -1;
}

.filter-btn:hover::before, .filter-btn.active::before {
    left: 0;
}

.filter-btn:hover, .filter-btn.active {
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.project-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.5s cubic-bezier(0.42, 0, 0.58, 1);
    position: relative;
    top: 0;
    min-height: 350px;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.42, 0, 0.58, 1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 99, 231, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.42, 0, 0.58, 1);
}

.project-info {
    text-align: center;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.42, 0, 0.58, 1);
    color: white;
    padding: 20px;
    opacity: 0;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.project-info p {
    margin-bottom: 15px;
    color: #ddd;
}

.project-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: white;
    color: var(--dark-color);
    border-radius: 50%;
    line-height: 40px;
    transition: all 0.3s cubic-bezier(0.42, 0, 0.58, 1);
    transform: translateY(20px);
    opacity: 0;
}

.project-link:hover {
    background: var(--accent-color);
    color: white;
    transform: rotate(360deg);
}

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

.project-image:hover .project-overlay {
    opacity: 1;
}

.project-image:hover .project-info {
    transform: translateY(0);
    opacity: 1;
}

.project-image:hover .project-link {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.2s;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.contact-info-item:hover {
    transform: translateX(10px);
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-right: 20px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-info-icon {
    transform: rotate(360deg);
    background: var(--accent-color);
}

.contact-info-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.contact-info-item:hover .contact-info-text h3 {
    color: var(--primary-color);
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center; /* Center the content */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the form elements */
    width: 100%; /* Ensure it takes full width of its container */
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    text-align: left; /* Keep the form fields left-aligned */
    width: 100%; /* Ensure form groups take full width */
    max-width: 95%; /* Add a max-width to prevent touching the edges */
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 99, 231, 0.1);
    background: white;
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: #adb5bd;
    transition: opacity 0.3s ease;
}

.form-group input:focus::placeholder, .form-group textarea:focus::placeholder {
    opacity: 0.5;
}

.contact-form .btn {
    width: auto; /* Change from 100% to auto */
    padding: 15px 30px; /* Add horizontal padding */
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin: 0 auto; /* Center the button */
    display: inline-block; /* Make it inline-block for proper centering */
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

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

.footer-logo p {
    color: #aaa;
    line-height: 1.6;
    margin-top: 10px;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-links h3:after,
.footer-contact h3:after,
.footer-social h3:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background: var(--primary-color);
    bottom: -8px;
    left: 0;
}

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

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #aaa;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #aaa;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-social .social-icons {
    display: flex;
    gap: 15px;
}

.footer-social .social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.footer-social .social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #aaa;
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 99, 231, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(74, 99, 231, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 99, 231, 0);
    }
}

.scroll-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media screen and (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-content, .skills-content {
        flex-direction: column;
    }
    
    .about-image, .skills-text {
        margin-bottom: 30px;
    }
    
    .about-image img {
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .menu-btn {
        display: block;
    }
    
    .menu-items {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 30px 30px;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1;
    }
    
    .menu-items.open {
        right: 0;
    }
    
    .menu-items li {
        margin: 15px 0;
        width: 100%;
    }
    
    .menu-item {
        display: block;
        padding: 5px 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

@media screen and (max-width: 576px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .about-info {
        grid-template-columns: 1fr;
    }
}

/* Custom cursor */
.cursor, .cursor-follower {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    left: -100px;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
    z-index: 9999;
}

.cursor {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    z-index: 10000;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-color);
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
    background: rgba(74, 99, 231, 0.1);
}

.cursor.active {
    transform: translate(-50%, -50%) scale(0);
}

.cursor-follower.active {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(74, 99, 231, 0.05);
    border: 1px solid rgba(74, 99, 231, 0.3);
}

/* Form animations and effects */
.form-group.focused input, .form-group.focused textarea {
    border-color: var(--primary-color);
}

.form-group input.error, .form-group textarea.error {
    border-color: var(--accent-color);
    background-color: rgba(255, 107, 107, 0.05);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.success-message {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
    animation: pop 0.5s ease;
}

@keyframes pop {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-message h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.success-message p {
    color: var(--secondary-color);
}

/* Header */
.glass-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding: 20px 0 !important;
    z-index: 1000 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
}

/* Dark theme header */
[data-theme="dark"] .glass-header {
    background: rgba(21, 26, 32, 0.95) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3) !important;
}

/* Sticky header behavior */
.glass-header.sticky {
    padding: 15px 0 !important;
    background: rgba(255, 255, 255, 0.98) !important;
}

[data-theme="dark"] .glass-header.sticky {
    background: rgba(21, 26, 32, 0.98) !important;
}
