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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* View Toggle Buttons */
.view-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10000;
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toggle-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.toggle-btn.active {
    background: #4F46E5;
    color: #fff;
    border-color: #4F46E5;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.5);
}

/* View Container */
.view-container {
    display: none;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

.view-container.active {
    display: block;
    z-index: 100;
}

/* Terminal View Styles */
#terminalView {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
    overflow: hidden;
}

.terminal-window {
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 900px;
    height: 600px;
    max-height: 600px;
    overflow: hidden;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background: #2d2d2d;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #333;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.terminal-btn.close {
    background: #ff5f57;
}

.terminal-btn.minimize {
    background: #ffbd2e;
}

.terminal-btn.maximize {
    background: #28ca42;
}

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.terminal-content {
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.8;
    color: #fff;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.terminal-line {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.prompt {
    color: #4F46E5;
    font-weight: 600;
    white-space: nowrap;
}

.command {
    color: #22c55e;
    font-weight: 500;
}

.terminal-output {
    margin: 10px 0 20px 0;
    padding-left: 20px;
    color: #e5e7eb;
}

.terminal-output p {
    margin: 2px 0;
}

.cursor {
    color: #4F46E5;
    animation: blink 1s infinite;
}

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

/* Terminal Input */
.terminal-input-line {
    background: #1e1e1e;
    padding: 15px 20px;
    border-top: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #22c55e;
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px; /* Prevent zoom on iOS Safari */
    outline: none;
    flex: 1;
    caret-color: #4F46E5;
}

.terminal-input::placeholder {
    color: #666;
    font-style: italic;
}

.terminal-input:focus {
    outline: none;
}

/* Modern View Styles */
#modernView {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Header */
.modern-header {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-brand h1 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

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

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.nav-links a:hover {
    color: #fbbf24;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

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

/* Main Content */
.modern-main {
    padding-top: 0;
}

/* Hero Section */
.hero-section {
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Backward compatibility for any remaining h2 */
.hero-text h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight {
    color: #fbbf24;
    position: relative;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #4F46E5;
    color: #fff;
}

.btn-primary:hover {
    background: #3730a3;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
}

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

.btn-secondary:hover {
    background: #fff;
    color: #4F46E5;
    transform: translateY(-2px);
}

/* Profile Card */
.profile-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-10px);
}

.profile-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.social-links a:hover {
    background: #4F46E5;
    transform: translateY(-3px);
}

/* Sections */
.about-section,
.contact-section {
    padding: 6rem 2rem;
    background: #fff;
}

.about-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content-simple {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #64748b;
}

.about-text-center {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #64748b;
    text-align: center;
}

.about-text p,
.about-text-center p {
    margin-bottom: 1.5rem;
}



/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
}

