/* ============================================
   GLOBAL STYLES & VARIABLES
   Edit colors here to change entire theme
   ============================================ */
:root {
    --primary: #762b2b;        /* Cyan/Teal - main accent */
    --secondary: #dbb946;      /* Pink/Magenta - secondary accent */
    --tertiary: #8c4ac2;       /* Purple - tertiary accent */
    --bg-dark: #12122d;        /* Main dark background */
    --bg-darker: #050510;      /* Darker sections */
    --bg-card: #16213e;        /* Card background */
    --text-light: #ffffff;     /* Main text */
    --text-muted: #a0a0b8;     /* Secondary text */
    --gradient-1: linear-gradient(135deg, #00f5d4 0%, #9d4edd 100%);
    --gradient-2: linear-gradient(135deg, #f72585 0%, #9d4edd 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb { background: var(--gradient-1); border-radius: 10px; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--bg-dark);
    box-shadow: 0 10px 30px rgba(0, 245, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 245, 212, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    margin-left: 15px;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(10, 10, 26, 0.7);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(10, 10, 26, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 100px 20px 50px;
}

.hero-bg-animation {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: blobMove 20s infinite ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    right: -100px;
    animation-delay: -7s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: var(--tertiary);
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes blobMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -50px) scale(1.1); }
    66% { transform: translate(-80px, 80px) scale(0.9); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.hero-greeting {
    color: var(--primary);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-name {
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, var(--tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-title {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-muted);
    min-height: 50px;
}

.typing-text { color: var(--primary); }

.cursor {
    display: inline-block;
    color: var(--primary);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons { margin-bottom: 40px; }

.hero-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-socials a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.hero-socials a:hover {
    background: var(--gradient-1);
    color: var(--bg-dark);
    transform: translateY(-5px) rotate(360deg);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
}

.scroll-indicator span {
    display: block;
    width: 25px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 20px;
    margin: 0 auto 10px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { top: 8px; opacity: 1; }
    100% { top: 24px; opacity: 0; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SECTION HEADERS (Reusable)
   ============================================ */
section { padding: 100px 0; }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
}

.section-title span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about { background: var(--bg-darker); }

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-image .image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.about-image .image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0.2;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.about-image .image-wrapper:hover { transform: scale(1.03); }
.about-image .image-wrapper:hover::before { opacity: 0; }

.about-image img {
    width: 100%;
    display: block;
    border-radius: 20px;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 16px;
}

.about-text strong { color: var(--primary); }

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.stat-item:hover { transform: translateY(-10px); }

.stat-number {
    font-size: 40px;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.skill-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0.1;
    transition: left 0.5s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 245, 212, 0.2);
}

.skill-card:hover::before { left: 0; }

.skill-icon {
    font-size: 50px;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-card h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.skill-card p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 14px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress {
    height: 100%;
    width: 0;
    background: var(--gradient-1);
    border-radius: 5px;
    transition: width 1.5s ease;
}

.percent {
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   PROJECTS SECTION (YouTube Videos)
   ============================================ */
.projects { background: var(--bg-darker); }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(247, 37, 133, 0.2);
    border-color: var(--secondary);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.project-info { padding: 25px; }

.project-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--primary);
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 15px;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tags span {
    padding: 6px 14px;
    background: rgba(0, 245, 212, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(0, 245, 212, 0.3);
}

/* ============================================
   GRAPHICS SECTION
   ============================================ */
.graphics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.graphic-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.graphic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.graphic-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,26,0.95) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.graphic-item:hover img { transform: scale(1.1); }
.graphic-item:hover .graphic-overlay { opacity: 1; }

.graphic-overlay h3 {
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 5px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.graphic-overlay p {
    color: var(--text-light);
    font-size: 14px;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.graphic-item:hover .graphic-overlay h3,
.graphic-item:hover .graphic-overlay p {
    transform: translateY(0);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact { background: var(--bg-darker); }

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--bg-card);
    border-radius: 15px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

.info-item:hover {
    transform: translateX(10px);
    border-left-color: var(--secondary);
}

.info-item i {
    font-size: 24px;
    color: var(--primary);
    width: 50px;
    height: 50px;
    background: rgba(0, 245, 212, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-item h4 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.info-item p {
    font-size: 16px;
    color: var(--text-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px 20px;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--text-light);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form textarea { resize: vertical; }

.contact-form button {
    align-self: flex-start;
    cursor: pointer;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 30px 0;
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer p { color: var(--text-muted); }
.footer i { color: var(--secondary); }

.footer-socials { display: flex; gap: 15px; }

.footer-socials a {
    color: var(--text-muted);
    font-size: 18px;
    transition: color 0.3s ease;
}

.footer-socials a:hover { color: var(--primary); }

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN (Mobile & Tablet)
   ============================================ */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-darker);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 30px;
        transition: left 0.4s ease;
    }
    
    .nav-links.active { left: 0; }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stats { grid-template-columns: 1fr; }
    
    .projects-grid { grid-template-columns: 1fr; }
    
    .btn-secondary { margin-left: 0; margin-top: 15px; }
    
    .hero-buttons { display: flex; flex-direction: column; gap: 10px; align-items: center; }
    
    section { padding: 70px 0; }
}