/* --- style.css --- */

:root {
    --bg-color: #0a192f; 
    --bg-card: #112240;
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --accent-color: #64ffda; 
    --gradient-1: #00BCD4;
    --gradient-2: #8E24AA;
    --nav-height: 80px;
    --transition: all 0.3s ease-in-out;
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.accent {
    color: var(--accent-color);
}

h1, h2, h3 {
    font-weight: 700;
    color: #fff;
}

.gradient-text {
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: 2rem;
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.section-title::after {
    content: "";
    display: block;
    width: 200px;
    height: 1px;
    background-color: #233554;
    margin-left: 20px;
}

.text-center { text-align: center; }
.text-center.section-title::after { display: none; }

header {
    height: var(--nav-height);
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.6rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 300;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-color);
}

section {
    padding: 100px 0;
}

#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
}

.hero-content {
    width: 100%;
}

.hero-content h3 {
    color: var(--accent-color);
    font-weight: 400;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 10px;
}

.typing-container {
    height: 90px; 
    margin-bottom: 20px;
    display: block; 
    overflow: hidden; 
}

.hero-content h2 {
    font-size: 2.5rem;
    color: var(--text-secondary);
    margin: 0; 
    line-height: 1.4; 
}

.hero-content p {
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-content .cursor {
    animation: blink-caret 0.75s step-end infinite;
    color: var(--accent-color);
    font-weight: 300;
}

@keyframes blink-caret {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 50px; 
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--bg-color); 
    transform: translateY(-5px) scale(1.05); 
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.3); 
}

.btn-outline {
    background: transparent;
    color: var(--gradient-1);
    border-color: var(--gradient-1);
}

.btn-outline:hover {
    background-color: var(--gradient-1);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 188, 212, 0.3);
}

.btn-full {
    width: 100%;
    margin-top: 10px;
    text-align: center;
}

/* Updated About Section (No Image, Readable text width) */
.about-wrapper {
    max-width: 800px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.skills-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;
}

.skill-item {
    background-color: var(--bg-card);
    padding: 25px 15px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.skill-item:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(100, 255, 218, 0.1);
}

.skill-item i {
    font-size: 3.5rem;
    transition: transform 0.3s ease;
}

.skill-item:hover i {
    transform: scale(1.15) rotate(5deg);
}

.skill-item span {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 20px; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-12px); 
    border-color: var(--accent-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(100, 255, 218, 0.1); 
}

.project-card i.accent {
    transition: transform 0.3s ease;
}

.project-card:hover i.accent {
    transform: scale(1.2) rotate(5deg);
    color: var(--gradient-1);
}

.project-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-icon {
    font-size: 2rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}
.project-card:hover .project-icon {
    transform: scale(1.2) rotate(5deg);
}

.project-links a {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-left: 10px;
}
.project-links a:hover { color: var(--accent-color); transform: scale(1.1); display: inline-block;}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.project-tech {
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.placeholder-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    opacity: 0.5;
    border: 2px dashed #233554;
    background: transparent;
}
.placeholder-card:hover { transform: none; box-shadow: none; opacity: 0.8; border-color: var(--text-secondary);}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

#contact-form .form-group { margin-bottom: 20px; }

#contact-form input, #contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    background-color: rgba(35, 53, 84, 0.5);
    border: 2px solid transparent;
    border-radius: 15px; 
    color: #fff;
    font-family: var(--font-main);
    transition: all 0.3s ease; 
}

#contact-form input:focus, #contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(35, 53, 84, 0.8);
    transform: scale(1.02); 
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.15);
}

#contact-form textarea {
    height: 150px;
    resize: none;
}

footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icons {
    margin-bottom: 20px;
}

.social-icons a {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin: 0 15px;
    display: inline-block;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-5px) scale(1.1);
}

footer p {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .hero-content h1 { font-size: 3rem; }
    .hero-content h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .logo { font-size: 1.2rem; }
    .nav-links { display: none; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content h2 { font-size: 1.5rem; line-height: 1.5;}
    .typing-container { height: 130px; margin-bottom: 10px;} 
}