/* CSS Variables & Design Options */
:root {
    --primary-hue: 250; /* Purple-ish */
    --secondary-hue: 180; /* Teal-ish */
    
    --color-bg: #0a0a0c;
    --color-bg-alt: #111114;
    --color-text: #e0e0e0;
    --color-text-muted: #a0a0a0;
    
    --color-primary: hsl(var(--primary-hue), 80%, 60%);
    --color-secondary: hsl(var(--secondary-hue), 70%, 50%);
    --color-accent: #f72585;

    --gradient-main: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --spacing-container: 1200px;
    --spacing-section: 6rem;
    
    --radius-md: 12px;
    --radius-lg: 24px;
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 10px;
}

/* Animations Utility */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; }

a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }

/* Utilities */
.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    text-align: center;
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    width: 100%;
}

.gradient-text {
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 10px 20px -10px var(--color-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -10px var(--color-primary);
}

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

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

/* Layout */
section {
    padding: var(--spacing-section) 0;
}

.section-alt {
    background-color: var(--color-bg-alt);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background 0.3s, padding 0.3s;
}

.glass-nav {
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

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

nav ul {
    display: flex;
    gap: 2rem;
}

nav a:hover { color: var(--color-primary); }

/* Hero */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px; /* Offset fixed header */
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.greeting {
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin: 1.5rem 0 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Visual Placeholder - Now Container for Three.js */
.visual-circle {
    width: 400px;
    height: 400px;
    position: relative;
    margin: 0 auto;
    background-color: var(--color-bg);
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    
    .hero-section .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    nav { display: none; /* Mobile menu implementation needed later */ }
}

/* Contact Section Enhanced */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

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

.method-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.method-icon {
    font-size: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.method-details {
    display: flex;
    flex-direction: column;
}

.method-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.method-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
}

.large-socials .social-link {
    font-size: 1.1rem;
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.03);
}

.large-socials .social-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Contact Form Card */
.contact-card {
    position: relative;
}

.glass-form {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
}

.glass-form h3 {
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: #fff;
    font-family: var(--font-body);
    transition: border-color 0.3s, background 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(0, 0, 0, 0.4);
}

.full-width {
    width: 100%;
}

@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        order: 2;
    }
    
    .contact-card {
        order: 1;
    }
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    background: var(--color-bg-alt);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

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

.social-link {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--color-primary);
}

.badge-internal {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

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

.skill-tag {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
    border-color: var(--color-secondary);
}

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

.img-placeholder {
    width: 100%;
    height: 100%;
    background: #222;
    transition: transform 0.5s;
}

.hue-1 { background: linear-gradient(45deg, #2a2a72, #009ffd); }
.hue-2 { background: linear-gradient(45deg, #ff00cc, #333399); }
.hue-3 { background: linear-gradient(45deg, #11998e, #38ef7d); }

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

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.project-content p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.project-tags {
    display: flex;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.link-btn {
    font-weight: 600;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.link-btn .arrow {
    transition: transform 0.3s;
}

.link-btn:hover .arrow {
    transform: translateX(5px);
}

.link-github {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.link-github:hover {
    color: #fff;
    text-decoration: underline;
}

/* About Grid Enhancement */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.about-text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.about-stats {
    display: grid;
    gap: 1.5rem;
}

.stat-card {
    background: var(--glass-bg);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--glass-border);
}

.stat-card .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.stat-card .label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight {
    color: var(--color-primary);
}
