* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    padding: 30px 0;
    color: white;
    margin-bottom: 30px;
    animation: fadeIn 1s ease;
}

header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideUp 0.5s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.domain-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.input-group input {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.btn {
    background: linear-gradient(to right, #1a73e8, #0d47a1);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn:hover {
    background: linear-gradient(to right, #0d47a1, #1a73e8);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(13, 71, 161, 0.4);
}

.btn i {
    font-size: 1.2rem;
}

.section-title {
    font-size: 1.5rem;
    color: #1a73e8;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaeaea;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 10px;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    line-height: 1.8;
}

.result pre {
    white-space: pre-wrap;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.feature {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature i {
    font-size: 3rem;
    color: #1a73e8;
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #1a2a6c;
}

.feature p {
    color: #555;
}

.port-status {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.port-item {
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
}

.port-open {
    background: rgba(76, 175, 80, 0.15);
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.port-closed {
    background: rgba(244, 67, 54, 0.15);
    color: #c62828;
    border-left: 4px solid #c62828;
}

.port-number {
    font-weight: bold;
    margin-bottom: 5px;
}

.port-service {
    font-size: 0.85rem;
    opacity: 0.8;
}

footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 30px 0;
    margin-top: 40px;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.loader {
    display: none;
    text-align: center;
    padding: 30px;
}

.loader i {
    font-size: 3rem;
    color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.results-container {
    display: none;
}

@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }
    
    .port-status {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    header h1 {
        font-size: 2.2rem;
    }
}