.contact-section .section-title {
    color: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-content-center {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact-content-center .contact-info {
    max-width: 600px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.contact-link i {
    font-size: 1.25rem;
    color: #4F46E5;
}

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #fff;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4F46E5;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Footer */
.modern-footer {
    background: #0f172a;
    color: #fff;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background: #4F46E5;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .view-toggle {
        top: 10px;
        left: 10px;
        gap: 5px;
        padding: 4px;
        background: rgba(0, 0, 0, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: 40px;
    }
    
    .toggle-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
        background: rgba(255, 255, 255, 0.25);
        border: 2px solid rgba(255, 255, 255, 0.4);
    }

    /* Terminal View Mobile */
    #terminalView {
        padding: 5px;
        align-items: flex-start;
        padding-top: 65px;
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height for modern browsers */
    }

    .terminal-window {
        width: 100%;
        max-width: 100%;
        height: calc(100vh - 75px);
        height: calc(100dvh - 75px); /* Dynamic viewport height */
        max-height: calc(100vh - 75px);
        max-height: calc(100dvh - 75px);
        margin: 0;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        position: relative;
    }

    .terminal-header {
        padding: 8px 12px;
    }

    .terminal-title {
        font-size: 11px;
    }

    .terminal-buttons .terminal-btn {
        width: 10px;
        height: 10px;
    }

    .terminal-content {
        font-size: 11px;
        padding: 10px;
        line-height: 1.6;
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding-bottom: 60px; /* Space for input line */
    }

    .terminal-input-line {
        padding: 8px 10px;
        font-size: 16px; /* Prevent zoom on iOS Safari */
        position: sticky;
        bottom: 0;
        background: #1e1e1e;
        border-top: 1px solid #333;
        z-index: 10;
        flex-shrink: 0;
    }

    .terminal-line {
        margin: 4px 0;
        gap: 5px;
        flex-wrap: wrap;
    }

    .prompt {
        font-size: 10px;
    }

    .command {
        font-size: 11px;
    }

    .terminal-output {
        margin: 5px 0 10px 0;
        padding-left: 8px;
        font-size: 10px;
    }

    /* Modern View Mobile */
    .modern-header {
        padding: 12px 0;
    }
    
    .navbar {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .nav-brand h1 {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 0.9rem;
    }
    
    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 13px;
        padding: 8px 12px;
    }

    .hero-section {
        padding: 50px 0 30px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-text h2 {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .profile-card {
        padding: 18px;
        margin: 0 auto;
    }

    .profile-avatar {
        width: 90px;
        height: 90px;
    }

    .profile-info h3 {
        font-size: 1.2rem;
    }

    .profile-info p {
        font-size: 0.9rem;
    }

    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .about-section,
    .contact-section {
        padding: 35px 0;
    }

    .section-title {
        font-size: 1.9rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .about-text p,
    .about-text-center p {
        font-size: 0.95rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-link {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-info h3 {
        font-size: 1.3rem;
    }

    .footer-info p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .view-toggle {
        top: 8px;
        left: 8px;
        gap: 3px;
        padding: 3px;
    }
    
    .toggle-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    /* Terminal View Small Mobile */
    #terminalView {
        padding: 3px;
        padding-top: 50px;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .terminal-window {
        height: calc(100vh - 55px);
        height: calc(100dvh - 55px);
        max-height: calc(100vh - 55px);
        max-height: calc(100dvh - 55px);
        border-radius: 5px;
        display: flex;
        flex-direction: column;
        position: relative;
    }

    .terminal-header {
        padding: 6px 8px;
    }

    .terminal-title {
        font-size: 9px;
    }

    .terminal-buttons .terminal-btn {
        width: 8px;
        height: 8px;
    }

    .terminal-content {
        font-size: 10px;
        padding: 8px;
        line-height: 1.5;
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding-bottom: 50px; /* Space for input line */
    }

    .terminal-input-line {
        padding: 6px 8px;
        font-size: 16px; /* Prevent zoom on iOS Safari */
        position: sticky;
        bottom: 0;
        background: #1e1e1e;
        border-top: 1px solid #333;
        z-index: 10;
        flex-shrink: 0;
    }

    .terminal-line {
        margin: 2px 0;
        gap: 3px;
    }

    .prompt {
        font-size: 9px;
    }

    .command {
        font-size: 10px;
    }

    .terminal-output {
        margin: 3px 0 6px 0;
        padding-left: 6px;
        font-size: 9px;
    }

    /* Modern View Small Mobile */
    .nav-brand h1 {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 0.8rem;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 12px;
        padding: 6px 10px;
    }

    .hero-section {
        padding: 40px 0 25px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text h2 {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-buttons {
        gap: 8px;
    }

    .btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .profile-card {
        padding: 15px;
    }

    .profile-avatar {
        width: 75px;
        height: 75px;
    }

    .profile-info h3 {
        font-size: 1.1rem;
    }

    .profile-info p {
        font-size: 0.8rem;
    }

    .social-links a {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .about-section,
    .contact-section {
        padding: 25px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .about-text p,
    .about-text-center p {
        font-size: 0.85rem;
    }

    .contact-link {
        padding: 8px 14px;
        font-size: 12px;
    }

    .footer-info h3 {
        font-size: 1.1rem;
    }

    .footer-info p {
        font-size: 0.8rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    #terminalView {
        padding-top: 55px;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .terminal-window {
        height: calc(100vh - 60px);
        height: calc(100dvh - 60px);
        max-height: calc(100vh - 60px);
        max-height: calc(100dvh - 60px);
        display: flex;
        flex-direction: column;
        position: relative;
    }

    .hero-section {
        padding: 30px 0 20px;
    }

    .about-section,
    .contact-section {
        padding: 25px 0;
    }
}

/* Very Small Screens */
@media (max-width: 360px) {
    .view-toggle {
        top: 5px;
        left: 5px;
    }

    .toggle-btn {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    #terminalView {
        padding-top: 45px;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .terminal-window {
        height: calc(100vh - 50px);
        height: calc(100dvh - 50px);
        max-height: calc(100vh - 50px);
        max-height: calc(100dvh - 50px);
        display: flex;
        flex-direction: column;
        position: relative;
    }

    .hero-text h1 {
        font-size: 1.6rem;
    }

    .hero-text h2 {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .about-text p,
    .about-text-center p {
        font-size: 0.8rem;
    }
}

/* Smooth Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-container.active {
    animation: fadeIn 0.6s ease-out;
}

/* Scroll Animations */
.section-title,
.about-text,
.about-text-center,
.contact-info {
    animation: fadeIn 0.8s ease-out;
} 