/* style.css */
/* Modern Reset and Variables */
:root {
    --bg-color: #0c0f16;
    --surface-color: #161a25;
    --text-color: #ffffff;
    --text-muted: #94a3b8;
    --primary-color: #f97316;
    --secondary-color: #06b6d4;
    --accent-color: #3b82f6;
    --glass-bg: rgba(22, 26, 37, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-speed: 0.3s;
    --blob-opacity: 0;
}

[data-theme="light"] {
    --bg-color: #0c0f16;
    --surface-color: #161a25;
    --text-color: #ffffff;
    --text-muted: #94a3b8;
    --primary-color: #f97316;
    --secondary-color: #06b6d4;
    --glass-bg: rgba(22, 26, 37, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    --blob-opacity: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px; /* Accounts for navbar + announcement */
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    
    /* Security: Prevent text and image selection copying */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

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

/* Glassmorphism utility */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-heading);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

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

.btn-outline:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--glass-bg);
    transform: scale(1.05);
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--text-color);
    color: var(--bg-color);
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 30px;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: var(--surface-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--glass-border);
}

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

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
}

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

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

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
    position: relative;
    opacity: 0.8;
}

.nav-links a:hover, .nav-links a.active {
    opacity: 1;
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: clamp(28px, 4vw, 32px);
    margin-bottom: 3rem;
    text-align: left;
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    position: relative;
    background-image: url('hero.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 25vh;
}

.greeting {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(48px, 6vw, 60px);
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-weight: 600;
}

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

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.hero-image-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    width: 350px;
    height: 350px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--glass-shadow);
    animation: morphing 10s ease-in-out infinite;
    position: relative;
    backdrop-filter: blur(5px);
}

.image-wrapper i {
    font-size: 100px;
    color: var(--primary-color);
    opacity: 0.8;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
}

.about-text {
    padding: 2.5rem;
}

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

.about-text p:last-child {
    margin-bottom: 0;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2.5rem;
    justify-content: center;
}

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

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Experience Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding: 2rem;
}

.timeline-dot {
    position: absolute;
    top: 2rem;
    left: -2.6rem;
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    z-index: 2;
}

.timeline-date {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.timeline-content ul {
    list-style-type: disc;
    padding-left: 1.2rem;
    color: var(--text-muted);
}

.timeline-content li {
    margin-bottom: 0.8rem;
}

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

.project-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.project-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.project-links a {
    font-size: 1.2rem;
    color: var(--text-muted);
}

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

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    font-size: 0.8rem;
    font-family: var(--font-heading);
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-highlights {
    list-style: none;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.project-highlights li {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
}

.project-highlights li::before {
    content: '▹';
    color: var(--secondary-color);
    margin-right: 8px;
    font-size: 1.2rem;
    line-height: 1;
}

/* Skills */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
}

.skill-category {
    padding: 2rem;
}

.skill-category h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.skill-category h3 i {
    color: var(--secondary-color);
}

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

.skill-tags span {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* Education & Certs */
.edu-cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.education, .certifications {
    padding: 2.5rem;
}

.education h3, .certifications h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
}

.education h3 i, .certifications h3 i {
    color: var(--primary-color);
}

.edu-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.edu-school {
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.edu-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

.divider {
    border: 0;
    height: 1px;
    background: var(--glass-border);
    margin: 1.5rem 0;
}

.cert-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cert-list li:last-child {
    margin-bottom: 0;
}

.cert-icon {
    color: var(--accent-color);
    margin-top: 4px;
}

.cert-list h4 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.cert-list p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact Box */
.contact-box {
    padding: 5rem 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-box h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

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

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-method {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
}

.contact-method i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

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

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

.footer-logo {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 1rem;
}

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

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.footer-socials a {
    font-size: 1.5rem;
    color: var(--text-muted);
}

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

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

/* Abstract Blobs Background */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    opacity: var(--blob-opacity);
    transition: opacity 0.5s ease;
}

.blob-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: var(--primary-color);
    animation: moveBlob 25s infinite alternate;
}

.blob-2 {
    top: 40%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--secondary-color);
    animation: moveBlob 20s infinite alternate-reverse;
}

.blob-3 {
    bottom: -10%;
    right: 10%;
    width: 700px;
    height: 700px;
    background: var(--primary-color);
    animation: moveBlob 30s infinite alternate;
}

@keyframes moveBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, -100px) scale(1.1); }
}

@keyframes morphing {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
    .edu-cert-grid { grid-template-columns: 1fr; }
    .hero { flex-direction: column-reverse; text-align: center; padding-top: 8rem; }
    .hero-content { margin: 0 auto; display: flex; flex-direction: column; align-items: center; margin-top: 5vh; }
    .hero-desc { text-align: center; }
    .hero-image-placeholder { margin-bottom: 3rem; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface-color);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger { display: block; }
    
    .hero-title { font-size: 3rem; }
    .section { padding: 4rem 0; }
    .contact-box h2 { font-size: 2rem; }
    .image-wrapper { width: 250px; height: 250px; }
}
/* 
  Custom Cursor Styles appended to style.css 
  Will merge back to style.css
*/

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.2s, height 0.2s, background-color 0.2s, transform 0.1s ease-out;
}

/* Hover specific cursor classes */
.cursor-hover .cursor-dot {
    width: 0;
    height: 0;
    background-color: transparent;
}

.cursor-hover .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(59, 130, 246, 0.1);
    border-color: var(--secondary-color);
}
/* 
  Animations and Interactive Styles appended to style.css 
  Will merge back to style.css
*/

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Typing Caret Effect */
/* CSS for Icon Glow Animation appended to style.css */
i[class*="fa-"] {
    transition: all 0.3s ease;
}

/* Base icon hover effect */
i[class*="fa-"]:hover {
    transform: scale(1.1);
    text-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
    color: var(--primary-color) !important;
}

/* Specific styling to ensure connect cards and social links also glow nicely */
.connect-card:hover i,
.social-links a:hover i {
    text-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
}
