:root {
    --bg-primary: #f8f7f4;
    --bg-secondary: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent: #ff6b35;
    --accent-dark: #e85a28;
    --border: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
    --card-bg: #ffffff;
}

[data-theme="dark"] {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --accent: #ff7b52;
    --accent-dark: #ff6b35;
    --border: #2a2a2a;
    --shadow: rgba(255, 255, 255, 0.05);
    --card-bg: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border);
    z-index: 1000;
    transition: all 0.4s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 2px;
    color: var(--accent);
    animation: slideInLeft 0.8s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dark Mode Toggle */
.theme-toggle {
    background: none;
    border: 2px solid var(--border);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--accent);
    transform: rotate(180deg);
}

.theme-toggle::before {
    content: '☀️';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

[data-theme="dark"] .theme-toggle::before {
    content: '🌙';
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.9;
    letter-spacing: 3px;
    color: var(--text-primary);
}

.hero-title span {
    display: block;
    color: var(--accent);
    animation: slideInRight 1s ease 0.3s both;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--text-secondary);
    max-width: 600px;
    animation: fadeIn 1s ease 0.6s both;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: 'Manrope', sans-serif;
}

.btn-primary {
    background: var(--accent);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-dark);
    transition: left 0.3s ease;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

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

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

/* Section Styling */
section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 3rem;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background: var(--accent);
}

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

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 80%;
    height: 100%;
    border: 3px solid var(--accent);
    z-index: -1;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    filter: grayscale(20%);
}

/* Skills Section */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.skill-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    padding: 2rem;
    flex: 1 1 calc(33.333% - 2rem);
    min-width: 250px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transition: left 0.4s ease;
}

.skill-card:hover::before {
    left: 0;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px var(--shadow);
}

.skill-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    color: var(--accent);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.tag {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Projects Section */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    display: flex;
    gap: 2rem;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.project-card:hover {
    transform: translateX(10px);
    border-color: var(--accent);
    box-shadow: -10px 10px 30px var(--shadow);
}

.project-image {
    flex: 1;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* keeps proper ratio */
    display: block;
}


.project-image {
    flex: 1;
    background: var(--bg-primary);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent) 0%, transparent 100%);
    opacity: 0.2;
}

.project-info {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-info h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    padding: 0.7rem 1.5rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.project-link:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 1rem;
    border: 2px solid transparent;
}

.contact-method:hover {
    border-color: var(--accent);
    padding-left: 1.5rem;
}

.contact-method span:first-child {
    font-size: 1.5rem;
}

.contact-form {
    flex: 1;
    background: var(--card-bg);
    border: 2px solid var(--border);
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--border);
    padding: 3rem 5%;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-5px);
}

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@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 float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Responsive Media Queries */
@media (max-width: 968px) {
    nav {
        padding: 1rem 5%;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 5rem 2rem;
        gap: 2rem;
        transition: right 0.4s ease;
        border-left: 2px solid var(--border);
        box-shadow: -5px 0 20px var(--shadow);
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .about-content {
        flex-direction: column;
    }

    .project-card {
        flex-direction: column;
    }

    .contact-container {
        flex-direction: column;
    }

    .skill-card {
        flex: 1 1 calc(50% - 2rem);
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 6rem 5% 3rem;
    }

    section {
        padding: 4rem 5%;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .skill-card {
        flex: 1 1 100%;
    }

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

    .social-links {
        flex-wrap: wrap;
    }
}

