/* =========================================================================
   Premium UI/UX Designer Portfolio - CSS
   ========================================================================= */

/* --- Variables --- */
:root {
    /* Colors */
    --bg-main: #060b19;
    --bg-alt: #0a1128;
    --bg-card: rgba(17, 24, 39, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;

    --primary: #3b82f6; /* Blue */
    --primary-hover: #2563eb;
    --secondary: #8b5cf6; /* Violet */
    --accent: #10b981; /* Emerald */

    /* Gradients */
    --gradient-1: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-2: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%); /* Pink to Violet */
    --gradient-3: linear-gradient(135deg, #14b8a6 0%, #3b82f6 100%); /* Teal to Blue */
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Shadows & Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.3);
    
    --glass-bg: rgba(6, 11, 25, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

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

.text-center {
    text-align: center;
}

/* --- Typography Utilities --- */
.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-highlight {
    color: var(--primary);
    font-weight: 600;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
    color: white;
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-white {
    background: white;
    color: #000;
}

.btn-white:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

/* --- Layout Elements --- */
.section-header {
    margin-bottom: 4rem;
}

.section-subtitle {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
}

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

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

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

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

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: pointer;
}

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

.hero-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.15);
    filter: blur(100px);
    border-radius: 50%;
    z-index: -1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: rgba(139, 92, 246, 0.15);
    filter: blur(100px);
    border-radius: 50%;
    z-index: -1;
}

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

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.2;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: var(--border-color);
}

/* --- Premium Redesigned Hero Visual --- */
.hero-visual-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.hero-backdrop-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: var(--gradient-1);
    filter: blur(100px);
    opacity: 0.35;
    z-index: 0;
    animation: pulse-glow 4s infinite alternate;
}

@keyframes pulse-glow {
    0% { transform: scale(0.8); opacity: 0.2; }
    100% { transform: scale(1.1); opacity: 0.45; }
}

.hero-visual-core {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
}

.hero-main-img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: cover;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
    background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.premium-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(10, 15, 30, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 100px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    z-index: 3;
    animation: float 7s ease-in-out infinite reverse;
}

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

.badge-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.2;
}

.badge-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.floating-badge-1 {
    top: 15%;
    left: -15%;
}

.floating-badge-2 {
    bottom: 15%;
    right: -15%;
    animation-delay: 2s;
}

.decorative-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,0.15);
    z-index: 1;
    animation: spin 30s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.ring-1 {
    width: 110%;
    height: 110%;
}

.ring-2 {
    width: 125%;
    height: 125%;
    border: 1px solid rgba(59, 130, 246, 0.15);
    animation-direction: reverse;
    animation-duration: 40s;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* --- About & Skills Section --- */
.pattern-bg {
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.about-container {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 5rem;
    align-items: center;
}

.about-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 24px;
    background: var(--gradient-1);
    padding: 3px;
}

.frame-content {
    background: var(--bg-main);
    width: 100%;
    height: 100%;
    border-radius: 21px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Updated profile image class */
.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* to center the face gracefully */
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
}

.exp-years {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.exp-text {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
}

.skills-wrapper {
    margin-top: 2.5rem;
}

.skills-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.skill-tag i {
    font-size: 1.2rem;
    color: var(--primary);
}

.skill-tag:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(59, 130, 246, 0.1);
    border-color: rgba(255,255,255,0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-desc {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* --- Portfolio Section --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 2.5rem;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--bg-main);
}

.portfolio-actual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* Capture top details of full page website designs */
    transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-actual-img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 11, 25, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.portfolio-tags span {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    color: var(--text-light);
}

.portfolio-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.portfolio-desc {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Modal Web-Frame Styling */
.modal {
    display: none;
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(6, 11, 25, 0.95);
    backdrop-filter: blur(5px);
}

.modal-content-wrapper {
    margin: 5vh auto;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    background: var(--bg-main);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: zoom 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-header {
    background: var(--bg-alt);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot-red { background: #ff5f56; cursor: pointer; }
.dot-yellow { background: #ffbd2e; cursor: not-allowed; }
.dot-green { background: #27c93f; cursor: not-allowed; }

.modal-body {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-alt);
    /* Custom scrollbar for better blend */
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}
.modal-body::-webkit-scrollbar {
    width: 8px;
}
.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.modal-content {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes zoom {
    from {transform:scale(0.95); opacity:0} 
    to {transform:scale(1); opacity:1}
}

/* --- Team Section --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-card {
    text-align: center;
    background: transparent;
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.1);
}

.team-card:hover .team-img-wrapper {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
    border-color: var(--primary);
}

.team-img-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    background: var(--bg-main);
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.team-name {
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}

.team-role {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0;
}

/* --- Contact Section --- */
.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(59, 130, 246, 0.2);
    filter: blur(50px);
    border-radius: 50%;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
    width: 100%;
    margin: 2rem 0;
}

.contact-method-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-normal);
}

.contact-method-card:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-method-card .method-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: white;
}

.contact-method-card h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-main);
}

.contact-method-card p {
    margin: 0;
    color: var(--text-muted);
    font-weight: 500;
}

.social-links-large {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    margin-top: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    color: white;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.linkedin-btn {
    background: #0077b5;
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.2);
}
.linkedin-btn:hover {
    background: #006396;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.4);
    color: white;
}

.behance-btn {
    background: #1769ff;
    box-shadow: 0 4px 15px rgba(23, 105, 255, 0.2);
}
.behance-btn:hover {
    background: #004ecc;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(23, 105, 255, 0.4);
    color: white;
}

.dribbble-btn {
    background: #ea4c89;
    box-shadow: 0 4px 15px rgba(234, 76, 137, 0.2);
}
.dribbble-btn:hover {
    background: #c32361;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(234, 76, 137, 0.4);
    color: white;
}

.github-btn {
    background: #333;
    box-shadow: 0 4px 15px rgba(51, 51, 51, 0.2);
}
.github-btn:hover {
    background: #111;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(51, 51, 51, 0.4);
    color: white;
}

/* --- Footer --- */
.footer {
    background: #040812;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 400px;
}

.footer-links-group h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

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

.footer-divider {
    height: 1px;
    background: var(--border-color);
    margin-bottom: 2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.scroll-top {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.scroll-top:hover {
    background: var(--primary);
    color: white;
}

/* --- Animations & Utilities --- */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .modal-content {
        max-width: 100%;
        max-height: 80vh;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual-wrapper {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-alt);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%);
        opacity: 0;
        transition: all var(--transition-normal);
        z-index: -1;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .glass-panel {
        padding: 2rem;
    }

    .header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .glass-panel {
        padding: 1.5rem;
    }
    
    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
}
