/* Custom Properties based on flat UI color scheme */
:root {
    /* Color Palette */
    --color-1: #2C3E50; /* Dark Blue-grey */
    --color-2: #34495E; /* Lighter Blue-grey */
    --color-3: #7F8C8D; /* Medium Grey */
    --color-4: #BDC3C7; /* Light Grey */
    --color-5: #ECF0F1; /* Off White */
    
    /* Semantic assignments */
    --bg-main: var(--color-1);
    --bg-secondary: var(--color-2);
    --text-main: var(--color-5);
    --text-muted: var(--color-4);
    --accent: var(--color-3); 
    --accent-glow: rgba(189, 195, 199, 0.4);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Basic Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor to use custom one */
}

html {
    scroll-behavior: smooth;
}

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

::selection {
    background-color: var(--accent);
    color: var(--text-main);
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-main);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--text-muted);
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.primary-btn {
    background-color: var(--text-main);
    color: var(--bg-main);
    border: 2px solid var(--text-main);
}

.primary-btn:hover {
    background-color: transparent;
    color: var(--text-main);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-3px);
}

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

.secondary-btn:hover {
    border-color: var(--text-main);
    background-color: rgba(236, 240, 241, 0.1);
    transform: translateY(-3px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(44, 62, 80, 0.9); /* #2C3E50 with opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    font-family: var(--font-heading);
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

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

/* General Layout */
.section {
    min-height: 100vh;
    padding: 120px 40px;
    display: flex;
    align-items: center;
}

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

.section-title {
    font-size: 3.5rem;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.greeting {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.name {
    font-size: 5rem;
    margin-bottom: 25px;
    line-height: 1.1;
}

.typed-text {
    color: var(--text-muted);
    font-style: italic;
}

.cursor-blink {
    animation: blink 1s infinite;
    color: var(--accent);
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Hero Background Elements */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    opacity: 0.7;
}

.shape {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--bg-secondary);
    top: -20%;
    left: -10%;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: rgba(127, 140, 141, 0.4); /* var(--accent) modified */
    bottom: -10%;
    right: -10%;
    animation-delay: -7s;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: rgba(189, 195, 199, 0.2); /* var(--text-muted) modified */
    top: 40%;
    left: 50%;
    animation-delay: -12s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(120px, 80px) scale(1.1); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    position: relative;
    opacity: 0.7;
    transition: var(--transition);
}

.mouse:hover {
    opacity: 1;
    border-color: var(--text-main);
}

.wheel {
    width: 4px;
    height: 6px;
    background-color: var(--text-main);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: 8px; opacity: 1; }
    100% { top: 24px; opacity: 0; }
}

/* About Section */
.about {
    background-color: var(--bg-secondary); 
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--text-muted); 
}

/* Removed old skills-container logic */

.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.profile-card {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 4/5;
    z-index: 2;
}

.profile-image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    background-color: var(--bg-main);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.profile-card-bg {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent);
    border-radius: 20px;
    z-index: 1;
    transition: var(--transition);
}

.profile-card:hover .profile-card-bg {
    top: 15px;
    left: 15px;
    border-color: var(--text-muted);
}

/* Skills Section */
.skills {
    background-color: var(--bg-main);
}

.glowing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.glow-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slight border background */
    border-radius: 20px;
    padding: 2px; /* Border thickness */
    position: relative;
    overflow: hidden;
}

.glow-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(
        800px circle at var(--mouse-x, 0) var(--mouse-y, 0),
        rgba(236, 240, 241, 0.2),
        transparent 40%
    );
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s;
}

.glow-card:hover::before {
    opacity: 1;
}

.glow-card-content {
    background-color: var(--bg-secondary);
    border-radius: 18px; /* Slightly less than card for border width */
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.glow-card:hover .glow-card-content {
    background-color: rgba(52, 73, 94, 0.95); /* slightly lighter interaction */
}

.skill-icon {
    font-size: 5rem;
    margin-bottom: 25px;
    color: var(--accent);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.4s;
}

.glow-card:hover .skill-icon {
    color: var(--text-main);
    transform: translateY(-10px) scale(1.15);
    filter: drop-shadow(0 0 20px rgba(236, 240, 241, 0.4));
}

.glow-card h3 {
    color: var(--text-muted);
    font-size: 1.4rem;
    font-family: var(--font-heading);
    transition: color 0.4s;
}

.glow-card:hover h3 {
    color: var(--text-main);
}

/* Projects Section */
.projects {
    background-color: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.03);
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
    border-color: rgba(255,255,255,0.08);
}

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

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.85); /* var(--bg-main) */
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-weight: 600;
    background: var(--text-main);
    color: var(--bg-main);
    border-radius: 30px;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.project-link:hover {
    box-shadow: 0 5px 15px rgba(236, 240, 241, 0.3);
}

.project-info {
    padding: 35px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.project-tags span {
    font-size: 0.85rem;
    padding: 6px 16px;
    background: rgba(189, 195, 199, 0.1); /* var(--text-muted) with opacity */
    color: var(--text-muted);
    border-radius: 20px;
    font-weight: 500;
}

/* Contact Section */
.contact {
    background-color: var(--bg-main);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: var(--bg-main);
    padding: 80px;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

/* Add a subtle shine to the contact card */
.contact-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.02), transparent);
    transform: skewX(-20deg);
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.social-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-links a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.social-links a i {
    font-size: 1.5rem;
    color: var(--accent);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--text-main);
    transform: translateX(5px);
}

.social-links a:hover i {
    color: var(--text-main);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    padding: 10px 0;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1.1rem;
    border-bottom: 2px solid rgba(127, 140, 141, 0.3); /* var(--accent) muted */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

.form-group input:focus ~ .input-line,
.form-group textarea:focus ~ .input-line {
    width: 100%;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.submit-btn {
    align-self: flex-start;
    border: none;
    margin-top: 10px;
    cursor: none; /* override for custom cursor */
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    background: var(--bg-main);
    color: var(--accent);
    font-size: 0.95rem;
    border-top: 1px solid rgba(52, 73, 94, 0.5);
}

/* Animation Utilities for scroll */
.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .name { font-size: 4rem; }
    .about-content { gap: 40px; }
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 50px;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .section { padding: 80px 20px; }
    .name { font-size: 3rem; }
    .section-title { font-size: 2.5rem; }
    .nav-links { display: none; /* In a production app, add mobile hamburger menu */ }
    .about-content { grid-template-columns: 1fr; }
    .about-visual { order: -1; margin-bottom: 30px; }
    .profile-card { max-width: 350px; }
    .hero-background { opacity: 0.4; }
}

@media (max-width: 480px) {
    .name { font-size: 2.5rem; }
    .greeting { font-size: 1rem; }
    .btn { padding: 12px 24px; font-size: 0.8rem; }
    .contact-wrapper { padding: 30px; }
}
